[dm-devel] Unable to deactivate lv, pehaps due to semaphore problem...
zkabelac at redhat.com
Thu Nov 27 14:33:05 UTC 2014
Dne 27.11.2014 v 15:26 Gianluca Cecchi napsal(a):
> I'm unable to deactivate an lvm.
> My system is RHEL 6.5 with lvm2-2.02.100-8.el6.x86_64 and kernel
> I get error code 5 with message
> Logical volume VG_AAA_TEMP/LV_AAA_TEMP in use.
> You can find output of
> lvchange -d -d -d -d -d -d -an VG_AAA_TEMP/LV_AAA_TEMP
Not really accessible.
But anyway - if you have problem with 'semaphore' resouces - you could
'recycle' old ones -
Of course it's hard to guess what experiments are you doing and would could
lead to uncompleted cockies (stuck udev scans)
Do you happen to have some suspend devices in your table ?
(dmsetup info -c should show them)
> [root at orapr2 ~]# lvs VG_AAA_TEMP/LV_AAA_TEMP
> LV VG Attr LSize Pool Origin Data% Move Log
> Cpy%Sync Convert
> LV_AAA_TEMP VG_AAA_TEMP -wi-ao---- 1020.00m
> How can I see the responsible for the reference that apparently keeps it open?
> Open count: 1
> so I can check and eventually fix??
dmsetup ls --tree
is usually good in shows deps between devs (i.e. target A holds target B)
More information about the dm-devel