Bug 848901
Summary: | mirrored log redundancy can be compromised when converting from disk -> mirrored log | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED WONTFIX | QA Contact: | cluster-qe <cluster-qe> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 6.3 | CC: | agk, dwysocha, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, 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: | 2017-09-29 20:55:50 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
2012-08-16 18:22:29 UTC
There doesn't need to be PVs equal to 1+ the number of mirror images for this to occur. Any time there isn't a free device for the mirrored log conversion, you'll see the same device that the current disk log is on be used when allocating the new mirrored log device. [root@taft-01 ~]# lvcreate -m 2 -L 100M -n mirror taft Logical volume "mirror" created [root@taft-01 ~]# lvs -a -o +devices LV Attr LSize Log Copy% Devices mirror mwi-a-m- 100.00m mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0),mirror_mimage_2(0) [mirror_mimage_0] iwi-aom- 100.00m /dev/sdb1(0) [mirror_mimage_1] iwi-aom- 100.00m /dev/sdc1(0) [mirror_mimage_2] iwi-aom- 100.00m /dev/sdd1(0) [mirror_mlog] lwi-aom- 4.00m /dev/sdd1(25) [root@taft-01 ~]# lvconvert --mirrorlog mirrored taft/mirror Logical volume mirror converted. [root@taft-01 ~]# lvs -a -o +devices LV Attr LSize Log Copy% Devices mirror mwi-a-m- 100.00m mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0),mirror_mimage_2(0) [mirror_mimage_0] iwi-aom- 100.00m /dev/sdb1(0) [mirror_mimage_1] iwi-aom- 100.00m /dev/sdc1(0) [mirror_mimage_2] iwi-aom- 100.00m /dev/sdd1(0) [mirror_mlog] mwi-aom- 4.00m 100.00 mirror_mlog_mimage_0(0),mirror_mlog_mimage_1(0) [mirror_mlog_mimage_0] iwi-aom- 4.00m /dev/sdd1(25) [mirror_mlog_mimage_1] iwi-aom- 4.00m /dev/sdd1(26) no-one should use 'mirroredlog' redundancy - use the 'raid1' segtype instead. I'm interested in deprecating this feature all-together: https://bugzilla.redhat.com/show_bug.cgi?id=1497345 |