Translated message

A translation of this page exists in English.

/dev/mapper/mpath デバイスで fdisk を実行すると 'WARNING: Re-reading the partition table failed with error 22: Invalid argument.' メッセージが表示される

Solution Unverified - Updated -

Issue

  • fdisk ユーティリティーを使用してマルチパスデバイスにパーティションを作成すると、以下のような 22: Invalid argument エラーメッセージが表示されます。

    # 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, 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