Bug 1367177
| Summary: | inconsistent use of the "Adjusting stripes to the minimum of" for raid types | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| 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:44 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-15 19:22:32 UTC
Well given the level of complexity here, I think the new approach does need to be stricter. If you don't supply --stripes, then we should automatically use an appropriate default value. If you do supply --stripes then we should either use the value you supplied or give an error if we cannot. We should no longer adjust it. Note that this means that any scripts that supplied incorrect numbers of stripes when creating raid LVs will now give errors instead of being corrected automatically. https://www.redhat.com/archives/lvm-devel/2016-August/msg00084.html https://www.redhat.com/archives/lvm-devel/2016-August/msg00085.html https://www.redhat.com/archives/lvm-devel/2016-August/msg00086.html https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=c1a0a2c7121af78d469f3908d6a7763b51f377a5 https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=ea0f604e704dc8418d962e20529fd1bcddf06bb7 https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=e192fde6878a0e32316125b2e4c9813f4a95bede This appears fairly consistent now. The only issue being bug 1370658 (raid10). Marking 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 -i 0 --type raid0 -L 100M -n raid0 test --stripes may not be zero. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid0 -L 100M -n raid0 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid0. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 0 --type raid0_meta -L 100M -n raid0 test --stripes may not be zero. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid0_meta -L 100M -n raid0 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 -i 100 --type raid0_meta -L 100M -n raid0 test Using default stripesize 64.00 KiB. Only up to 64 stripes in raid0_meta supported currently. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid4 -L 100M -n raid4 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid4. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid5 -L 100M -n raid5 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid5. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid6 -L 100M -n raid6 test Using default stripesize 64.00 KiB. Minimum of 3 stripes required for raid6. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 2 --type raid6 -L 100M -n raid6 test Using default stripesize 64.00 KiB. Minimum of 3 stripes required for raid6. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 1 --type raid10 -L 100M -n raid10 test Using default stripesize 64.00 KiB. Minimum of 2 stripes required for raid10. Run `lvcreate --help' for more information. [root@host-117 ~]# lvcreate -i 100 --type raid10 -L 100M -n raid10 test Using default stripesize 64.00 KiB. Only up to 64 stripes in raid10 supported currently. Run `lvcreate --help' for more information. 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 |