Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting the multipathing policy


If you use Fibre Channel or iSCSI storage devices, the use of multipathing and having multiple paths between your hosts and the SAN are highly recommended. Depending on the recommendations made by your storage vendor, you have to set the multipathing policy to either Fixed, Most Recently Used (MRU), or Round Robin (RR).

Note

More information about multipathing policies can be found in the VMware Knowledge Base article Multipathing policies in ESXi 5.x and ESXi/ESX 4.x (1011340), at http://kb.vmware.com/kb/1011340.

You can use the Get-ScsiLun cmdlet to retrieve the current multipathing policy for your LUNs as follows:

PowerCLI C:\> Get-VMHost -Name 192.168.0.133 | Get-ScsiLun |
>> Where-Object {$_.LunType -eq 'disk'} |
>> Select-Object -Property CanonicalName,LunType,MultipathPolicy
>>

The following is the output of the preceding command:

CanonicalName                        LunType  MultipathPolicy
-------------                        -...