iSCSI/NIC bonding/Multi Pathing

My entire ESX environment consists of all Dell PE2950s, each with 2 x 1 GB NIC in them.

both my iSCSI servers have 2 x 1 GB ethernet which are NIC glued to maximize throughput.

For most areas of development, so these are his especially iSCSI and vm vm traffic traffic (like IIS, SQL, etc.)

What is the best way to config the vNetwork in ESX so that I can use two NICs for ISCSI, but not to lose the LAN feature?  Can I spend 1 iSCSI NETWORK card and the other card NETWORK ISCSI/LAN?

I posted about this before and I was told that the collage of NIC is not supported for iSCSI in ESX.  I don't know anything about multiple paths...

Take a look at these:

http://goingvirtual.WordPress.com/2009/07/17/vSphere-4-0-with-software-iSCSI-and-2-paths/

http://blogs.VMware.com/KBTV/2011/01/how-to-configure-iSCSI-port-binding-on-vSphere-4.html

Tags: VMware

Similar Questions

  • Change of MSCS RDM disk offline after VMware Server or patching firmware finishing or multi path IOPS / s - SQL MSCS RDM disk

    Hello

    Yesterday, we installed a fifth ESXi host at our development center and along that we also had a window of maintenance for other hosts.

    We made:

    • HP Proliant HP Service Pack upgrade to 2014.06.0_784915_001. We have HP BL460c Gen8 servers. The old PSP performed from September 2013
    • Installed patches for ESXi 5.1 U1, the latest 10-15 patches since February. Do not install 5.1 U2.
    • Upgrade VMware Tools on virtual machines.
    • Changed multi path IOPS / s for HP 3PAR from 100 to 1. (esxcli storage nmp ATAS add s "VMW_SATP_ALUA' Pei"VMW_PSP_RR"- IOPS O / s = 1 - c"tpgs_on"v '3PARdata' - M 'VV' EI 'HP 3PAR Custom iSCSI/FC/FCoE ALUA rule')

    After this interview little MSCS SQL cluster stopped working. It does not start because it cannot access the drive. I can see the drive in disk management, but they are all in an offline mode. Can't do anything about them, except a single disc. This one is online!

    Did anyone here have no idea what on Earth is wrong? If I does not tomorrow I have to list a species of Microsoft or VMware. I have not tried to remove/add the RDM-disc.

    Windows 2008 x 64 Enterprise

    SQL 2008 R2

    ESXi 5.1 U1 (latest patches)

    Thank you!

    Finally solved with assistance from HP support.

    Solved this KB KB VMware: change a LUN to use a policy different selection of the path (PSP)

    The "funny", it is that the cluster has been around for 4-5 years and works on EVA SAN and now 3PAR with RR as a policy path, and all of a sudden it stopped working. Perhaps a host profile political trigged in, I don't know. And I could also see and access 5/6 disks, why not 6? And was on the way from RR.

    I asked HP about this.

    Thank you for all your help.

  • SAN Multi-pathing recommended?

    Hello

    I have a few questions on multiple paths SAN using UCS.

    I will be detailed for each question.

    1. Since there is no option to switch to vHBA, should use the features underlying the o/s (e.g. ESX/ESXi) MPIO? I think that MPIO for ESX/ESXi is enabled by default but to Win2008, we will need to activate it?
    2. My Clariion Bay has 2 SPS (SP - A and SP - B). Each processor has 2 ports. I have these 2 ports cracks to two MDS with a MDS connection to a fabric of interconnection respectively. Should I create two SAN fabrics for these 2 lanes (2 different VSAN)?
    3. What is the convergence time the host to use a different path of failure? (a few seconds or a minute or two?) This is related to question 2, if, for example, the convergence time should take approximately 1 min +, then it makes no difference with 2 different fabrics of SAN compared to 1, because Let's experience downtime anyway.
    4. I have a LUN (0 logic unit number) of start-up and LUN 1 as the store of data LUNS for each host. Since then, my strategy of UCS start-up (for blade/host 1) aura vHBA1 (Primary-> SP-A/port-0, secondary-> SP-B/port-0) and vHBA2 (Primary-> SP-A/port-1, secondary-> SP-B/port-1), should I give to the property for all LUNS for host1 to SP - A?
      • Will I have problems if I put the boot logical unit number (LUN 0) in SP - A and the data store logic (LUN 1) in SP - B unit number? In this case, I don't know how the selection of the path as the path in writing is always on SP - A, and only in the event of failure of the path or the SP failures, it will use the secondary path. Would appreciate some advice on this

    Thank you.

    Answers online.  Others can chime in if they have any comments or suggestions.

    See you soon,.

    Robert

    steven.pw.lau wrote:

    Hi,

    I have a few questions on SAN Multi-pathing using UCS.

    I will itemized each questions.

    1. Since there's no failover option for vHBA, we would need to use the underlying MPIO features of the O/S (e.g. ESX/ESXi)? I believe MPIO for ESX/ESXi is enabled by default but for Win2008, we'll need to enable it?

    [Robert] - Correct.  There's a native multipathing pluging (NMP) in VMware, but for Windows you'll need additional config/software.

    2. My Clariion array has 2 Storage Processors (SP-A and SP-B). Each SP has 2 ports. I have these 2 ports meshed to two MDS with one MDS connecting to one Fabric Interconnect respectively. Should I be creating two SAN fabrics for these 2 paths (2 different VSANs)?
    [Robert] - Yes.  Connect one VSAN on each FI.  Your FC uplinks will each connect to an upstream MDS (assuming each MDS is not connected to each FI).  You will still have 4 storage paths available to each host using two vHBAs.  3.  What is the convergence time for the host to use another path when failure occurs? (few seconds or a minute or so?) This is related to  question 2 if for example, the convergence time were to take around 1 min+, then it makes no differences having 2 different SAN fabrics as compared to 1 because we'll be experiencing downtime anyway.
    [Robert] - Failover for FC traffic is handled by the host, not UCS.  It's up to the host OS to decide how & when to redirect traffic to the alternate path. Normally FC failover is pretty seamless.  FC traffic can't tolerate any lengthy of delays.  As soon as the SCSI command times out, it will jump to the other path. Again, this will vary from OS to OS, but generally its seamless to the application/OS.

    4. I'd like have one boot LUN (LUN 0) and LUN 1 as the datastore LUN for each host. Since, my boot policy in UCS (for blade/host 1) will have vHBA1 (Primary -> SP-A/port-0, Secondary -> SP-B/port-0) and vHBA2 (Primary -> SP-A/port-1, Secondary -> SP-B/port-1), should I give the ownership for all the LUNs for host1 to SP-A?
    [Robert]  Yes.  Your primary boot target must be the "owner" of the LUN (and should be the "default" owner for that matter).  Only when SPA fails, will the LUN tresspass to SP-B and the secondary boot path will succeed during server boot up.   Keep in mind, this is only for booting.  Once its up & running, the OS handles failover activities.  5. Will I have problems if I only put the boot LUN (LUN 0) in SP-A and the datastore LUN (LUN 1) in SP-B? For this case, I'm not sure how the path selection will work as the writeable path is always on SP-A and only if path failure occurs or SP failures, it will only use the secondary path. Would appreciate some advice on this

    [Robert] Boot policy & data path selection are two different things.  If your boot LUN is targeting SPA, it will likely maintain that path as the OS loads.  Once the OS loads you can manipulate the path for any LUN. If desired you could set the "Active" path of your Datastore LUN within vCenter to be the other SP (SPB in your case) by modifying the path selection policy and setting it to "Fixed" PSP.  The default Path Selection Policy is MRU (Most recently Used).  This is normally adequate, but if you want to manually load balance your traffic the Fixed PSP policy is the way to go.

    Thank you.

  • New Guy Question - Disable Multi-Pathing on the VCB Proxy Server

    Hello everyone

    I had to install a Solution of the VCB Proxy. Among the issues is "Disabling Multi-Pathing on the VCB Proxy Server.

    Why would it be necessary to disable the multiple paths on th e VCB Server? What would be the steps to disable the multiple paths.

    Thank you all for any input on this issue.

    Here you go:

    http://www.Petri.co.il/how-to-deal-with-VMware-ESX-Server-VCB-multipath-issues-consolidated-backup-Windows.htm

    [i] Jerry [/ i] of the Jason

    [boche.net - VMware virtualization evangelist |] [ http://www.boche.net/blog/] [/i]

    [VMware communities user Moderator |] [ http://www.vmware.com/communities/content/community_terms/] [/i]

    [Area of Minneapolis VMware User Group Leader |] [ http://communities.vmware.com/community/vmug/us-central/minneapolis] [/i]

  • iSCSI NIC on two?

    Hello.

    Is this ok to create the connection iSCSI on two different network adapters?

    I have a few servers with the card 1 Gb 2 4 ethernet - port, and I want to use a port of each card for redundancy.

    Is there any problem may use two different NICs in Active mode

    Another thing that worries me is iSCSI VLANS. This affects performance for iSCSI traffic in VLAN?

    Thanks to all the advice.

    Ante

    Thanks Andre.

    Kind regards

    Ante

  • Link to maps software iSCSI NIC vmkernal and the vsphere client

    Hello

    IM playing with our VMware 4.1 hosts a Dell Equallogic PS4000E, connection

    So far, I have:

    Created ports VMkernal

    Apply adapters

    The iSCSI initiator enabled

    But apparently, I need to run the following command to bind the ports of iscsi software adapter:

    Add an esxcli swisscsi nic - n vmk # vmhba d #.

    Is anyway in the Vsphere Client?

    Hello.

    Unfortunately, there is no way to do it from the vSphere client.

    Good luck!

  • ISE 1.2 SNS - 3415 NIC bonding / grouping

    Hello

    I installed the SNS-3415 with ISE 1.2 and I try to configure the nic redundnacy (team) modes for requests for authentication and not for the purpose of management.

    Tests have shown that when an interface has been disconnected all was lost and nobody of our internal users was authenticated by the node of the ISE.

    However when I unplugged the "second interface" (possibly inactive) nothing has happened which shows which is a useless interface

    My goal is to connect it to my twins basic switches and have a deployment of high availability.

    -J' have enough search the Web but I have not found any clear and precisely the document to say how this could be done.

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

    THEMIS

    ISE 1.2 does not support grouping NETWORK adapters.  Especially on the devices.  There is a solution for the virtual machine using the ESXi host teaming network adapters so that it is transparent for the virtual machine.

    Please rate useful messages and mark this question as answered if, in fact, does that answer your question.  Otherwise, feel free to post additional questions.

    Charles Moreton

  • How to get rid of confirmation on the actions with scripts dialog (multi path delete)?

    "I am using a script in actions to clear all roads, since the web found the 'activeDocument.pathItems.removeAll (); " and it works fine when it is called in the menu script not these dialogs at all but when I try to use it in shares, it still appears a dialog box asking for confirmation if I really want to remove" path regardless.

    Any help on how to perform this action without dialog would be much appreciated.

    Ty in advance.

    Try

    app.displayDialogs = DisplayModes.ERROR;

    or

    app.displayDialogs = DisplayModes.NO;

    In both cases, you probably want to reset to its original state when you are finished.

  • NetApp FAS & NFS multi-path

    Hello

    I read best practices for NetApp, the http://www.netapp.com/us/media/tr-3749.pdf - and the other supporting storage, I wonder if port-channels are worth the hassle to reach NFS MPIO, is it better to do? OR does it come down to several subnets export or port-channel with several export? 

    Because you want to use several connections upward on the ESXi hosts to storage NFS traffic, all in a single subnet, your only option is to use a SHIFT on the hosts and multiple exports on the storage array. Each export must match an IP (HOT), with a unique least significant bit (LSB).

    Follow pages 280 to 283, taken from the book of Networking for VMware administrators , specifically with the configuration below and pay special attention to the LSB.

  • Get the multi path-

    I found this code. Is there a way I can get the results into an Excel instead of just the screen?

    Get-VMHost | %{$_.Name; $_ | Get-ScsiLun | Select CanonicalName, MultiPathPolicy}

    And even better, since I will connect to an instance of vCenter4, I really need information of two of our clusters.  Cluster names are ProductionCluster8 and ProductionCluster9

    Thank you!

    I fixed that in the script in my first post. Now he has to work and only to retrieve information about the two groups.

  • Multi-NIC vMotion with ESXi/vCenter 4.1

    We take running ESXi and vCenter 4.1 and after the secure Channel secure Channel 5.5 class and sitting for my exam in a few weeks, I have actively tried to improve our environment. Previously, to the study and trying to learn more about VMware, we were in pretty bad condition. Relevant material (AMD, Intel CPU, generations of Intel CPU, amount of RAM and CPU), versions hyperviosr Mismatched ESXi and ESX and no redundancy, vmotion and TONS of snapshots as backups.

    In the two weeks since my course, I have eliminated all snapshots (performance daily vCheck to check on the health of the venvironment), emigrated to 5 similar hosts (and memory/cpu configurations) that we had to drag do not, connected to all ports card NETWORK 6 to 2 x 3560g cisco switches and connected the second switch updated ESX to ESXi 4.1 and patched all hosts with Update Manager (nobody used), created the host profiles and compliance on the cluster and hosts, activated DRS and HA, set up a couple of VAPP for STM systems... the list is long

    I still have a lot to learn, but now I'm a bit confused about one thing...

    We use Fibre Channel SAN, one side get our second Fibre Channel switch hooked up for redundancy and I guess that Multi - pathing (?) I have a couple questions question...

    1. set up the second fiber switch would give me several warehouses of data, correct paths?

    2 can I create and separate vMotion in our configuration, using the CF WITHOUT? Any flow of traffic (for vmotion) through the vswitches or he remains behind the FC switch?

    -I know with iSCSI, you want to create a vSwitche separated and installation multi-nic vmotion

    3. in the configuration of the redundant management interfaces do I need to create two vSwitches with vmkernel with separate IP addresses management ports or just create on vSwitch with a vmkernel port and two network cards is assigned to the (two different connected to 2 physical switches physical cards)?

    -We will most likely use VST if we can get the trunk ports to pass traffic defaullt VLAN, so I think it is still acceptable to create separate vSwitches for management, vMotion (if necessary because of the CF) and port VM group? The designs I see online usually use only a vSwitch for VST and multiple is.

    That's all I can think of for now... Just some things that need to be clarified on... I guess I still need a vSwitch vMotion (allocate 2 of 6 network adapters in it) because some type of traffic would pass over him, but I think that most of the vMotion and all the SvMotion would remain behind the FC switch.

    Thanks for any help!

    With regard to the topic of discussion: Multi-NIC vMotion introduced with vSphere 5.x and is not available in earlier versions.

    1.) Multipathing is not related the number of FC switches, but only for the number of initiator and target. However, using several CF toggle availability increases due to redundancy.

    2.) you must differentiate here. vMotion is a live VM migration process to other hosts, i.e. only the workload of the migration. vMotion only uses the network. Storage vMotion on the other side generally used storage connections - i.e. the CF in your case - to migrate files/folders to the virtual machine.

    3.) redundancy for management traffic can be reached in several ways. The easiest is to simply assign multiple uplinks (vmnic) to vSwitch network management. So, a simple 'Netowrk management' will do, and redundancy is made based on recovery of the vSwitch.

    From a design point of view you can use multiple vSwitches for different traffic types, or combine them on a vSwitch by configuring the failover policies for groups (Active/Standby/Unused) port for example.

    André

  • How to configure a NIC connection for iSCSI

    I have a few 2950 s PowerEdge with four NICs in them, trying to use the NIC bonding on 3 of them for iSCSI.

    Are there articles or KB links explaining how to do (if it is possible?)

    Or, just point me to the right section in the vSphere client and I can understand... I have just found nothing of poking around, I wonder if it's just not possible?

    Hello

    The best answer here is that consolidation of NICs for iSCSI traffic is not supported and the various guides on the paths where you should look.

  • ISCSI EqualLogic PS6000 path problem

    Hello

    I have a PS6000 2 Powerconnect 5524 and 2 R710

    Ports 1 and 2 of my san are Switch1 and ports 3 and 4 switch 2, ports are marked on VLAN10 one two swjtches, they ar not stacked

    The legs of my san ports are:

    Port 1 10.10.1.10 switch 1
    2 port 10.10.1.20 switch 1
    Port 3 10.10.1.30 switch 2
    4 port 10.10.1.50 switch 2

    Virtual IP San: 10.10.1.200

    My R610 has an vmnic3 on switch1 and a vmnic5 of the switch2, ports are VLAN10 taggued

    With this configuration I IC see my 4 way san

    If I place a 10.10.1.50 on vmnic3/vmk0 switch1 ISCSI1 vmkernel port I see my san 10.10.1.10, 10.10.1.20, or 10.10.1.200

    If I place a vmkernel ISCSI2 port 10.10.1.60 on vmnic5/vmk1 the switch2 I cannot see my san

    If I delete ISCSI1, I can see my san ISCSI2 and vmnic5

    If I place ISCSI1 and ISCSI2 on VLANs separated, I can see my san on two NICs, so I have 4 path to the San

    I have seen that:

    ~ # esxcfg - road - l
    VMkernel itineraries:
    Interface of network gateway subnet mask
    10.10.1.0 255.255.255.0 subnet local vmk0
    10.10.3.0 255.255.255.0 subnet local vmk4
    10.10.4.0 255.255.255.0 subnet local vmk3
    by default 0.0.0.0 10.10.1.254 vmk0

    Perhaps a road problem?

    THX

    I have install up to EQLs with vSphere several times. Dell and EQL recommend a one-to-one ratio of iSCSI VMkernel ports to physical network interface cards. If you have 2 NICs per host dedicated to iSCSI, you should have 2 VMkernel ports on each host (and remember, they must be configured exactly the name of vMotion work). They also recommend the same number of network adapters on each host that you have on the SAN controller - SAN 4 controller iSCSI NIC - 4 NICs per server for iSCSI.

    Despite the paths physical and network cards redundant, each VMkernel port is only a single logical path.

    Here's how I would do it with a series 6000 EQL (4 ports per controller)

    R710 #1:

    VMkernel Port 1 - NIC physics 1 - switch A

    VMkernel Port 2 - Phyiscal NIC 2 - switch has

    VMkernel Port 3 - NIC physical 3 - switch B

    VMkernel Port 4 - NIC physical 4 - switch B

    R710 #2:

    VMkernel Port 1 - NIC physics 1 - switch A

    VMkernel Port 2 - Phyiscal NIC 2 - switch has

    VMkernel Port 3 - NIC physical 3 - switch B

    VMkernel Port 4 - NIC physical 4 - switch B

    4 port .1Q between switch A and B, allowing all the VLANS to pass through. As said Andre, all cards on the same iSCSI network interface VLAN. I don't see why you would need or want to several VLANS iSCSI.

    Reference Dell EQL:

    Connect 2 network by each switch controller cards, for each controller is multichannel through two switches.

    In this configuration, VMware will see 4 paths to the storage, which is what it should be, if you have 4 NICs per controller. You will also get full in this configuration redundancy, given that each host has 2 paths by switch.

    I am very familiar with EQLs, so if you have any other questions just ask. I'll actually implement a PS4000 this week.

  • Question on the iSCSI initiators and several NIC

    I read the attached document.

    The document speaks to create more iSCSI initiators to talk to the SAN (I understand this bit).

    Page 15 step 4: VMkernel Ports associated with physical cards

    The document speaks about 3 network cards that have been attributed to a vSwitch.

    The document then continue to talk about the creation of links to individual access to a network adapter for each VMkernel path.

    My question is:

    Why do this?

    Why not create three separate vSwitches and create an initiator iSCSI for each vSwitch?

    VCP3 & VCP4 32846

    VSP4

    VTSP4

    Why would you not create a vSwitch for each iSCSI NIC and VMkernel port. Why the document insists on putting all the NIC in a vSwitch?

    The number and type of vSwitches is not interesting.  You can use a vSwitch or vSwitches as much as you have physical NIC.  It works as well for the former two vSwitches static or vDS.  The configuration example is just one of the ways that you can do.  Any combination is supported.

    Andy

  • Political multi-channel Fixed and enter preffered paths balance for a set of RDM Lun

    Hi all

    I was hoping that someone with some experience PowerCLI might help me with the following problem.

    Short version:

    I need to adapt this script http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/ to accept the entry of a canonical name text file...

    Long version:

    We have a number of LUNS of RDM used by Microsoft the Failover Clusters, in accordance with the recommendation from the storage provider (Dell), we need to define all teas LUN to have a multi-path of FIXED policy and want to balance these on both paths.

    I can get the canonical name for each LUN RDM using this script;

    Get-VM-Location"Cluster Name" | Get-HardDisk -DiskType "RawPhysical","RawVirtual"| SelectParent,Name,DiskType,ScsiCanonicalName
    I then manually identify the LUNS that have to be changed since the text output.  So, basically, I have a text file containing the canonical each of the RDM LUN name I need to change to fixed.

    LUNS.txt

    NAA.6000d31000331e0000000000000000c0
    NAA.6000d31000331e0000000000000000c1
    NAA.6000d31000331e0000000000000000c2
    NAA.6000d31000331e0000000000000000c3
    NAA.6000d31000331e0000000000000000c4
    NAA.6000d31000331e0000000000000000c5

    I can't run this command to set the Fixed multichannel strategy because I need the PreferredPath variable.

    Get-vmhost 'host name ' | Get-scsilun 'naa.6000d31000331e0000000000000000c0 ' | game-scsilun - multipathpolicy 'Fixed '.


    "If the MultipathPolicy parameter is set to 'Fixed', you must specify the parameter of PreferredPath."

    I can then get the paths by using this command:

    Get-vmhost 'host name ' | Get-scsilun 'naa.6000d31000331e0000000000000000c0 ' | Get-scsilunpath

    Favorite SanID state name
    ----       -----                                    -----      ---------
    FC.2000... False Active 50:00:D3:10:00:33:1e:19
    FC.2000... False Active 50:00:D3:10:00:33:1e:1 has

    Basically, I need to adapt this script (from here http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/) at the entrance to a text file of canonical names.

    # Cluster-wide LUN Path Load Balancing Script
    # Written by Justin Emerson, http://vmjunkie.wordpress.com
    # Idea originally from a PERL script I saw here:
    # This script requires the VI Toolkit version 1.5
    # NOTE: This script assumes that every LUN has the same number of paths.
    #       If you have multiple storage arrays, and they have different numbers of paths,
    #       I make no guarentees that this will work!
    # If you have an improvement to this script, please feel free to leave a comment on my blog!
    Write-Host"This script will modify the policy of all your shared LUNs on all ESX Servers"-ForegroundColorCyan
    Write-Host"in a Cluster to Fixed and select a preferred path in a round-robin fashion."-ForegroundColorCyan
    if ($args.Length -eq0) {$clusterName= Read-Host"Please enter the Cluster name"} else {$clusterName= $args[0]}
    $VMHosts= Get-Cluster$clusterName| Get-VMHost
    # Run through this loop for each host in the cluster
    foreach($VMHostin $VMHosts)
    {
        # Keep only disks of luntype "disk" to avoid any storageArrayController devices.
        # Filter to only objects where the ConsoleDeviceName starts with vml to avoid any DAS disks.
        # Note: I have tested both HP EVA and Xiotech storage and SAN LUNs always appear this way.
        # Please check if this is the same on your storage before running.
        $luns= $VMHost|get-scsilun-luntypedisk|
        where-object{$_.ConsoleDeviceName -like"/vmfs/devices/disks/vml*"}|Sort-ObjectCanonicalName
        $firstLUNPaths= Get-ScsiLunPath$luns[0]
        $numPaths= $firstLUNPaths.Length
        $count= 0
        foreach($lunin $luns)
        {
            if ($count-ge$numPaths) { $count= 0 }
            $paths= Get-ScsiLunPath-ScsiLun$lun
            $lun|Set-ScsiLun-MultipathPolicyFixed -PreferredPath$paths[$count]
            $count+= 1
            # Sleep for 30 seconds as I've heard some arrays dont like doing this too fast.
            Start-Sleep-Seconds30
        }
    }
    Any help would be greatly appreciated.
    See you soon,.
    Patrick

    Do you have something like this in mind?

    $esxName = "MyEsx" $lunFile = "./luns.txt"
    $lunNames = Get-Content $lunFile $VMHost = Get-VMHost -Name $esxName
    # Find the LUN with the least number of paths
    $leastLUNPaths = Get-ScsiLun -VmHost $VMHost -LunType disk | Sort-Object -Descending -Property {
      Get-ScsiLunPath -ScsiLun $_ | Measure-Object | Select -ExpandProperty Count} | Select -First 1 | Get-ScsiLunPath
    $numPaths = $leastLUNPaths.Length
    $count = 0 foreach ($lunName in $lunNames)
    {
      $lun = Get-ScsiLun $lunName -VmHost $VMHost  if ($count -ge $numPaths) { $count = 0 }
      $paths = Get-ScsiLunPath -ScsiLun $lun  $lun|Set-ScsiLun -MultipathPolicy Fixed -PreferredPath $paths[$count]
      $count += 1  # Sleep for 30 seconds as I've heard some arrays dont like doing this too fast.
      Start-Sleep -Seconds 30}
    

Maybe you are looking for