Hi,
I have a script to create new datastore. nut I can't find how to specify the prefered path (hba:x:x...)
any idea?
You don't set preferred path on a datastore, per se, you se it on the LUN or LUNs that make up that datastore. You'll need to use set-scsilun to do that.
-KjB
ok, so I would need to add something like that after the rescan
?
Get-SCSILUN -CanonicalName args1 -vmhost args2 | SetSCSILun -PreferredPath args3 confirm:$false
As long as you have those arguments handy, then yes, that's what you'll need to do.
-KjB