2008-05-03 17:03:02 +00:00
|
|
|
# rcS - runlevel compatibility
|
|
|
|
#
|
|
|
|
# This task runs the old sysv-rc startup scripts.
|
|
|
|
|
|
|
|
start on stopped virtualfs
|
|
|
|
|
|
|
|
#stop on runlevel
|
|
|
|
|
|
|
|
description "Initialize Locical Volume Manager (LVM)"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
|
|
|
|
console logged
|
|
|
|
|
|
|
|
# Note: there can be no previous runlevel here, if we have one it's bad
|
|
|
|
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
|
|
|
|
# without information so that it defaults to previous=N runlevel=S.
|
|
|
|
console output
|
|
|
|
script
|
2010-01-28 13:58:15 +00:00
|
|
|
source /etc/event.d/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
if [ -f /sbin/vgscan ]; then
|
|
|
|
/sbin/vgscan >/dev/null 2>&1
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Scanning of Volumes....."
|
2008-05-03 17:03:02 +00:00
|
|
|
for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do
|
2010-01-28 13:58:15 +00:00
|
|
|
vgchange -a -y $i
|
|
|
|
status_message "Volume Aktivation of $i ..."
|
2008-05-03 17:03:02 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
end script
|