Hi All,
I have a recovery site with replicated luns, and I am in the process of creating scripts to help automate the recover. Long term we will be using SRM, but until we get there I am trying to script to list out all of the mounted and recovered LUNs, which can be mounted without resignaturing. From the command line it is
'esxcfg-volume -l' to list out the vmfs uuids which can be mounted
'esxcfg-volume -m VolumeName' to mount the volume.
At this point I cant figure out how from powerCLI to get the list made in esxcfg-volume -l.
I have looked at https://communities.vmware.com/thread/330817 and tried the
$dsView.QueryUnresovledVmfsVolumes() but it returns nothing. Even though if I do the esxcfg-volume -l it returns tons of stuff.
Many thanks for the help