creation of snapshots fails unpredictably
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Debian |
Fix Released
|
Unknown
|
|||
lvm2 (Ubuntu) |
Fix Released
|
High
|
Scott James Remnant (Canonical) |
Bug Description
Often, lvm snapshots are created sucessfully:
root@hades:~ # lvcreate -s -n sid_snap /dev/hades_
Setting chunksize to 16 sectors.
Finding volume group "hades_stripe"
Archiving volume group "hades_stripe" metadata (seqno 200).
Creating logical volume sid_snap
Creating volume group backup "/etc/lvm/
Found volume group "hades_stripe"
Loading hades_stripe-
Zeroing start of logical volume "sid_snap"
Found volume group "hades_stripe"
Removing hades_stripe-
Found volume group "hades_stripe"
Found volume group "hades_stripe"
Found volume group "hades_stripe"
Loading hades_stripe-
Loading hades_stripe-
Loading hades_stripe-
Loading hades_stripe-
Creating volume group backup "/etc/lvm/
Logical volume "sid_snap" created
Sometimes, however (approx 30% of the time), it fails like this:
root@hades:~ # lvcreate -s -n sid_snap /dev/hades_
Setting chunksize to 16 sectors.
Finding volume group "hades_stripe"
Archiving volume group "hades_stripe" metadata (seqno 203).
Creating logical volume sid_snap
Creating volume group backup "/etc/lvm/
Found volume group "hades_stripe"
Loading hades_stripe-
Zeroing start of logical volume "sid_snap"
Found volume group "hades_stripe"
LV hades_stripe/
Couldn't deactivate new snapshot.
It is there, and I need to remove it before recreating it for use:
root@hades:~ # lvremove /dev/hades_
Logical volume "sid_snap" successfully removed
then I retry it and often, it succeeds.
This behaviour completly confuses schroot, which provides chroots on lvm snapshots.
This happens on my dapper/amd64 machine. I wonder why it doesn't on my x86 laptop. Perhaps this is arch dependant?
Related branches
Changed in lvm2: | |
assignee: | nobody → ijackson |
Changed in debian: | |
status: | New → Fix Released |
On Dec 17, Andreas Sundstrom <email address hidden> wrote:
> matrix: /home/sunkan# /sbin/lvm lvcreate -s -L 1G -n var_s /dev/3ware/var
> LV 3ware/var_s in use: not removing
Find why it's in use then.
--
ciao,
Marco