Bug 1367935
Summary: | raid0|raid0_meta create attempt w/ '-i 1' (or no -i flag which currently defaults to '-i 1') fails w/ "LV segments corrupted" | ||
---|---|---|---|
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: | low | ||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, mnavrati, msnitzer, prajnoha, prockai, zkabelac |
Version: | 7.3 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.164-3.el7 | Doc Type: | No Doc Update |
Doc Text: |
Intra-release bug, no documentation needed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 04:17:55 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
2016-08-17 21:34:53 UTC
lvcreate doesn't set a default for stripe_size, hence the failure in vg metadata validation (vg_validate()). Firstly, for now we are requiring a minimum of 2 stripes for raid0 and raid0_meta. The stripe size logic is fixed. # ./lvm lvcreate vg1 --type raid0_meta -L16M Using default stripesize 64.00 KiB. Logical volume "lvol3" created. # ./lvm lvcreate vg1 --type raid0 -L16M Using default stripesize 64.00 KiB. Logical volume "lvol4" created. # ./lvm lvcreate vg1 --type raid0 -L16M -i1 Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid0. Run `lvcreate --help' for more information. Fix verified in the latest rpms. lvm2-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 lvm2-libs-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 lvm2-cluster-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 [root@host-117 ~]# lvcreate --type raid0_meta -n testA -L 32M -i 0 test --stripes may not be zero. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate --type raid0 -n testA -L 32M -i 0 test --stripes may not be zero. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate --type raid0 -n testA -L 32M -i 1 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid0. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate --type raid0_meta -n testA -L 32M -i 1 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid0_meta. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate --type raid0_meta -n testA -L 32M test Using default stripesize 64.00 KiB. Logical volume "testA" created. [root@host-117 ~]# lvcreate --type raid0 -n testB -L 32M test Using default stripesize 64.00 KiB. Logical volume "testB" created. [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Devices testA test rwi-a-r--- 32.00m testA_rimage_0(0),testA_rimage_1(0) [testA_rimage_0] test iwi-aor--- 16.00m /dev/sda1(1) [testA_rimage_1] test iwi-aor--- 16.00m /dev/sdb1(1) [testA_rmeta_0] test ewi-aor--- 4.00m /dev/sda1(0) [testA_rmeta_1] test ewi-aor--- 4.00m /dev/sdb1(0) testB test rwi-a-r--- 32.00m testB_rimage_0(0),testB_rimage_1(0) [testB_rimage_0] test iwi-aor--- 16.00m /dev/sda1(5) [testB_rimage_1] test iwi-aor--- 16.00m /dev/sdb1(5) 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://rhn.redhat.com/errata/RHBA-2016-1445.html |