• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • Unexplored Territory Podcast
  • HA Deepdive
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

VMware

load balancing active/active SAN’s

Duncan Epping · Apr 1, 2008 ·

Ernst, a regular poster of the Dutch VMug, posted a script for load balancing paths to an active/active SAN. What it does is select the next path for a LUN, in other words if there are four paths LUN1 will be reached via Path1, LUN2 via Path2 etc.

The script, also available for download here:

#!/bin/bash
for PATHS in 2 4 6 8
do
STPATHS=${PATHS}
COUNTER=”1″

for LUN in $(esxcfg-mpath -l | grep “has ${STPATHS} paths” | awk ‘{print $2}’)
do
esxcfg-mpath –lun=${LUN} –path=$(esxcfg-mpath -q –lun=${LUN} | grep FC | awk ‘{print $4}’ | awk ‘{print NR “S\t ” $0}’ | grep ${COUNTER}S | awk ‘{print $2}’) –preferred
COUNT=`expr ${COUNTER} + 1`
COUNTER=${COUNT}
if [[ ${COUNTER} -gt ${STPATHS} ]]
then
COUNTER=”1″
fi
done
done

This will result in the following outcome with “esxcfg-mpath -l”:

Disk vmhba2:1:4 /dev/sdh (512000MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:4 On active preferred
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:4 On
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:4 On
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:4 On

Disk vmhba2:1:5 /dev/sdi (512000MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:5 On
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:5 On active preferred
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:5 On
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:5 On

Disk vmhba2:1:6 /dev/sdj (307200MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:6 On
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:6 On
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:6 On active preferred
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:6 On

Disk vmhba2:1:7 /dev/sdk (307200MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:7 On
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:7 On
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:7 On
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:7 On active preferred

Disk vmhba2:1:8 /dev/sdl (512000MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:8 On active preferred
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:8 On
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:8 On
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:8 On

Disk vmhba2:1:9 /dev/sdm (512000MB) has 4 paths and policy of Fixed
FC 16:0.1 50060b0000646c8a<->50060e8004f2e812 vmhba2:1:9 On
FC 16:0.1 50060b0000646c8a<->50060e8004f2e873 vmhba2:2:9 On active preferred
FC 19:0.1 50060b0000646062<->50060e8004f2e802 vmhba4:1:9 On
FC 19:0.1 50060b0000646062<->50060e8004f2e863 vmhba4:2:9 On

In other words, when you run this script each LUN will be addressed via a specific path and all HBA’s and SAN Disk Controllers will be used instead of the default first path / first controller policy. This will result in a better performance and distribution of load on the SAN Disk Controllers.

Update Manager: Metadata for patch missing

Duncan Epping · Apr 1, 2008 ·

Today I noticed the following error at a customer site when I wanted to install the new patch bundle, “Metadata for patch missing”. After a close inspection I noticed VirtualCenter was installed with a different http port number. For VMware Update Manager to work you will have to open up the firewall manually:

 esxcfg-firewall -o 81,tcp,out,UpdateManager
(Change the port number, in red, according to the used portnumber for VirtualCenter.)

3i is gone, welcome ESXi

Duncan Epping · Mar 31, 2008 ·

VMware seems to have ditched the product name “3i” and silently introduced “ESXi”. I noticed it when the download page was updated today. But you can also read it on the “product section” of the VMware website. I think this is a better name instead of differentiation in versions, keeping the versions alligned and changing the name makes more sense to me and probably most customers.

Besides this they’ve also ditched the “server” part in VMware ESX Server, for more info check out the blog by John Troyer!

TrainSignal VMware ESX CBT

Duncan Epping · Mar 31, 2008 ·

I just completed TrainSignal’s VMware ESX CBT(computer based training). Some of you might wonder why the hell I would be checking this course. Well TrainSignal asked me to review their product and share my findings with you guys.

TrainSignal released this VMware ESX CBT. For those of you who never watched a CBT, it’s a video of a training along with some demos and .ppt slides. David Davis guides you during this CBT through the wonderful world of VMware ESX. All the ins and outs are covered. David has a good voice, which makes this CBT definitely more pleasant and easy to listen to. Only thing I noticed that it becomes a bit monotone after a couple of hours. But that could also be due to the fact that it’s mainly powerpoint slides your watching, it would be nice to see the instructor for a change to get more variety. Or spice the CBT up with some questions about the topic you’ve just watched. This way you will know immediately that you understood what was discussed.

The topics range from basic Virtual Machine info to command line stuff like creating a vmfs and even some basic troubleshooting. In my opinion David covered all important topics one should know about, and in a decent way.

Bottom line: It’s cheap, good quality, easy to use and watch. Especially will come in handy when preparing for an exam. Not certain about a specific topic, drop the CD-Rom in and just watch it again. There’s still room for improvement though: it would be nice to see the instructor instead of only ppt’s, no topic list on DVD booklet. In the end this CBT is definitely worth the money and your time.

Before I finished this blog I noticed that Manlio Frizzi also posted about this CBT. It seems that both of us received the CBT around the same time. So I ditched the topic list cause Manlio already posted it…

New iso’s/builds coming up for 3i / 3.5 / VirtualCenter

Duncan Epping · Mar 31, 2008 ·

There are new iso’s / builds coming up for 3i, 3.5 and VirtualCenter:

VMware ESX 3.5 Update 1
Latest Version: 3.5 | 4/10/2008 | Build: 82663

VMware VirtualCenter 2.5 Update 1
Latest Version: 2.5 | 4/10/2008 | Build: 79820

VMware ESXi 3.5 Installable Update 1
Latest Version: 3.5 | 4/10/2008 | Build: 82664

Unfortunately the iso’s aren’t available for download yet and the release notes aren’t updated. I guess someone just made a mistake updating this page cause the release date isn’t for another 10 days. We will just have to wait and see.

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 108
  • Page 109
  • Page 110
  • Page 111
  • Page 112
  • Interim pages omitted …
  • Page 123
  • Go to Next Page »

Primary Sidebar

About the Author

Duncan Epping is a Chief Technologist and Distinguished Engineering Architect at Broadcom. Besides writing on Yellow-Bricks, Duncan is the co-author of the vSAN Deep Dive and the vSphere Clustering Deep Dive book series. Duncan is also the host of the Unexplored Territory Podcast.

Follow Us

  • X
  • Spotify
  • RSS Feed
  • LinkedIn

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2025 · Log in