Bug 683270
Summary: | HA LVM service relocation after leg device failure causes resume transient error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | Jonathan Earl Brassow <jbrassow> |
Status: | CLOSED ERRATA | QA Contact: | Corey Marthaler <cmarthal> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1 | CC: | agk, dwysocha, heinzm, jbrassow, mbroz, prajnoha, prockai, thornber, zkabelac |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.95-8.el6 | Doc Type: | Bug Fix |
Doc Text: |
This bug made it impossible to add another image (copy) to a mirrored logical volume whose activation is regulated by tags present in the 'volume_list' parameter of lvm.conf. The issue has been resolved by temporarily copying the mirror's tags to the in-coming image so that it can be properly activated.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 14:51:46 UTC | Type: | --- |
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: | 756082 |
Description
Corey Marthaler
2011-03-08 23:17:07 UTC
Odd. After deactivating and reactivating this VG, it no longer thinks this mirror is a mirror, instead, it now thinks these are all individual linear devices. [root@taft-02 ~]# vgchange -ay TAFT 4 logical volume(s) in volume group "TAFT" now active [root@taft-02 ~]# lvs -a -o +devices LV VG Attr LSize Convert Devices ha1 TAFT -wi-a- 3.00g /dev/sdf1(0) ha1_mimage_1 TAFT vwi-a- 3.00g ha1_mimage_2 TAFT -wi-a- 3.00g /dev/sdh1(0) [ha1_mimagetmp_3] TAFT vwi--- 3.00g ha1_mlog TAFT -wi-a- 4.00m /dev/sdb1(0) [root@taft-02 ~]# lvs LV VG Attr LSize ha1 TAFT -wi-a- 3.00g ha1_mimage_1 TAFT vwi-a- 3.00g ha1_mimage_2 TAFT -wi-a- 3.00g ha1_mlog TAFT -wi-a- 4.00m Since RHEL 6.1 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This could be caused by the fact that the new LV which is to become a sub-lv of the mirror does not have the necessary tag on it to be activated. Since the activation fails, the mirror fails to up-convert. This will leave whatever LVs were created (but not activated) in place and all LVs will appear as linear devices. Need to find a way to carry the tag over to the new sub-LV while it is being activated to clear it, then remove the tag as it becomes part of the mirror. Here are the two commands necessary to reproduce this (no HA LVM needed): [root@bp-01 ~]# lvcreate -L 200M -n lv vg Logical volume "lv" created [root@bp-01 ~]# lvconvert -m +1 vg/lv --config 'activation { volume_list = [ "@foo" ] }' Not activating vg/lv_mlog since it does not pass activation filter. Aborting. Failed to activate mirror log. Failed to initialise mirror log. Committed upstream: commit 679f946dd991d4116d63e60e68f212312447e5aa Author: Jonathan Earl Brassow <jbrassow> Date: Sat May 5 02:08:46 2012 +0000 Fix up-convert when mirror activation is controled by volume_list and tags. When mirrors are up-converted, a transient mirror layer is put in so that only the new devices are sync'ed. That transient layer must carry the tags of the original mirror LV, otherwise it will fail to activate when activation is regulated by lvm.conf:activation/volume_list. The conversion would then fail. The fix is to do exactly the same thing that is being done for linear -> mirror converting (lib/metadata/mirror.c:_init_mirror_log()). We copy the tags temporarily for the new LV and remove them after the activation. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: This bug made it impossible to add another image (copy) to a mirrored logical volume whose activation is regulated by tags present in the 'volume_list' parameter of lvm.conf. The issue has been resolved by temporarily copying the mirror's tags to the in-coming image so that it can be properly activated. Fix verified in the latest rpms. 2.6.32-269.el6.x86_64 lvm2-2.02.95-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 lvm2-libs-2.02.95-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 lvm2-cluster-2.02.95-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 udev-147-2.41.el6 BUILT: Thu Mar 1 13:01:08 CST 2012 device-mapper-1.02.74-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 device-mapper-libs-1.02.74-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 device-mapper-event-1.02.74-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 device-mapper-event-libs-1.02.74-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 cmirror-2.02.95-8.el6 BUILT: Wed May 9 03:33:32 CDT 2012 [root@hayes-01 ~]# lvcreate -L 200M -n lv hayes --addtag foo Logical volume "lv" created [root@hayes-01 ~]# lvconvert -m +1 hayes/lv --config 'activation { volume_list = [ "@foo" ] }' hayes/lv: Converted: 0.0% hayes/lv: Converted: 2.0% hayes/lv: Converted: 4.0% [...] hayes/lv: Converted: 96.0% hayes/lv: Converted: 98.0% hayes/lv: Converted: 100.0% 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. http://rhn.redhat.com/errata/RHBA-2012-0962.html |