Bug 1161347
| Summary: | When raid creation is aborted, left-over devices appear | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | ||||
| Component: | lvm2 | Assignee: | Heinz Mauelshagen <heinzm> | ||||
| lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | medium | ||||||
| Priority: | unspecified | CC: | agk, cluster-qe, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, rbednar, zkabelac | ||||
| Version: | 7.1 | ||||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | lvm2-2.02.178-1.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1201856 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-10-30 11:02:16 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1201856 | ||||||
| Attachments: |
|
||||||
|
Description
Corey Marthaler
2014-11-07 00:18:49 UTC
Created attachment 954716 [details]
-vvvv of the lvcreate
More... [root@host-110 ~]# lvs -a -o +devices LV VG Attr LSize Devices meta snapper_thinp rwi---r--- 0 meta_rimage_0(0),meta_rimage_1(0) [meta_rimage_0] snapper_thinp Iwi---r--- 100.00m /dev/sdf1(1) [meta_rimage_1] snapper_thinp Iwi---r--- 100.00m /dev/sdc1(1) meta_rmeta_0 snapper_thinp ewi---r--- 4.00m /dev/sdf1(0) meta_rmeta_1 snapper_thinp ewi---r--- 4.00m /dev/sdc1(0) [root@host-110 ~]# lvremove snapper_thinp/meta Logical volume "meta" successfully removed [root@host-110 ~]# lvremove snapper_thinp/meta_rmeta_1 Logical volume "meta_rmeta_1" successfully removed [root@host-110 ~]# lvremove snapper_thinp/meta_rmeta_0 Logical volume "meta_rmeta_0" successfully removed [root@host-110 ~]# lvs -a -o +devices LV VG Attr LSize Devices [meta_rimage_0] snapper_thinp -wi------- 100.00m /dev/sdf1(1) [meta_rimage_1] snapper_thinp -wi------- 100.00m /dev/sdc1(1) [root@host-110 ~]# lvremove snapper_thinp/meta_rimage_0 [root@host-110 ~]# lvs -a -o +devices LV VG Attr LSize Devices [meta_rimage_1] snapper_thinp -wi------- 100.00m /dev/sdc1(1) # If you don't manually clean up that last left over image, the vgremove will fail [root@host-110 ~]# vgremove snapper_thinp Assertion failed: can't _pv_write non-orphan PV (in VG ) Failed to remove physical volume "/dev/sdc1" from volume group "snapper_thinp" Volume group "snapper_thinp" not properly removed Upstream commit d68d71013fb261c87f1d3a26ebf098644055c6d1 Corey, with commit d68d71013fb261c87f1d3a26ebf098644055c6d1, creation of any raid type with metadata devices (raid0_meta,raid1/4/5/6/10) shall fail when not listed in activation/volume_list and no (SubLV)s may persist: # vg=nvm;for type in raid0_meta raid1 raid4 raid5 raid6 raid10;do lvcreate --config "activation/volume_list = [ \"vg_not_exist\" ]" --yes --type $type --size 2 --name will_fail_creation $vg;lvs -ao+devices $vg;done Using default stripesize 64.00 KiB. Rounding up size to full physical extent 4.00 MiB Rounding size 4.00 MiB (1 extents) up to stripe boundary size 8.00 MiB(2 extents). Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Rounding up size to full physical extent 4.00 MiB Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Using default stripesize 64.00 KiB. Rounding up size to full physical extent 4.00 MiB Rounding size 4.00 MiB (1 extents) up to stripe boundary size 8.00 MiB(2 extents). Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Using default stripesize 64.00 KiB. Rounding up size to full physical extent 4.00 MiB Rounding size 4.00 MiB (1 extents) up to stripe boundary size 8.00 MiB(2 extents). Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Using default stripesize 64.00 KiB. Rounding up size to full physical extent 4.00 MiB Rounding size 4.00 MiB (1 extents) up to stripe boundary size 12.00 MiB(3 extents). Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Using default stripesize 64.00 KiB. Rounding up size to full physical extent 4.00 MiB Rounding size 4.00 MiB (1 extents) up to stripe boundary size 8.00 MiB(2 extents). Volume "nvm/will_fail_creation_rmeta_0" is not active locally (volume_list activation filter?). Verified. lvcreate --config activation/volume_list = ["test"] --type raid0_meta -L1G -n test vg Using default stripesize 64.00 KiB. Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). lvcreate --config activation/volume_list = ["test"] --type raid1 -L1G -n test vg Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). lvcreate --config activation/volume_list = ["test"] --type raid4 -L1G -n test vg Using default stripesize 64.00 KiB. Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). lvcreate --config activation/volume_list = ["test"] --type raid5 -L1G -n test vg Using default stripesize 64.00 KiB. Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). lvcreate --config activation/volume_list = ["test"] --type raid6 -L1G -n test vg Using default stripesize 64.00 KiB. Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.01 GiB(258 extents). Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). lvcreate --config activation/volume_list = ["test"] --type raid10 -L1G -n test vg Using default stripesize 64.00 KiB. Volume "vg/test_rmeta_0" is not active locally (volume_list activation filter?). 3.10.0-926.el7.x86_64 lvm2-2.02.180-2.el7 BUILT: Wed Aug 1 18:22:48 CEST 2018 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-2018:3193 |