kdump.sh: send fence kdump message to other nodes in the cluster

In 2nd kernel, to prevent the crashed system from being fenced off,
fence kdump message must be send to other nodes in the cluster
periodically before dumping process.

We preserve every node's name in /etc/fence_kdump_nodes in the
initrd, so we parse this file and send notify them.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Tested-by: Zhi Zou <zzou@redhat.com>
Tested-by: Marek Grac <mgrac@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
WANG Chao 2013-12-20 15:09:48 +08:00
parent 590a0c21ab
commit e5e0507371
1 changed files with 15 additions and 0 deletions

View File

@ -287,6 +287,21 @@ read_kdump_conf()
done < $conf_file
}
fence_kdump_notify()
{
local nodes
if [ -f $FENCE_KDUMP_NODES ]; then
if [ -f $FENCE_KDUMP_CONFIG ]; then
. $FENCE_KDUMP_CONFIG
fi
read nodes < $FENCE_KDUMP_NODES
$FENCE_KDUMP_SEND $FENCE_KDUMP_OPTS $nodes &
fi
}
fence_kdump_notify
read_kdump_conf
if [ -z "$CORE_COLLECTOR" ];then