Hi
I am trying to script the creation of an iscsi based datastore in vSphere 4.1.
From what I have gathered you have to create it using the canonical name and the command below appears to work.
New-Datastore -VMhost server1.domain.local -Vmfs -Name 'volume-995-Test-data' -path 'naa.6000eb39d14c8955000000000000002b' -BlockSizeMB 8
However, I need to find a way to determine the canonical name from the target name (as listed in the Target column in Paths view) or actual volume name created on the HP Lefthand SAN. Obviously if I can't find this then can you help by suggesting an alternative method.
Regards
Simon Whittington