Wrong thin pool lv cannot clean up properly

Bug #1869666 reported by weisongf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

version info:
kern:
uname -a
Linux cmp011 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

lvm2:
```
 dpkg -l|grep lvm
ii liblvm2app2.2:amd64 2.02.133-1ubuntu10 amd64 LVM2 application library
ii liblvm2cmd2.02:amd64 2.02.133-1ubuntu10 amd64 LVM2 command library
ii lvm2
```
```
root@cmp011:~# dmsetup status|grep error
cinder--volume-volume--75ff72d6--22fb--43b1--85cd--519a86e75c18: 0 10485760 error
```
Always reminded that in use, can't find out the process used。
```
lvs |grep 519a86e75c18
  volume-75ff72d6-22fb-43b1-85cd-519a86e75c18 cinder-volume Vwi-aotz-- 5.00g cinder-volume-pool 100.00 100.00

lvremove -f /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18
  Logical volume cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18 in use
```

dmsetup also cannot be deleted:
dmsetup suspend
dmsetup remove

Revision history for this message
weisongf (songwei-8) wrote :

~# lvchange -an /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18
  Logical volume cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18 in use.

~# dmsetup suspend /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18
~# dmsetup clear /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18

~# dmsetup wipe_table /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18

~# dmsetup remove /dev/cinder-volume/volume-75ff72d6-22fb-43b1-85cd-519a86e75c18
device-mapper: remove ioctl on cinder--volume-volume--75ff72d6--22fb--43b1--85cd--519a86e75c18 failed: Device or resource busy
Command failed

weisongf (songwei-8)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.