i'm facing difficulties removing a logical volume from my server on SLES11SP3. Checked online for help, tried many things with no success, thus i ask the experts.
# lvscan
├─vg-lv_a (dm-22) 253:22 0 50G 0
# lsblk
ACTIVE '/dev/vg/lv_a' [50.00 GiB] inherit
# lvremove /dev/mapper/vg-lv_a
Do you really want to remove active logical volume lv_a? [y/n]: y
device-mapper: remove ioctl on failed: Device or resource busy
device-mapper: remove ioctl on failed: Device or resource busy
Unable to deactivate vg-lv_a (253:22)
Unable to deactivate logical volume "lv_a"
# lvchange -an /dev/mapper/vg-lv_a
device-mapper: remove ioctl on failed: Device or resource busy
device-mapper: remove ioctl on failed: Device or resource busy
Unable to deactivate vg-lv_a (253:22)
# dmsetup remove vg-lv_a
device-mapper: remove ioctl on vg-lv_a failed: Device or resource busy
Command failed
No mountpoints on LV.
Other checks:
# dmsetup info -c | grep lv_a
vg-lv_a 253 22 L--w 1 4 0 LVM-LroqO1V0...
# lsof | grep "253,22"
empty
Cannot obtain the evdence of the process that takes the LV busy, if any. Any hints, ideas how to address this?
losetup --list
show? Using LV's as loop devices, doesn't show up inlsof
, if I recall correctly.