"dmsetup info" command shows the information of the deleted partition
Issue
- As shown below, the "dmsetup info" command outputs a partition created by the parted command onto a multipath device .
# parted /dev/mapper/mpathb
<snip>
(parted) mkpart
<snip>
(parted) p
Number Start End Size Type File system Flags
1 ...... ....... ..... .....
(parted) q
# dmsetup info -c
Name Maj Min Stat Open Targ Event UUID
mpathb 253 2 L--w 1 1 0 mpath-1IET 010001
mpathbp1 253 4 L--w 0 1 0
- Then, deleting the partition by the parted command as follows.
# parted /dev/mapper/mpathb
<snip>
(parted) p
Number Start End Size Type File system Flags
1 ...... ....... ..... .....
<snip>
(parted) rm 1
(parted) p
Number Start End Size Type File system Flags
(parted) q
- "dmsetup info" command shows the partition info which was deleted.
# dmsetup info -c
Name Maj Min Stat Open Targ Event UUID
mpathb 253 2 L--w 1 1 0 mpath-1IET 010001
mpathbp1 253 4 L--w 0 1 0
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.