VMware Cloud Community
Cruicer
Enthusiast
Enthusiast
Jump to solution

Script to convert MRU / Fixed Preferred to Round Robin

Working in an environment where each VM has it's own individual LUNs, and in some cases LUNs per drive partition. Obviously MRU is the default so on many of my host the vmhba1 is getting crushed. I was going to go thur and change these all to Fixed / Preferred but that would take me forever. Anyone know a command line where I can change the paths to Round Robin. Or a script that can help me out?

Also, and probably more important, anyone have any issues with using Round Robin knowing that VC still lists it as "Expermential"? I am not a guru in scripting, so please be kind... Smiley Happy

0 Kudos
1 Solution

Accepted Solutions
dkfbp
Expert
Expert
Jump to solution

Hi,

Use the following command:

To set policy for disk vmhba0:0:1 to round robin

esxcfg-mpath --policy=rr --lun=vmhba0:0:1

Simply create a line in notepad for each lun in your server, then paste it all into putty in the service console.

Note: I have no actual experience with RR, only mru and fixed.

Best regards

Frank Brix Pedersen

Best regards Frank Brix Pedersen blog: http://www.vfrank.org

View solution in original post

0 Kudos
4 Replies
dkfbp
Expert
Expert
Jump to solution

Hi,

Just to be sure, do you have an active/active SAN? If not don't change from MRU to FIXED.

Best regards

Frank Brix Pedersen

Best regards Frank Brix Pedersen blog: http://www.vfrank.org
0 Kudos
Cruicer
Enthusiast
Enthusiast
Jump to solution

Yes they are Active / Active...

0 Kudos
dkfbp
Expert
Expert
Jump to solution

Hi,

Use the following command:

To set policy for disk vmhba0:0:1 to round robin

esxcfg-mpath --policy=rr --lun=vmhba0:0:1

Simply create a line in notepad for each lun in your server, then paste it all into putty in the service console.

Note: I have no actual experience with RR, only mru and fixed.

Best regards

Frank Brix Pedersen

Best regards Frank Brix Pedersen blog: http://www.vfrank.org
0 Kudos
Cruicer
Enthusiast
Enthusiast
Jump to solution

Worked like a champ...thanks a bunch...

0 Kudos