fdisk on a multipath device fails kernel partition re-read
When I perform an fdisk or sfdisk on a /dev/mapper/ multipath device I get a warning about it failing to re-read the partition information. With fdisk it warns that I'll need to reboot before using the device, with sfdisk it just complains about the ioctl that failed:
Re-reading the partition table ...
BLKRRPART: Invalid argument
Is it possible I have something configured wrong? Or is this a problem with the way /dev/mapper nodes work? I get the same result when using /dev/dm-* nodes. With the raw device nodes such as /dev/sd* it works ok.
I alwase use the entire disk .. no partitions, and I usually do mkfs on the underlying /dev/sdX device before
I bother with multipath..
Then I just use the /dev/mapper entries for actual mounts .. the underlying FS is already there.
just my .02
mkfs.ext3 -F /dev/sdX
Quoted 19 lines · David Strand
When I perform an fdisk or sfdisk on a
/dev/mapper/multipath device I get a warning about it failing to re-read the partition information. With fdisk it warns that I'll need to reboot before using the device, with sfdisk it just complains about the ioctl that failed:Re-reading the partition table ...
BLKRRPART: Invalid argumentIs it possible I have something configured wrong? Or is this a problem with the way
/dev/mappernodes work? I get the same result when using/dev/dm-*nodes. With the raw device nodes such as/dev/sd*it works ok.--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Signature · 2 lines
:wq! kevin.foote
I'd like to have multiple partitions rather than one large disk.
What if one of your paths fails during the mkfs on the single path'd /dev/sdX?
I am adding auto partition/format/mount capability (triggered by udev add events). A reboot between the sfdisk and mkfs.ext3 will not be possible. I would really like to operate on multipathed device nodes the whole way through to handle possible path failure during the process and because the ultimate mount point will be to the multipathed partition device node.
Any other suggestions?
Quoted 41 lines · Kevin Foote
I alwase use the entire disk .. no partitions, and I usually do mkfs on the underlying
/dev/sdXdevice before
I bother with multipath..
Then I just use the/dev/mapperentries for actual mounts .. the underlying FS is already there.
just my .02mkfs.ext3 -F
/dev/sdXQuoted 14 lines · David Strand
When I perform an fdisk or sfdisk on a
/dev/mapper/multipath device I get a warning about it failing to re-read the partition information. With fdisk it warns that I'll need to reboot before using the device, with sfdisk it just complains about the ioctl that failed:Re-reading the partition table ...
BLKRRPART: Invalid argumentIs it possible I have something configured wrong? Or is this a problem with the way
/dev/mappernodes work? I get the same result when using/dev/dm-*nodes. With the raw device nodes such as/dev/sd*it works ok.Quoted 5 lines
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel--
:wq!
kevin.foote
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Using device-mapper volumes for partioning is wrong in the way DM works. DM devices do not use partitions and do not support the ioctl used to update the partition table (exception for linear mappings with single devices). Partitions on multipath volumes are created by kpartx as linear targets after creating the base multipath target.
The only safe way that should always be used is to remove the multipath volume (multipath -f <mpname>), then call fdisk on the sd device (optionally
call blockdev --rereadpt <dev> on all other paths) and the recreate the multipath volume by calling multipath.
Mit freundlichem Gruß / Regards,
Stefan Bader
SW Linux on zSeries Development
[email protected]
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.
[email protected] wrote on 28.09.2007 22:28:06:
Quoted 17 lines
When I perform an fdisk or sfdisk on a
/dev/mapper/multipath device I get a warning about it failing to re-read the partition information. With fdisk it warns that I'll need to reboot before using the device, with sfdisk it just complains about the ioctl that failed:Re-reading the partition table ...
BLKRRPART: Invalid argumentIs it possible I have something configured wrong? Or is this a problem with the way
/dev/mappernodes work? I get the same result when using/dev/dm-*nodes. With the raw device nodes such as/dev/sd*it works ok.--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel