Bug 1753713
| Summary: | vgchange --refresh can fail if running "delayed" merge is in progress: "snapshot-merge: A snapshot is already merging." | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | ||||
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> | ||||
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | cluster-qe <cluster-qe> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | medium | ||||||
| Priority: | medium | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, tborcin, zkabelac | ||||
| Version: | 7.8 | Keywords: | Regression | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | lvm2-2.02.186-3.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-03-31 20:04:51 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: | |||||||
| Attachments: |
|
||||||
|
Description
Corey Marthaler
2019-09-19 15:37:35 UTC
Created attachment 1616798 [details]
verbose vgcreate --refresh attempt
I'd hope these patches should fix this issue: https://www.redhat.com/archives/lvm-devel/2019-October/msg00114.html https://www.redhat.com/archives/lvm-devel/2019-October/msg00115.html https://www.redhat.com/archives/lvm-devel/2019-October/msg00116.html Effectively after merge - the table was improperly updated. If these patches do not fix this problem - we would need to revisit this. Fix verified in the latest rpms. Although, I'm not sure about the "/sys/dev/block/253:3/dm/uuid: fgets failed: Invalid argument" messages from time to time, that's likely a different issue. 3.10.0-1109.el7.x86_64 lvm2-2.02.186-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 lvm2-libs-2.02.186-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 lvm2-cluster-2.02.186-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 lvm2-lockd-2.02.186-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 device-mapper-1.02.164-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 device-mapper-libs-1.02.164-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 device-mapper-event-1.02.164-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 device-mapper-event-libs-1.02.164-3.el7 BUILT: Fri Nov 8 07:07:01 CST 2019 device-mapper-persistent-data-0.8.5-1.el7 BUILT: Mon Jun 10 03:58:20 CDT 2019 [root@hayes-01 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices corigin cache_sanity Owi---C--- 4.00g [pool] [corigin_corig] corigin_corig(0) [corigin_corig] cache_sanity owi---C--- 4.00g /dev/sdg1(0) [lvol0_pmspare] cache_sanity ewi------- 12.00m /dev/sdc1(0) [merge_reboot] cache_sanity Swi---s--- 500.00m corigin /dev/sdc1(3) [pool] cache_sanity Cwi---C--- 2.00g pool_cdata(0) [pool_cdata] cache_sanity Cwi------- 2.00g /dev/sde1(0) [pool_cmeta] cache_sanity ewi------- 12.00m /dev/sde1(512) [root@hayes-01 ~]# vgchange --sysinit -ay cache_sanity 1 logical volume(s) in volume group "cache_sanity" now active [root@hayes-01 ~]# vgchange --refresh cache_sanity [root@hayes-01 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices corigin cache_sanity Cwi-a-C--- 4.00g [pool] [corigin_corig] 0.00 6.58 0.00 corigin_corig(0) [corigin_corig] cache_sanity owi-aoC--- 4.00g /dev/sdg1(0) [lvol0_pmspare] cache_sanity ewi------- 12.00m /dev/sdc1(0) [pool] cache_sanity Cwi---C--- 2.00g 0.00 6.58 0.00 pool_cdata(0) [pool_cdata] cache_sanity Cwi-ao---- 2.00g /dev/sde1(0) [pool_cmeta] cache_sanity ewi-ao---- 12.00m /dev/sde1(512) ============================================================ Iteration 10 of 10 started at Mon Nov 11 10:38:08 CST 2019 ============================================================ SCENARIO - [reboot_before_cache_snap_merge_starts] Attempt to merge an inuse snapshot, then "reboot" the machine before the merge can take place *** Cache info for this scenario *** * origin (slow): /dev/sde1 * pool (fast): /dev/sdc1 ************************************ Adding "slow" and "fast" tags to corresponding pvs Create origin (slow) volume lvcreate --wipesignatures y -L 4G -n corigin cache_sanity @slow WARNING: xfs signature detected on /dev/cache_sanity/corigin at offset 0. Wipe it? [y/n]: [n] Aborted wiping of xfs. 1 existing signature left on the device. Create cache data and cache metadata (fast) volumes lvcreate -L 2G -n pool cache_sanity @fast lvcreate -L 12M -n pool_meta cache_sanity @fast Create cache pool volume by combining the cache data and cache metadata (fast) volumes with policy: cleaner mode: writethrough lvconvert --yes --type cache-pool --cachepolicy cleaner --cachemode writethrough -c 32 --poolmetadata cache_sanity/pool_meta cache_sanity/pool WARNING: Converting cache_sanity/pool and cache_sanity/pool_meta to cache pool's data and metadata volumes with metadata wiping. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Create cached volume by combining the cache pool (fast) and origin (slow) volumes lvconvert --yes --type cache --cachemetadataformat 1 --cachepool cache_sanity/pool cache_sanity/corigin Placing an xfs filesystem on origin volume Mounting origin volume Making snapshot of origin volume lvcreate -s /dev/cache_sanity/corigin -c 128 -n merge_reboot -L 500M Mounting snap volume Attempt to merge snapshot cache_sanity/merge_reboot lvconvert --merge cache_sanity/merge_reboot --yes umount and deactivate volume group vgchange --sysinit -ay cache_sanity vgchange --refresh cache_sanity /sys/dev/block/253:3/dm/uuid: fgets failed: Invalid argument /sys/dev/block/253:3/dm/uuid: fgets failed: Invalid argument /sys/dev/block/253:3/dm/uuid: fgets failed: Invalid argument Uncaching cache origin (lvconvert --uncache) cache_sanity/corigin from cache origin Removing cache origin volume cache_sanity/corigin lvremove -f /dev/cache_sanity/corigin Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1129 |