[PATCH v2 4/6] kdump.sh: send fence kdump message to other nodes in the cluster

Vivek Goyal vgoyal at redhat.com
Wed Jan 22 16:44:34 UTC 2014


On Mon, Jan 13, 2014 at 06:23:10PM +0800, WANG Chao wrote:
> 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 at redhat.com>
> ---
>  dracut-kdump.sh | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/dracut-kdump.sh b/dracut-kdump.sh
> index 4d8616f..324408f 100755
> --- a/dracut-kdump.sh
> +++ b/dracut-kdump.sh
> @@ -287,6 +287,19 @@ read_kdump_conf()
>      done < $conf_file
>  }
>  
> +fence_kdump_notify()
> +{
> +    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 &

Chao,

I think make "nodes" local.

Also FENCE_KDUMP_OPTS is set by FENCE_KDUMP_CONFIG?

Thanks
Vivek


More information about the kexec mailing list