Bug 602748
Summary: | mirror leg down conversion during log up conversion leads to issues when specifying devs to be removed | |||
---|---|---|---|---|
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: | medium | |||
Version: | 6.0 | CC: | agk, coughlan, dwysocha, heinzm, jbrassow, joe.thornber, mbroz, prajnoha, prockai, syeghiay | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | lvm2-2.02.82-1.el6 | Doc Type: | Bug Fix | |
Doc Text: |
When converting a mirror in such a way that adds devices - either to the image count or log - there must be enough devices available to make the change or the command will fail. This is especially pertinent when specifying devices (PVs) to be used for the conversion.
Specified PVs are treated in the following manor when converting:
Up-converting (adding devices to the mirror or its log):
When PVs are specified, they are treated as the only available source for allocation. You must specify enough PVs to satisfy the request.
Down-converting (removing devices from the mirror or its log):
When PVs are specified, they are treated as the preferential devices to be removed. If there are more images to be removed than PVs specified, the remaining images are chosen by LVM.
|
Story Points: | --- | |
Clone Of: | ||||
: | 640051 (view as bug list) | Environment: | ||
Last Closed: | 2011-05-19 14:26:07 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: | 640051 |
Description
Corey Marthaler
2010-06-10 16:13:07 UTC
This operation works when converting from 3-way core log to 2-way disk log, since both the down and up convert use the one device specified. [root@taft-01 ~]# lvcreate -n mirror -L 100M -m 2 --mirrorlog core centipede Logical volume "mirror" created [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Convert Devices mirror centipede mwi-a- 100.00m 100.00 mirror_mimage_0(0),mirror_mimage_1(0),mirror_mimage_2(0) [mirror_mimage_0] centipede iwi-ao 100.00m /dev/sdh2(0) [mirror_mimage_1] centipede iwi-ao 100.00m /dev/sdh1(0) [mirror_mimage_2] centipede iwi-ao 100.00m /dev/sdg2(0) [root@taft-01 ~]# lvconvert --mirrorlog disk -m 1 centipede/mirror /dev/sdg2 Logical volume mirror converted. [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Convert Devices mirror centipede mwi-a- 100.00m mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0) [mirror_mimage_0] centipede iwi-ao 100.00m /dev/sdh2(0) [mirror_mimage_1] centipede iwi-ao 100.00m /dev/sdh1(0) [mirror_mlog] centipede lwi-ao 4.00m /dev/sdg2(0) This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. This issue also happens when dealing with the fact you can't yet up convert mirror logs. [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Convert Devices centi_base centipede mwi-a- 700.00m centi_base_mlog 100.00 centi_base_mimage_0(0),centi_base_mimage_1(0),centi_base_mimage_2(0) [centi_base_mimage_0] centipede iwi-ao 700.00m /dev/sdh2(0) [centi_base_mimage_1] centipede iwi-ao 700.00m /dev/sdh1(0) [centi_base_mimage_2] centipede iwi-ao 700.00m /dev/sdg2(0) [centi_base_mlog] centipede lwi-ao 4.00m /dev/sde1(0) [root@taft-01 ~]# lvconvert --mirrorlog mirrored -m 1 centipede/centi_base /dev/sdh2 /dev/sdf2 Adding log redundancy not supported yet. Try converting the log to 'core' first. [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Convert Devices centi_base centipede mwi-a- 700.00m centi_base_mlog 100.00 centi_base_mimage_1(0),centi_base_mimage_2(0) centi_base_mimage_0 centipede -wi--- 700.00m /dev/sdh2(0) [centi_base_mimage_1] centipede iwi-ao 700.00m /dev/sdh1(0) [centi_base_mimage_2] centipede iwi-ao 700.00m /dev/sdg2(0) [centi_base_mlog] centipede lwi-ao 4.00m /dev/sde1(0) This bug is going to lead to issues when running standard regression tests because the "goofied" legs don't get deleted when they're supposed to, so after awhile you need up running of of free devs. LV VG Attr LSize Log Copy% Devices centi_base centipede mwi-a- 700.00m centi_base_mlog 100.00 centi_base_mimage_30(0),centi_base_mimage_31(0) centi_base_mimage_12 centipede -wi--- 700.00m /dev/sdg2(350) centi_base_mimage_16 centipede -wi--- 700.00m /dev/sdg1(175) centi_base_mimage_19 centipede -wi--- 700.00m /dev/sdg2(525) centi_base_mimage_2 centipede -wi--- 700.00m /dev/sdg2(0) centi_base_mimage_22 centipede -wi--- 700.00m /dev/sdg2(700) centi_base_mimage_25 centipede -wi--- 700.00m /dev/sdg2(875) centi_base_mimage_29 centipede -wi--- 700.00m /dev/sdg1(350) [centi_base_mimage_30] centipede iwi-ao 700.00m /dev/sdh2(0) [centi_base_mimage_31] centipede iwi-ao 700.00m /dev/sdh1(0) centi_base_mimage_5 centipede -wi--- 700.00m /dev/sdg2(175) centi_base_mimage_9 centipede -wi--- 700.00m /dev/sdg1(0) [centi_base_mlog] centipede mwi-ao 4.00m 100.00 centi_base_mlog_mimage_0(0),centi_base_mlog_mimage_1(0) [centi_base_mlog_mimage_0] centipede iwi-ao 4.00m /dev/sde2(0) [centi_base_mlog_mimage_1] centipede iwi-ao 4.00m /dev/sde1(0) (granted it's easily hacked around but still) This issue has been proposed when we are only considering blocker issues in the current Red Hat Enterprise Linux release. It has been denied for the current Red Hat Enterprise Linux release. ** If you would still like this issue considered for the current release, ask your support representative to file as a blocker on your behalf. Otherwise ask that it be considered for the next Red Hat Enterprise Linux release. ** 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: When converting a mirror is such a way that adds devices - either to the image count or log - there must be enough devices available to make the change or the command will fail. This is especially pertinent when specifying devices (PVs) to be used for the conversion. Specified PVs are treated in the following manor when converting: Up-converting (adding devices to the mirror or its log): When PVs are specified, they are treated as the only available source for allocation. You must specify enough PVs to satisfy the request. Down-converting (removing devices from the mirror or its log): When PVs are specified, they are treated as the preferential devices to be removed. If there are more images to be removed than PVs specified, the remaining images are chosen by LVM. Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1,4 @@ -When converting a mirror is such a way that adds devices - either to the image count or log - there must be enough devices available to make the change or the command will fail. This is especially pertinent when specifying devices (PVs) to be used for the conversion. +When converting a mirror in such a way that adds devices - either to the image count or log - there must be enough devices available to make the change or the command will fail. This is especially pertinent when specifying devices (PVs) to be used for the conversion. Specified PVs are treated in the following manor when converting: Up-converting (adding devices to the mirror or its log): It is no longer possible to add/remove a log device while removing/adding a mirror image while specifying PVs. This operation is no longer allowed. Marking verified. [root@taft-02 ~]# lvconvert -m 3 --mirrorlog core taft/mirror /dev/sde1 /dev/sdh1 Cannot both allocate and free extents when specifying physical volumes to use. Please specify the operation in two steps. 2.6.32-94.el6.x86_64 lvm2-2.02.83-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 lvm2-libs-2.02.83-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 lvm2-cluster-2.02.83-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 udev-147-2.31.el6 BUILT: Wed Jan 26 05:39:15 CST 2011 device-mapper-1.02.62-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 device-mapper-libs-1.02.62-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 device-mapper-event-1.02.62-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 device-mapper-event-libs-1.02.62-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 cmirror-2.02.83-2.el6 BUILT: Tue Feb 8 10:10:57 CST 2011 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0772.html |