VMware HBA High Availability

We were testing High Availability of VMware ESX 3.5 and we noticed it doesn't manage the failure of all HBA.
Let's suppose each host has 2 paths to reach S.A.N., when a single path fails (e.g. broken fiber, HBA fault...) multipath software manage the connection and everything work. When all paths fail, VMware doesn't degrade to "maintenance state" and doesn't make failover.
A geek linux colleague (Maurizio) created a simple script that every minute detect fault state and shutdown ESX Host if all paths fails.
for co in `seq 1 3`;
fibcount=`/usr/sbin/esxcfg-mpath -lgrep Dead /usr/bin/wc -l`
if [ $fibcount -lt 4 ];
logger -t "fibertest" "fiber ok"
exit 0
if [ $fibcount -eq 4 ] && [ $co -eq 3 ];
logger -t "fibertest" "System rebooted, all fiber broken"
sleep 2
sleep 5

Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

1 commenti:

Anonymous said...

I've been exploring for a bit for any high quality articles or blog posts in this kind of space . Exploring in Yahoo I at last stumbled upon this web site. Studying this information So i'm
happy to express that I've an incredibly excellent uncanny feeling I found out exactly what I needed. I such a lot definitely will make sure to do not put out of your mind this web site and provides it a look on a relentless basis.
Also see my page > click here