Bug 1063542
| Summary: | pending thin snapshot merge after "reboot" causes problems when pool is stacked on raid | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| lvm2 sub component: | Default / Unclassified | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | high | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, lmiksik, msnitzer, prajnoha, prockai, thornber, zkabelac |
| Version: | 7.0 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.105-4.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 12:20:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Marthaler
2014-02-11 00:27:53 UTC
Yep - there was a nasty bug in the locking code which cause horrible execution of metadata update without keeping the VG lock in some special cases. Fixed already upstream: https://www.redhat.com/archives/lvm-devel/2014-January/msg00056.html Will be included in the next lvm2 build. Fix verified in the latest rpms. 3.10.0-84.el7.x86_64 lvm2-2.02.105-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 lvm2-libs-2.02.105-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 lvm2-cluster-2.02.105-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 device-mapper-1.02.84-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 device-mapper-libs-1.02.84-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 device-mapper-event-1.02.84-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 device-mapper-event-libs-1.02.84-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 device-mapper-persistent-data-0.2.8-4.el7 BUILT: Fri Jan 24 14:28:55 CST 2014 cmirror-2.02.105-4.el7 BUILT: Wed Feb 19 09:19:54 CST 2014 SCENARIO - [reboot_before_merge_starts] Attempt to merge an inuse snapshot, then "reboot" the machine before the merge can take place Making origin volume Converting *Raid* volumes to thin pool and thin pool metadata devices lvcreate --type raid1 -m 1 --zero n -L 4G -n POOL snapper_thinp lvcreate --type raid1 -m 1 --zero n -L 4G -n meta snapper_thinp Waiting until all mirror|raid volumes become fully syncd... 0/2 mirror(s) are fully synced: ( 6.75% 3.08% ) 0/2 mirror(s) are fully synced: ( 14.11% 14.35% ) 0/2 mirror(s) are fully synced: ( 21.34% 21.57% ) 0/2 mirror(s) are fully synced: ( 86.21% 86.35% ) 0/2 mirror(s) are fully synced: ( 97.63% 94.10% ) 2/2 mirror(s) are fully synced: ( 100.00% 100.00% ) lvconvert --thinpool snapper_thinp/POOL --poolmetadata meta Sanity checking pool device metadata (thin_check /dev/mapper/snapper_thinp-POOL_tmeta) examining superblock examining devices tree examining mapping tree lvcreate --virtualsize 1G -T snapper_thinp/POOL -n origin lvcreate --virtualsize 1G -T snapper_thinp/POOL -n other1 lvcreate --virtualsize 1G -T snapper_thinp/POOL -n other2 lvcreate --virtualsize 1G -T snapper_thinp/POOL -n other3 lvcreate -V 1G -T snapper_thinp/POOL -n other4 lvcreate -V 1G -T snapper_thinp/POOL -n other5 Placing an xfs filesystem on origin volume Mounting origin volume Making snapshot of origin volume lvcreate -K -s /dev/snapper_thinp/origin -n merge_reboot Mounting snap volume Attempt to merge snapshot snapper_thinp/merge_reboot lvconvert --merge snapper_thinp/merge_reboot Logical volume snapper_thinp/merge_reboot contains a filesystem in use. umount and deactivate volume group vgchange --sysinit -ay snapper_thinp vgchange --refresh snapper_thinp perform raid scrubbing on POOL_tdata (lvchange --syncaction repair snapper_thinp/POOL_tdata) perform raid scrubbing on POOL_tmeta (lvchange --syncaction repair snapper_thinp/POOL_tmeta) Waiting until all mirror|raid volumes become fully syncd... 0/2 mirror(s) are fully synced: ( 12.83% 2.26% ) 0/2 mirror(s) are fully synced: ( 26.16% 6.76% ) 0/2 mirror(s) are fully synced: ( 39.11% 11.71% ) 1/2 mirror(s) are fully synced: ( 100.00% 77.74% ) 1/2 mirror(s) are fully synced: ( 100.00% 87.02% ) 1/2 mirror(s) are fully synced: ( 100.00% 95.51% ) 2/2 mirror(s) are fully synced: ( 100.00% 100.00% ) Removing thin origin and other virtual thin volumes Removing thinpool snapper_thinp/POOL This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |