Bug 1349661
| Summary: | 'device-mapper: raid: Reshaping arrays not yet supported. (device count change)' error when attempting to create raid with RO tag | ||
|---|---|---|---|
| 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: | medium | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, rbednar, rhandlin, zkabelac |
| Version: | 7.3 | Flags: | rhandlin:
needinfo+
|
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.180-7.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-30 11:02:16 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: | |||
| Bug Depends On: | 1594916 | ||
| Bug Blocks: | |||
|
Description
Corey Marthaler
2016-06-23 22:47:01 UTC
Still hitting this in the latest rpms.
3.10.0-497.el7.x86_64
lvm2-2.02.164-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
lvm2-libs-2.02.164-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
lvm2-cluster-2.02.164-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-1.02.133-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-libs-1.02.133-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-event-1.02.133-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-event-libs-1.02.133-4.el7 BUILT: Wed Aug 31 08:47:09 CDT 2016
device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 05:29:13 CDT 2016
[root@host-116 ~]# grep read_only /etc/lvm/lvm.conf
# Configuration option global/metadata_read_only.
metadata_read_only = 0
# Configuration option activation/read_only_volume_list.
read_only_volume_list = [ "@RO" ]
SCENARIO (raid10) - [kern_perm_change_of_raid_to_rw_after_tag_removal]
Verify in-kernel permission changes are possible when the metadata setting is different
** This test case may cause bug 1349661 **
** When this is run in isolation it passes, so if you see this it was most likely due to previous device configuration cases **
Create a raid with tags that match what is present in the read_only_volume_list and then change the in-kernel permissions
lvcreate --type raid10 -n kern_perm -L 300M --addtag RO raid_sanity
/dev/raid_sanity/kern_perm_rmeta_0: write failed after 0 of 4096 at 0: Operation not permitted
/dev/raid_sanity/kern_perm_rmeta_1: write failed after 0 of 4096 at 0: Operation not permitted
/dev/raid_sanity/kern_perm_rmeta_2: write failed after 0 of 4096 at 0: Operation not permitted
/dev/raid_sanity/kern_perm_rmeta_3: write failed after 0 of 4096 at 0: Operation not permitted
device-mapper: reload ioctl on (253:10) failed: Input/output error
Failed to activate new LV.
couldn't create raid kern_perm
Aug 31 22:50:53 host-116 qarshd[14574]: Running cmdline: lvcreate --type raid10 -n kern_perm -L 300M --addtag RO raid_sanity
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: devmap not registered, can't remove
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: devmap not registered, can't remove
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: devmap not registered, can't remove
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-2: devmap not registered, can't remove
Aug 31 22:50:53 host-116 multipathd: dm-2: remove map (uevent)
Aug 31 22:50:53 host-116 kernel: md/raid10:mdX: not enough operational mirrors.
Aug 31 22:50:53 host-116 kernel: md: pers->run() failed ...
Aug 31 22:50:53 host-116 kernel: device-mapper: table: 253:10: raid: Failed to run raid array
Aug 31 22:50:53 host-116 kernel: device-mapper: ioctl: error adding target to table
Aug 31 22:50:53 host-116 multipathd: dm-10: remove map (uevent)
Aug 31 22:50:53 host-116 multipathd: dm-10: remove map (uevent)
Corey, this is fixed along with https://bugzilla.redhat.com/show_bug.cgi?id=1594916. Can you please verify? Verified with latest rpms. lvm2-2.02.180-8.el7.x86_64 kernel-3.10.0-951.el7.x86_64 SCENARIO (raid10) - [kern_perm_change_of_raid_to_rw_after_tag_removal] Verify in-kernel permission changes are possible when the metadata setting is different ** This test case may cause bug 1349661 ** ** When this is run in isolation it passes, so if you see this it was most likely due to previous device configuration cases ** Create a raid with tags that match what is present in the read_only_volume_list and then change the in-kernel permissions lvcreate --type raid10 -n kern_perm -L 300M --addtag RO raid_sanity Error writing device /dev/raid_sanity/kern_perm at 0 length 4096. kern_perm:rRi-a-r--- [raid_sanity_raid10_kern_perm_change_of_raid_to_rw_after_tag_removal] Attempting to write to ro raid dd: writing to ‘/dev/raid_sanity/kern_perm’: Operation not permitted 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000198103 s, 0.0 kB/s Remove the tags from the raid volume, and attempt to change the in kernel RW permissions lvchange --deltag RO raid_sanity/kern_perm lvchange -prw raid_sanity/kern_perm kern_perm:rwi-a-r--- perform raid scrubbing (lvchange --syncaction check) on raid raid_sanity/kern_perm Waiting until all mirror|raid volumes become fully syncd... 1/1 mirror(s) are fully synced: ( 100.00% ) Sleeping 15 sec Deactivating raid kern_perm... and removing 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://access.redhat.com/errata/RHBA-2018:3193 |