[Bug 1473903] Re: parted will generate two devices when adding one partition on mpath device
Mauricio Faria de Oliveira
mauricfo at linux.vnet.ibm.com
Tue Feb 9 16:08:44 UTC 2016
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
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1473903
Title:
parted will generate two devices when adding one partition on mpath
device
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1473903/+subscriptions
More information about the Ubuntu-server-bugs
mailing list