Bug#827412: multipath-tools: /dev/mapper device files not removed when partition is removed
Andrew Patterson
andrew.patterson at hpe.com
Thu Jun 16 16:48:16 UTC 2016
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:
# ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 16 10:23 control
lrwxrwxrwx 1 root root 7 Jun 16 10:39 mpatha -> ../dm-0
lrwxrwxrwx 1 root root 7 Jun 16 10:39 mpatha-part1 -> ../dm-8
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathb -> ../dm-1
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathc -> ../dm-2
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathd -> ../dm-3
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathe -> ../dm-4
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathf -> ../dm-5
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathg -> ../dm-6
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathh -> ../dm-7
# 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 10:41 mpatha -> ../dm-0
lrwxrwxrwx 1 root root 7 Jun 16 10:44 mpathb -> ../dm-1
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathc -> ../dm-2
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathd -> ../dm-3
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathe -> ../dm-4
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathf -> ../dm-5
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathg -> ../dm-6
lrwxrwxrwx 1 root root 7 Jun 16 10:29 mpathh -> ../dm-7
--
Andrew Patterson
Hewlett-Packard Enterprise
More information about the pkg-lvm-maintainers
mailing list