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.
Code:
#!/bin/sh
for co in `seq 1 3`;
do
fibcount=`/usr/sbin/esxcfg-mpath -lgrep Dead /usr/bin/wc -l`
if [ $fibcount -lt 4 ];
then
logger -t "fibertest" "fiber ok"
exit 0
fi
if [ $fibcount -eq 4 ] && [ $co -eq 3 ];
then
logger -t "fibertest" "System rebooted, all fiber broken"
sleep 2
/sbin/halt
fi
sleep 5
done

Tags: , ,

About author

Vittorio Pavesi

1 comments

  1. Anonymous
    8:49 AM

    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

Post a Comment