We have CENTOS 5.6 on DELL server. I create VG and LV on one SSD disk. after couple weeks I decide to delete it.
I unmount file system but can not delete LV. It say "in use". I try following but still NOT work:
# lvchange -an /dev/VG0-SSD910/LV01-SSD910 LV VG0-SSD910/LV01-SSD910 in use: not deactivating # kpartx -d /dev/VG0-SSD910/LV01-SSD910 # lvchange -an /dev/VG0-SSD910/LV01-SSD910 LV VG0-SSD910/LV01-SSD910 in use: not deactivating
Anyone have ideal how to delete it?
Thanks.
On 07/14/2012 12:01 AM, Gordon Messmer wrote:
On 07/10/2012 08:16 AM, mcclnx mcc wrote:
I unmount file system but can not delete LV. It say "in use".
'lsof' should tell you what has the device open.
This might not help though if there are kpartx maps linked to that volume. In that case you can use "dmsetup ls --tree" to see if that is the case.
Regards, Dennis