Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231085

Re: Multipathing Policy - Fixed with preferred target - for PowerCLI N00b

$
0
0

You mean like this ?

 

$esxName='server.domainname.com'

$hbaName='vmhba1'

$lunName='naa.600000000000000000000000000000b0'

$sanID='50:05:07:68:01:10:57:7C'

 

Get-VMHost-Name$esxName|Get-VMHostHba-Device$hbaName|

Get-ScsiLun-CanonicalName$lunName|Get-ScsiLunPath|

Where {$_.SanID -eq$sanId} |

Set-ScsiLunPath-Preferred 

 

But how would you select the path ?

Always the first 1 ?

If yes, you could do

 

$esxName='server.domainname.com'

$hbaName='vmhba1'

$lunName='naa.600000000000000000000000000000b0'

 

Get-VMHost-Name$esxName|Get-VMHostHba-Device$hbaName|

Get-ScsiLun-CanonicalName$lunName|Get-ScsiLunPath|

Select-First1|

Set-ScsiLunPath-Preferred 


Viewing all articles
Browse latest Browse all 231085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>