| Summary: | kpartx creates linear devices corresponding to partitions which have no device file | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | mulhern <amulhern> |
| Component: | device-mapper-multipath | Assignee: | LVM and device-mapper development team <lvm-team> |
| Status: | CLOSED NOTABUG | QA Contact: | Lin Li <lilin> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | agk, bmarzins, heinzm, lilin, msnitzer, prajnoha |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-08 02:56:18 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: | |
|
Description
mulhern
2016-04-04 18:39:05 UTC
For example (output of multipath -ll):
WDC_WD10EFRX-68PJCN0_WD-WCC4JLHVDELY dm-11 ATA ,WDC WD10EFRX-68P
size=932G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
|- 0:0:37:0 sdap 66:144 active ready running
`- 0:0:42:0 sdat 66:208 active ready running
sdap and sdat are multipathed paths to some device, have corresponding device nodes, and so forth.
dm-11 has a holder dm device:
ls /sys/devices/virtual/block/dm-11/holders/
dm-26
which corresponds to the partition on the drive that both sdap and sdat refer to.
But neither sdap nor sdat have partition devices:
[root@megadeth mulhern-journal]# ls /sys/devices/virtual/block/dm-11/slaves/sdat
alignment_offset discard_alignment holders removable subsystem
bdi events inflight ro trace
capability events_async power size uevent
dev events_poll_msecs queue slaves
device ext_range range stat
[root@megadeth mulhern-journal]# ls /sys/devices/virtual/block/dm-11/slaves/sdap
alignment_offset discard_alignment holders removable subsystem
bdi events inflight ro trace
capability events_async power size uevent
dev events_poll_msecs queue slaves
device ext_range range stat
even though the partition is definitely on the drive:
[root@megadeth mulhern-journal]# parted /dev/dm-11
GNU Parted 3.1
Using /dev/dm-11
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Model: Linux device-mapper (multipath) (dm)
Disk /dev/dm-11: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
17.4kB 1049kB 1031kB Free Space
1 1049kB 999MB 998MB
999MB 1000GB 999GB Free Space
The multipath udev rules intentionally remove the partition device nodes from the path devices.
From /lib/udev/rules.d/62-multipath.rules:
ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DM_MULTIPATH_WIPE_PARTS}="1", \
RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
ENV{DM_MULTIPATH_WIPE_PARTS} is used to make sure that these rules only wipe the partitions once. If a user recreates the partition devices (for instance, by using "blockdev --rereadpt") they will not get removed a second time, until you reboot.
So, if I'm understanding this bugzilla correctly, this can be closed as NOTABUG, correct?
Yes, please go ahead. |