fdisk on /dev/mapper/mpath device shows 'WARNING: Re-reading the partition table failed with error 22: Invalid argument.' message
Issue
-
We are trying to create partition on multipath device with fdisk utility, but it shows
22: Invalid argumenterror 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 4, 5, 6
- device-mapper-multipath
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
