Announcement

Collapse
No announcement yet.

LVM startup problem after 9.04 upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LVM startup problem after 9.04 upgrade

    Hey All,

    I was wondering if you could please help me out. I had a LVM for storage that worked fine under 8.10. After performing an upgrade to 9.04, my LVM init script no longer worked.

    I've used the script here for quite some time:
    http://www.tldp.org/HOWTO/LVM-HOWTO/...iptdebian.html

    Thinking that it might have been something borked with the current install, I backed everything up and did a fresh install of 9.04 and then install lvm2. The script would still not work on reboot. The LVM still exists and works if I manually 'vgscan', 'vgchange -ay' and 'mount' the LVM. The startup script in /etc/init.d/lvm will not function any longer.

    I've tried searching for bugs on this topic, but have not been able to find anything.

    Thanks for any help or pointers you can give on this topic!

    #2
    Re: LVM startup problem after 9.04 upgrade

    Does the script work if you run it? Is it being run at boot? Do you have a Sxxlvm link in /etc/rc2.d?

    Here is the script that Debian uses with lvm2
    ************************************************** **************************************#!/bin/sh
    ### BEGIN INIT INFO
    # Provides: lvm2 lvm
    # Required-Start: mountdevsubfs
    # Required-Stop:
    # Should-Start: udev devfsd raid2 mdadm cryptdisks-early
    # Should-Stop: reboot halt umountroot
    # X-Start-Before: checkfs mountall
    # X-Stop-after: umountfs
    # Default-Start: S
    # Default-Stop: 0 6
    ### END INIT INFO

    SCRIPTNAME=/etc/init.d/lvm2

    . /lib/lsb/init-functions

    [ -x /sbin/vgchange ] || exit 0

    do_start()
    {
    modprobe dm-mod 2> /dev/null || :
    /sbin/vgscan --ignorelockingfailure --mknodes || :
    /sbin/vgchange -aly --ignorelockingfailure || return 2
    }

    do_stop()
    {
    /sbin/vgchange -aln --ignorelockingfailure || return 2
    }

    case "$1" in
    start)
    log_begin_msg "Setting up LVM Volume Groups"
    do_start
    case "$?" in
    0|1) log_end_msg 0 ;;
    2) log_end_msg 1 ;;
    esac
    ;;
    stop)
    log_begin_msg "Shutting down LVM Volume Groups"
    do_stop
    case "$?" in
    0|1) log_end_msg 0 ;;
    2) log_end_msg 1 ;;
    esac
    ;;
    restart|force-reload)
    ;;
    *)
    echo "Usage: $SCRIPTNAME {start|stop}" >&2
    exit 3
    ;;
    esac
    ************************************************** *************************

    Comment


      #3
      Re: LVM startup problem after 9.04 upgrade

      Adding the lvm2 script you posted did the trick! My LVM is now active after boot-up. The LVM script I was using with 8.10 and lvm2 must have become defunct in 9.04. Go figure...

      I have read other places that lvm2 does not require a script to start-up the array. Have you heard anything of the sort?

      Thanks for your help!!!!

      Comment


        #4
        Re: LVM startup problem after 9.04 upgrade

        I honestly don't think that it does, but I am not knowledgeable enough to say for sure. I know that I have a system that has a Debian install with LVM and Kubuntu, which does not support it during install. After installing lvm2 on kubuntu with no /etc/init.d/ script I am able to use the logical volumes under Kubuntu. I have not noticed any degradation due to this, but I may at any time. Some day maybe it will break and I will be forced to take the time to really learn it.

        Comment

        Working...
        X