Hello Community.
I need to set my LUN's back to Fixed and spesify the perferred path.
I can't seem to get the command to work.
Get-VMhost | get-scsilun "lunname" | Set-ScsiLun -MultiPathPolicy "Fixed" -PerFerredPath "pathname"
The line works fine on RoundRobin and MRU. But when i insert "Fixed" i calls out for a Perferredpath, witch it does not accept.
Any cloues to where i fail?
//C
Perhaps it's just a typo in the thread but the parameter is -PreferredPath, not -PerferredPath.
The string you give as the path looks more like a SanId to me.
Are you sure that is the value you see in the LunPath property after
Get-VMHost | Get-ScsiLun -CanonicalName <name> | Get-ScsiLunPath | select *
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you use a LunPath as returned by the Get-ScsiLunPath cmdlet ?
Get-VMhost | get-scsilun "lunname" | Get-ScsiLunPath
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I tryed that. the get-scsilunPath returns our 4 paths, 50:01:43:80:01:3C:80:CC
50:01:43:80:01:3C:80:C9
50:01:43:80:01:3C:80:CD
50:01:43:80:01:3C:80:C8
In my case, I whant :C8 to be the perferred. So the command looks lite this:
Get-VMHost | Get-ScsiLun CannonicalName | Set-ScsiLun -MultiPathPolicy "Fixed" -PerferredPath 50:01:43:80:01:3C:80:C8
It returns: A parameter cannot be found that matches parameter name 'PerferredPath'
PowerCLI4.1.0.2519
vSphere 4.0 U1
Perhaps it's just a typo in the thread but the parameter is -PreferredPath, not -PerferredPath.
The string you give as the path looks more like a SanId to me.
Are you sure that is the value you see in the LunPath property after
Get-VMHost | Get-ScsiLun -CanonicalName <name> | Get-ScsiLunPath | select *
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes.
I missspelled.
And it was the Scsi ID not the complete path name.
now it works, just need to find a way to make ti work on 8hosts (dif path name) and about 40 LUN's
Thx a lot.
Now it's two beers in Copenhagen