Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 504092

Summary: sys-fs/lvm2-2.02.103[clvm,cman] auto_activation_volume_list not respected, no stop_volumes
Product: Gentoo Linux Reporter: Michael Weber (RETIRED) <xmw>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: agk, cardoe, hendrik
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Weber (RETIRED) gentoo-dev 2014-03-10 14:59:01 UTC
The auto_activation_volume_list in /etc/lvm/lvm.conf needs lvchange -aay instead of lvchange -ay to work.

Volumes don't get disabled during clvmd stop, so symlink in /dev/mapper persist during restart.

--- /etc/init.d/clvmd   2014-03-10 15:55:31.019714236 +0100
+++ /etc/init.d/clvmd.fixed     2014-03-10 15:54:19.241897330 +0100
@@ -87,7 +87,7 @@
                ebegin "  Activating Clustered VG: ${vg} "
 
                wait=0
-               while [ -n "$($VGCHANGE -a y ${vg} 2>&1 |grep "clvmd not running")" ]; do
+               while [ -n "$($VGCHANGE -aay ${vg} 2>&1 |grep "clvmd not running")" ]; do
                        if [ $wait -lt $CLVMD_NODES_TIMEOUT ]; then
                                sleep 3
                                wait=$(($wait + 3))
@@ -131,7 +131,7 @@
        # umount GFS filesystems
        umount_gfs_filesystems
 
-       #stop_volumes
+       stop_volumes
 
        ebegin "Stopping clvmd"
        #start-stop-daemon --stop -s TERM --quiet --exec ${CLVMD_BIN} --name clvmd