fdisk on /dev/mapper/mpath device shows 'WARNING: Re-reading the partition table failed with error 22: Invalid argument.' message

Solution Verified - Updated -

Issue

  • We are trying to create partition on multipath device with fdisk utility, but it shows 22: Invalid argument error message as marked in following snip:

    # fdisk /dev/mapper/mpatha
    Partition number (1-4): 1
       First cylinder (1-19074, default 1):
       Using default value 1
       Last cylinder or +size or +sizeM or +sizeK (1-19074, default 19074):
       Using default value 19074
    
       Command (m for help): p
    
       Disk /dev/mapper/mpatha: 156.8 GB, 156892397568 bytes
       255 heads, 63 sectors/track, 19074 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
    
                                Device Boot      Start         End      Blocks   Id  System
       /dev/mapper/mpathap1               1       19074   153211873+  83  Linux
    
       Command (m for help): w
       The partition table has been altered!
    
       Calling ioctl() to re-read partition table.
    
       WARNING: Re-reading the partition table failed with error 22: Invalid argument.  <------
       The kernel still uses the old table.
       The new table will be used at the next reboot.
       Syncing disks.
    

Environment

  • Red Hat Enterprise Linux (RHEL) 4, 5, 6
  • device-mapper-multipath

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