Comment 38 for bug 1473903

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

This is working correctly.
Marking as verification-done.

After partitioning with parted, there's only one device node for the partition (with the -part disk-partition separator).

There's /still/ some messages in parted mentioning it could not find the device, but the partitions are created correctly -- note those messages were already present in the original bug report, so this is not a regression.

# multipath -l mpath1
mpath1 (0QEMU QEMU HARDDISK trustytest) dm-0 QEMU ,QEMU HARDDISK
size=8.0G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 0:0:3:0 sdf 8:80 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 0:0:2:0 sde 8:64 active undef running

# ls -l /dev/mapper/mpath1*
brw-rw---- 1 root disk 252, 0 Feb 9 10:55 /dev/mapper/mpath1

# parted /dev/mapper/mpath1
GNU Parted 2.3
Using /dev/mapper/mpath1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/mapper/mpath1: unrecognised disk label
(parted) mklabel msdos
(parted) p
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpath1: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags

(parted) mkpart
Partition type? primary/extended? primary
File system type? [ext2]?
Start? 0%
End? 10%
Device /dev/mapper/mpath1-part1 not found
device-mapper: table ioctl on failed: No such device or address
Device /dev/mapper/mpath1-part1 not found
device-mapper: table ioctl on failed: No such device or address
(parted) p
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpath1: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 859MB 858MB primary

(parted) q
Information: You may need to update /etc/fstab.

# ls -l /dev/mapper/mpath1*
brw-rw---- 1 root disk 252, 0 Feb 9 11:00 /dev/mapper/mpath1
lrwxrwxrwx 1 root root 7 Feb 9 11:00 /dev/mapper/mpath1-part1 -> ../dm-5

After some more play, all correct: only 1 node per partition (-part).

# ls -l /dev/mapper/mpath1*
brw-rw---- 1 root disk 252, 0 Feb 9 11:05 /dev/mapper/mpath1
lrwxrwxrwx 1 root root 7 Feb 9 11:00 /dev/mapper/mpath1-part1 -> ../dm-5
lrwxrwxrwx 1 root root 7 Feb 9 11:04 /dev/mapper/mpath1-part2 -> ../dm-6
lrwxrwxrwx 1 root root 7 Feb 9 11:05 /dev/mapper/mpath1-part3 -> ../dm-7
lrwxrwxrwx 1 root root 7 Feb 9 11:05 /dev/mapper/mpath1-part5 -> ../dm-8