Whamcloud - gitweb
LU-107 Add scripts for implementing heartbeat v1 failover
authorNed Bass <bass6@llnl.gov>
Thu, 13 Oct 2011 17:56:03 +0000 (10:56 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 11 Jul 2012 23:38:55 +0000 (19:38 -0400)
commit04a38ba7cda4e242850a47b13d4402a69e8dd921
treee3987e1f65e9281c6335a5dc2c51770ddb669fc0
parentdd62978b709aebf3dda536f2230f1b79c5361d9c
LU-107 Add scripts for implementing heartbeat v1 failover

/usr/sbin/ldev - list devices, determine validity, etc.
/usr/sbin/lhbadm - wrapper for heartbeat utils for failover/failback/status
/etc/ha.d/resource.d/Lustre - heartbeat resource agent (wraps init script)
/etc/init.d/lustre - lustre init script
/etc/init.d/lnet - lnet init script
/usr/sbin/haconfig - helper script for building heartbeat config files

The scripts use two configuration files:
 /etc/ldev.conf - maps hostnames to failover partners, devices, and labels
 /etc/nids - hostnames to lustre NIDS

In addition to heartbeat support, the ldev script enables parallel
execution of commands against all luns configured on a server.  The
lustre init script supports devices backed by Linux software RAID, ZFS,
or traditional block devices.

NOTE: these scripts presume the udev rules for persistent block device
naming are in place, in particular that lustre labels can be mapped to
block devices in /dev/disk/by-id.

Change-Id: I8391744ce6eed989c061f131aca4a2da7b5d51b2
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-on: http://review.whamcloud.com/290
Reviewed-by: Doug Oucharek <doug@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
19 files changed:
lustre.spec.in
lustre/autoconf/lustre-core.m4
lustre/conf/Makefile.am
lustre/conf/ldev.conf [new file with mode: 0644]
lustre/conf/lustre [new file with mode: 0644]
lustre/doc/Makefile.am
lustre/doc/ldev.8 [new file with mode: 0644]
lustre/doc/ldev.conf.5 [new file with mode: 0644]
lustre/doc/lhbadm.8 [new file with mode: 0644]
lustre/doc/nids.5 [new file with mode: 0644]
lustre/scripts/.gitignore
lustre/scripts/Lustre [new file with mode: 0644]
lustre/scripts/Makefile.am
lustre/scripts/haconfig [new file with mode: 0644]
lustre/scripts/ldev [new file with mode: 0644]
lustre/scripts/lhbadm [new file with mode: 0644]
lustre/scripts/lnet [new file with mode: 0644]
lustre/scripts/lustre [deleted file]
lustre/scripts/lustre.in [new file with mode: 0644]