I have a question regarding automating the mounting and un-mounting of RDM disks to a VM via script. We're trying to replace FC calls to a Dell Compellent on a VM without the use of NPIV (our UCS blades don't have the capability).
The backend to this, the Dell Compellent mapping the LUN volume to the specific set of ESX hosts, is not part of this request. What will be happening is the Dell will be mapping different replay volumes to an ESXi host(s) on a weekly basis. So these mappings are temporary and dynamic.
Assuming the mapping on the Dell is correct, is there a way to script a VM attaching an RDM and then detaching from it, knowing they will be changing on a weekly basis? I'm guessing the scripting would include hosts scanning for new devices, the VM deleting the old RDM, since removing it would just leave a ghost map in the VM folder, then the VM adding a new RDM disk from the fresh list from the host.
We're running vSphere 5.5 U2 and ESXi 5.5 in this environment.
Thanks,
Jeff