VMware Cloud Community
ChristianNilsso
Contributor
Contributor
Jump to solution

Settig Multiple LUN's to Fixed and specifying the PerferredPath

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

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

ChristianNilsso
Contributor
Contributor
Jump to solution

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

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
ChristianNilsso
Contributor
Contributor
Jump to solution

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 Smiley Happy

Thx a lot.

Now it's two beers in Copenhagen Smiley Happy

0 Kudos