Creation of partition device fails with kpartx error - "device-mapper: reload ioctl failed: Invalid argument"
(Doc ID 1942337.1)
Last updated on AUGUST 04, 2018
Applies to:
Linux OS - Version Oracle Linux 5.0 and laterLinux x86
Linux x86-64
Symptoms
- After a system reboot, the partition device for a multipath device fails to get created. And the errors in "/var/log/messages" file, during system boot are:
multipathd: uevent trigger error
kernel: device-mapper: table: device /dev/mapper/mpath2 too small for target
kernel: device-mapper: table: 253:16: linear: dm-linear: Device lookup failed
kernel: device-mapper: ioctl: error adding target to table
kernel: device-mapper: table: device /dev/mapper/mpath2 too small for target
kernel: device-mapper: table: 253:16: linear: dm-linear: Device lookup failed
kernel: device-mapper: ioctl: error adding target to table
- When kpartx command is run to create the partition devices, it fails with error:
# kpartx -av /dev/mapper/mpath2
device-mapper: reload ioctl failed: Invalid argument
create/reload failed on mpath2p1
add map mpath2p1 (0:0): 0 251658162 linear /dev/mapper/mpath2 63
device-mapper: reload ioctl failed: Invalid argument
create/reload failed on mpath2p1
add map mpath2p1 (0:0): 0 251658162 linear /dev/mapper/mpath2 63
- The "parted" command on the disk returns error: "Error: Can't have a partition outside the disk!"
- But an "fdisk -l" command, lists the partition(s) on the disk.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |