Discussion:
[linux-lvm] unremovable lv
Alexey
2014-12-22 11:44:40 UTC
Permalink
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.

Loading...