kpartx command fails with error 'device-mapper: resume ioctl failed: Invalid argument'

Solution Unverified - Updated -

Issue

  • When the multipath device is resized and the size of underlying partition is increased, kpartx -a /dev/mapper/mpathN command is unable to update the multipath map for partition /dev/mapper/mpathNp1 and displays the following error message.
device-mapper: resume ioctl failed: Invalid argument
  • After above error message the partition map is left in SUSPENDED state. This issue is observed only with kpartx-0.4.7-48.el5_8.1.x86_64, in older versions this issue was not observed.
[root@machine1 ~]# kpartx -a /dev/mapper/mpath2
device-mapper: resume ioctl failed: Invalid argument
[root@machine1 ~]# 
[root@machine1 ~]# dmsetup info /dev/mapper/mpath2p1 
Name:              mpath2p1
State:             SUSPENDED  <-----
Read Ahead:        256 
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 10
Number of targets: 1
UUID: part1-mpath-1IET_00010003

Environment

  • Red Hat Enterprise Linux 5.8
  • kpartx-0.4.7-48.el5_8.1.x86_64
  • device-mapper-multipath-0.4.7-48.el5_8.1.x86_64
  • LVM volume created over the partition on multipath device.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content