2009-10-03 08:58:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PREREQ="mdadm mdrun multipath"
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
# get pre-requisites
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-10-06 16:02:51 +00:00
|
|
|
[ ! -e /sbin/lvm ] && exit 0
|
|
|
|
[ ! -e /dev/urandom ] && mknod /dev/urandom c 1 9
|
|
|
|
|
|
|
|
modprobe -q dm-mod >/dev/null 2>&1
|
|
|
|
if [ -e /sys/class/misc/device-mapper ]; then
|
|
|
|
echo "Scanning for Logical Volumes..."
|
2010-03-01 09:22:56 +00:00
|
|
|
/sbin/lvm vgscan --ignorelockingfailure
|
2009-10-06 16:02:51 +00:00
|
|
|
echo "Activating Logical Volumes..."
|
2010-03-01 09:22:56 +00:00
|
|
|
/sbin/lvm vgchange --ignoremonitoring --ignorelockingfailure -ay
|
2009-10-03 08:58:22 +00:00
|
|
|
fi
|
2009-10-06 16:02:51 +00:00
|
|
|
exit $?
|