Bug#827412: multipath-tools: /dev/mapper device files not removed when partition is removed

Andrew Patterson andrew.patterson at hpe.com
Thu Jun 16 18:51:55 UTC 2016


On Thu, 16 Jun 2016 22:54:08 +0530 Ritesh Raj Sarraf <rrs at debian.org> wrote:
> On Thu, 2016-06-16 at 22:47 +0530, Ritesh Raj Sarraf wrote:
> > On Thu, 2016-06-16 at 22:35 +0530, Ritesh Raj Sarraf wrote:
> > > Control: tag -1 +pending
> > >Â 
> > > On Thu, 2016-06-16 at 10:48 -0600, Andrew Patterson wrote:
> > > > On Thu, 16 Jun 2016 16:15:54 +0530 Ritesh Raj Sarraf <rrs at debian.org>
> > wrote:
> > > > > Control: tag -1 +confirmed
> > > > >Â 
> > > > >Â 
> > > > > Can you please try the attached patch ?
> > > > >Â 
> > > > >Â 
> > > > >Â 
> > > >Â 
> > > > That works:
> > >Â 
> > > Thank you very much. Will be part of next upload
> > 
> > Actually, my root cause may not be correct here. mpath*-* results in a wider
> > wildcard. The current one, mpath-* should have covered the mpath-WWID case.
> > But
> > that is what the bug is about.
> > 
> > Needs more investigation.
> 
> Can you please try it without the friendly names setting ?
> The current rule seems to be working fine in an environment without friendly
> names.
> 
> And please share output of /dev/disk/by-id/ with and without friendly names set.
> 

With user_friendly_names turned off:

# ls -l /dev/mapper
total 0
lrwxrwxrwx 1 root root       7 Jun 16 12:42 360002ac00000000000001904000028be -> ../dm-0
lrwxrwxrwx 1 root root       7 Jun 16 12:42 360002ac00000000000001904000028be-part1 -> ../dm-8
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001905000028be -> ../dm-1
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001906000028be -> ../dm-2
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001907000028be -> ../dm-3
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001908000028be -> ../dm-4
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001909000028be -> ../dm-5
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac0000000000000190a000028be -> ../dm-6
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac0000000000000190b000028be -> ../dm-7
crw------- 1 root root 10, 236 Jun 16 10:23 control

# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jun 16 12:42 dm-name-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:42 dm-name-360002ac00000000000001904000028be-part1 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:42 dm-uuid-mpath-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:42 dm-uuid-part1-mpath-360002ac00000000000001904000028be -> ../../dm-8
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:42 scsi-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:42 scsi-360002ac00000000000001904000028be-part1 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-S3PARdata_VV_1410430 -> ../../sdo
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:42 wwn-0x60002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:42 wwn-0x60002ac00000000000001904000028be-part1 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3

# fdisk /dev/mapper/360002ac00000000000001904000028be

Welcome to fdisk (util-linux 2.28).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Invalid argument

The kernel still uses the old table. The new table will be used at the
next reboot or after you run partprobe(8) or kpartx(8).

# ls -l /dev/mapper
total 0
lrwxrwxrwx 1 root root       7 Jun 16 12:43 360002ac00000000000001904000028be -> ../dm-0
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001905000028be -> ../dm-1
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001906000028be -> ../dm-2
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001907000028be -> ../dm-3
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001908000028be -> ../dm-4
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac00000000000001909000028be -> ../dm-5
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac0000000000000190a000028be -> ../dm-6
lrwxrwxrwx 1 root root       7 Jun 16 12:38 360002ac0000000000000190b000028be -> ../dm-7
crw------- 1 root root 10, 236 Jun 16 10:23 control

# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jun 16 12:43 dm-name-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-name-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:43 dm-uuid-mpath-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 dm-uuid-mpath-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:43 scsi-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 scsi-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-S3PARdata_VV_1410430 -> ../../sdo
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:43 wwn-0x60002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:38 wwn-0x60002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3

And with "user_friendly_names" turned on:

# ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 16 10:23 control
lrwxrwxrwx 1 root root       7 Jun 16 12:48 mpatha -> ../dm-0
lrwxrwxrwx 1 root root       7 Jun 16 12:48 mpatha-part1 -> ../dm-8
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathb -> ../dm-1
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathc -> ../dm-2
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathd -> ../dm-3
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathe -> ../dm-4
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathf -> ../dm-5
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathg -> ../dm-6
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathh -> ../dm-7

# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-name-mpatha -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-name-mpatha-part1 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathb -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathc -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathe -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathf -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathg -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathh -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-uuid-mpath-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-uuid-part1-mpath-360002ac00000000000001904000028be -> ../../dm-8
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jun 16 12:47 scsi-360002ac00000000000001904000028be -> ../../sdz
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001905000028be -> ../../sdaa
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001906000028be -> ../../sdab
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001907000028be -> ../../sdac
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001908000028be -> ../../sdad
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001909000028be -> ../../sdae
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac0000000000000190a000028be -> ../../sdaf
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac0000000000000190b000028be -> ../../sdag
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:48 scsi-mpatha -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:48 scsi-mpatha-part1 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathb -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathc -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathe -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathf -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathg -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathh -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-S3PARdata_VV_1410430 -> ../../sdo
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:48 wwn-0x60002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:48 wwn-0xpatha-part1 -> ../../dm-8

# fdisk /dev/mapper/mpatha

Welcome to fdisk (util-linux 2.28).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Invalid argument

The kernel still uses the old table. The new table will be used at the
next reboot or after you run partprobe(8) or kpartx(8).

# ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 16 10:23 control
lrwxrwxrwx 1 root root       7 Jun 16 12:48 mpatha -> ../dm-0
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathb -> ../dm-1
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathc -> ../dm-2
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathd -> ../dm-3
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathe -> ../dm-4
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathf -> ../dm-5
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathg -> ../dm-6
lrwxrwxrwx 1 root root       7 Jun 16 12:47 mpathh -> ../dm-7

# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-name-mpatha -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathb -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathc -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathe -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathf -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathg -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-name-mpathh -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 16 12:48 dm-uuid-mpath-360002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 dm-uuid-mpath-360002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-0HP_LOGICAL_VOLUME_00000000-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jun 16 12:47 scsi-360002ac00000000000001904000028be -> ../../sdz
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001905000028be -> ../../sdaa
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001906000028be -> ../../sdab
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001907000028be -> ../../sdac
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001908000028be -> ../../sdad
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac00000000000001909000028be -> ../../sdae
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac0000000000000190a000028be -> ../../sdaf
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-360002ac0000000000000190b000028be -> ../../sdag
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-3600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:48 scsi-mpatha -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathb -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathc -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathe -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathf -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathg -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 scsi-mpathh -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-S3PARdata_VV_1410430 -> ../../sdo
lrwxrwxrwx 1 root root  9 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 scsi-SHP_LOGICAL_VOLUME_PDZVU0HLM7Q0HS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 16 12:48 wwn-0x60002ac00000000000001904000028be -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001905000028be -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001906000028be -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001907000028be -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001908000028be -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac00000000000001909000028be -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac0000000000000190a000028be -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 16 12:47 wwn-0x60002ac0000000000000190b000028be -> ../../dm-7
lrwxrwxrwx 1 root root  9 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 16 10:23 wwn-0x600508b1001c5238e1cdb3176eacbd63-part3 -> ../../sda3

So it looks like it works with both.

-- 
Andrew Patterson
Hewlett-Packard Enterprise



More information about the pkg-lvm-maintainers mailing list