[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] '/etc/init.d/lvm' script in debian package



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]