Automation

 View Only
  • 1.  Syntax to set Round Robin to default

    Posted Jan 31, 2012 02:54 PM

    Everytime I add new LUNS to my ESXi 4.1 clusters I have to run the below command to change the path policy to RR vs FIXED.   Is there a command I can run that will make the host set all new LUNS path policy to RR as default?

    Get-VMHost hostname_here | Get-ScsiLun | Where {$_.CanonicalName -like 'naa.5000*'} | Set-ScsiLun -MultipathPolicy "RoundRobin"

    Thanks



  • 2.  RE: Syntax to set Round Robin to default
    Best Answer

    Posted Jan 31, 2012 03:11 PM

    Have you tried esxcli nmp? Here's a link that might be helpful:

    http://www.yellow-bricks.com/2009/07/10/change-the-default-pathing-policy-to-round-robin/



  • 3.  RE: Syntax to set Round Robin to default

    Posted Jan 31, 2012 04:58 PM

    Have a look at Arnim's post called ESXCLI the PowerCLI way. I suspect you want to do this with PowerCLI ?



  • 4.  RE: Syntax to set Round Robin to default

    Posted Jan 31, 2012 05:14 PM

    Thanks Gary, Your answer was dead on.  I just had to find the SATP for 3PAR which I had.