Bug 1430948
Summary: | HA LVM: What is the proper/supported way to create/convert lvm volumes when using existing tagged resources | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
Component: | resource-agents | Assignee: | Oyvind Albrigtsen <oalbrigt> |
Status: | CLOSED NOTABUG | QA Contact: | cluster-qe <cluster-qe> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | agk, cfeist, cluster-maint, cmarthal, fdinitto, heinzm, jbrassow, msnitzer, prajnoha, sbradley, zkabelac |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-08 15:24:26 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
2017-03-10 00:03:31 UTC
Changing the subject to reflect that this issue affects convert operations as well. # Attempt to convert HA linear to HA cache [root@host-122 ~]# lvchange -aly STSRHTS73701/pool [root@host-122 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices ha STSRHTS73701 -wi-ao---- 4.00g /dev/sdh2(0) [lvol0_pmspare] STSRHTS73701 ewi------- 12.00m /dev/sdd2(0) pool STSRHTS73701 Cwi---C--- 6.00g pool_cdata(0) [pool_cdata] STSRHTS73701 Cwi------- 6.00g /dev/sdd2(6) [pool_cmeta] STSRHTS73701 ewi------- 12.00m /dev/sdd2(3) # w/o the tag hack [root@host-122 ~]# lvconvert --yes --type cache --cachepool STSRHTS73701/pool STSRHTS73701/ha Volume "STSRHTS73701/pool" is not active locally. Aborting. Failed to wipe cache pool STSRHTS73701/pool. # w/ the tag hack [root@host-122 ~]# lvconvert --yes --type cache --cachepool STSRHTS73701/pool --config 'activation { volume_list = [ "@foo" ] }' STSRHTS73701/ha Logical volume STSRHTS73701/ha is now cached. # Attempt to convert HA linear to HA raid Resource Group: HA_LVM2 lvm2 (ocf::heartbeat:LVM): Started host-121 fs2 (ocf::heartbeat:Filesystem): Started host-121 # w/o the tag hack [root@host-121 ~]# lvconvert --type raid1 -m 1 STSRHTS73702/ha Are you sure you want to convert linear LV STSRHTS73702/ha to raid1 with 2 images enhancing resilience? [y/n]: y Volume "STSRHTS73702/ha_rmeta_0" is not active locally. Failed to zero STSRHTS73702/ha_rmeta_0. [root@host-121 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices ha STSRHTS73702 -wi-ao---- 4.00g /dev/sdc1(0) ha_rimage_1 STSRHTS73702 -wi------- 4.00g /dev/sdb2(1) ha_rmeta_0 STSRHTS73702 -wi------- 4.00m /dev/sdc1(1024) ha_rmeta_1 STSRHTS73702 -wi------- 4.00m /dev/sdb2(0) # w/ the tag hack # After removing the zombie rimage and rmeta volumes, the tag hack still doesn't work in this case. [root@host-121 ~]# lvconvert --yes --type raid1 -m 1 --config 'activation { volume_list = [ "@foo" ] }' STSRHTS73702/ha Volume "STSRHTS73702/ha_rmeta_0" is not active locally. Failed to zero STSRHTS73702/ha_rmeta_0. Bumping to 7.6. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |