Background:
I am trying to add an existing datastore to a VM from a NetApp SAN. The datastore is a volume clone of a NetApp snap (for instance, lets call it TL_1_013 (because that is what it is actually called )). A snap is taken every night and kept for 7 days. I clone the snap and call it Restore_TL_1_013, the LUN or clone of the LUN is then brought online and presented to the ESX Group setup in NetApp.
Going to VMWare and rescanning the HBA's, it knows the LUN is there and if I add storage in the normal fashion:
Select Host
Click Add Storage
Select Disk/LUN
"I choose the LUN as it is presented here"
Select Resignature
Select Ok
Select Finish
It adds it just fine, the only issue is that I want to add it using Powershell.
If I do Get-Datastore -Datacenter "My DataCenter" | where {$_.type -eq "VMFS"}
I can see other datastores I have added in the above fashion "snap-XXXXXXXX-TL_2_002", but not the one I have just created (which has not been added with the Add Storage option" above...
Any help would be appreciated...
Vince