How to remove the 'dm' device for a logical volume when actual LV is not present ?
Issue
- Actual logical volume is not present in the system, still the corresponding dm device is seen present in the dmsetup info -c command.
Also dm device fails to get removed with the dmsetup remove command. lvremove too fails as actual LV is not present in the system. Corresponding VG as well as PV has also been removed.
$cat dmsetup_info |grep -i lv
Name Maj Min Stat Open Targ Event UUID
vg-lv 253 19 L--w 0 1 0 LVM-11111111111
$lvs |grep lv
#dmsetup remove -f vg-lv
device-mapper: remove ioctl failed: Device or resource busy
Command failed
Environment
- Red Hat Enterprise Linux 5
- Device-Mapper
- LVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.