FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-10-2012, 03:16 PM
mcclnx mcc
 
Default can NOT delete LV (in use) problem...

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.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-13-2012, 10:01 PM
Gordon Messmer
 
Default can NOT delete LV (in use) problem...

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.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-13-2012, 10:56 PM
Dennis Jacobfeuerborn
 
Default can NOT delete LV (in use) problem...

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 05:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org