285a4df5d6
--HG-- extra : convert_revision : 16248a8cc2d1a31eb220ccdfa1abc1695ab577e5
28 lines
490 B
Bash
28 lines
490 B
Bash
#!/bin/sh
|
|
|
|
PREREQ="mdadm mdrun multipath"
|
|
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
|
|
case $1 in
|
|
# get pre-requisites
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
[ ! -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..."
|
|
eval /sbin/lvm vgscan --ignorelockingfailure
|
|
echo "Activating Logical Volumes..."
|
|
eval /sbin/lvm vgchange --ignorelockingfailure -ay
|
|
fi
|
|
exit $?
|