Skip to contentSkip to conversation

unremovable lv

linux-lvm Alexey 1 participant 1 message Dec 22, 2014

lore
Share & tools
lore

Alexey

author
#0 lore raw

I have a lv in thin pool which I can't delete or activate. It has inactive table.

# lvs | grep 15259
  15259      vg0  Vwi---tz-- 160.00g tp0
# lvchange -ay vg0/15259
  15259      vg0  Vwi-i-tz-- 160.00g tp0
# dmsetup table | grep 15259
vg0-15259:
# lvremove --force vg0/15259
  Device vg0-tp0-tpool (254:22) is used by another device.
  Unable to deactivate logical volume "15259"
# dmsetup wipe_table vg0-15259
device-mapper: reload ioctl on vg0-15259 failed: Invalid argument
Command failed
# dmsetup remove vg0-15259
device-mapper: remove ioctl on vg0-15259 failed: No such device or address
Command failed

After 'dmsetup remove' I get lv in inactive state as at start.