LVM HOWTO
Prev | Chapter 7. LVM 1 Boot time scripts | Next

# 7.2. Debian

If you download the Debian lvm tool package, an initscript should be installed for you.

If you are installing LVM from source, you will still need to build your own initscript:

Create a startup script in `/etc/init.d/lvm` containing the following:

    #!/bin/sh

    case "$1" in
      start)
    	/sbin/vgscan
    	/sbin/vgchange -ay
            ;;
      stop)
    	/sbin/vgchange -an
            ;;
      restart|force-reload)
    	;;
    esac

    exit 0

Then execute the commands

     # chmod 0755 /etc/init.d/lvm
     # update-rc.d lvm start 26 S . stop 82 1 .

Note the dots in the last command.

Prev | Home | Next
Caldera | Up | Mandrake