Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384543 - sys-fs/lvm2: Shutdown of volumes has trouble with snapshots
Summary: sys-fs/lvm2: Shutdown of volumes has trouble with snapshots
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 17:34 UTC by Christian Ruppert (idl0r)
Modified: 2014-02-02 19:53 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 Christian Ruppert (idl0r) gentoo-dev 2011-09-26 17:34:38 UTC
Create a volume and make a snapshot of it.
# /etc/init.d/lvm stop
 *   Shutting Down logical volumes  ...
  Can't change snapshot logical volume "snap_test"                        [ !! ]

That's happens in /lib/rcscripts/addons/lvm-stop.sh:20
So e.g.
/sbin/lvchange --config global { locking_dir = "/dev/.lvm" } --sysinit -a ln vg

Looks like we should excludes snapshots, at least in some cases.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-03-27 02:38:44 UTC
That was the BL1 stop.sh script.
Please retest with BL2.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-03-27 02:39:08 UTC
Hmm, I didn't realize that the script is still used
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-03-27 02:49:15 UTC
Ok, this is problematic.
We're passing the name of the VG, not the name of the LV
this is so that lvchange can shut down volumes nicely in parallel.

Does the next command, "Shutting Down volume groups" work properly?

And after that, how many LVs are left?

Add this to the end of that script:
/sbin/lvs --config "${config}"
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-02 19:53:15 UTC
That script is no longer in use at all.