# lvremove /dev/vg00/lv_nameSo I checked if my LV is mounted... and it was.
Can't remove open logical volume "lv_name"
# mountStandard unmounting didn't help...
/dev/mapper/vg00-lv_name on /mount_point type ext4 (rw,noatime,errors=remount-ro)
# umount /tmp/OUHObyUhPiOf course there was nothing in lsof:
umount: /tmp/OUHObyUhPi: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
# lsof | grep /tmp/OUHObyUhPidmsetup was showing my lv_name as open:
# dmsetup info -c /dev/mapper/vg00-lv_nameBut it wasn't able to turn it off:
Name Maj Min Stat Open Targ Event UUID
vg00-lv_name 254 0 L--w 1 1 0 LVM-CqfjODkizlaDYpfk1631CZ06tTL2D2wp6kGNTj1EeCR8SPnIeE0NhSbdKZTYO4Jc
# dmsetup remove /dev/mapper/vg00-lv_nameWhat worked for me, was lazy unmount:
device-mapper: remove ioctl failed: Device or resource busy
# umount -l /tmp/OUHObyUhPi/Then I could remove the LV:
# lvremove /dev/vg00/lv_name-disk
Do you really want to remove active logical volume lv_name? [y/n]: y
Logical volume "lv_name" successfully removed