[linux-lvm] '/etc/init.d/lvm' script in debian package
Andreas Dilger
adilger at turbolinux.com
Sun Dec 24 05:12:23 UTC 2000
Russel Coker writes:
> #!/bin/sh
> #
> # lvm This script handles the LVM startup/shutdown
> # so that LVMs are properly configured and available.
> #
>
> if [ "0" = `grep -c lvm /proc/devices` ]; then
> exit 0
> fi
> [ -f /etc/lvmtab ] || exit 0
> [ -x /sbin/vgscan ] || exit 0
This ^^^^^^ should probably be "vgchange" looking at your script.
> case "$1" in
> start)
> echo "Setting up LVM Volume Groups..."
> #/sbin/vgscan
> /sbin/vgchange -a y
> ;;
>
> stop)
> echo "Shutting down LVM Volume Groups... "
> /sbin/vgchange -a n
> ;;
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
More information about the linux-lvm
mailing list