Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504092 - sys-fs/lvm2-2.02.103[clvm,cman] auto_activation_volume_list not respected, no stop_volumes
Summary: sys-fs/lvm2-2.02.103[clvm,cman] auto_activation_volume_list not respected, no...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 14:59 UTC by Michael Weber (RETIRED)
Modified: 2020-12-27 23:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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