Thanks LuCD for the reply.
I understand the script will check for the current VMs running on the host and exclude the RDM LUNs which attached to it. Please correct me if I am wrong.
Actually, the host is part of a cluster and the VMs (attached with RDMs) will get migrated by DRS to other hosts and the VMs will not remains the same.
Before implementing the script on the cluster level for all the ESXi hosts, need to test the script on a single host to set all the RDMs to perennially reserved (NOT VMFS datastores) and check if it resolves the delay during the reboot.
Kindly help to suggest your comments if this possible or can we try to give all RDMs in the cluster as input in a file to the script to set perennially reserved for the host.
Thank you
Regards
Narayanan.