All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot delete lvm thin volume
@ 2015-10-16 12:24 Nikolay Borisov
  2015-10-19 14:51 ` Heinz Mauelshagen
  0 siblings, 1 reply; 5+ messages in thread
From: Nikolay Borisov @ 2015-10-16 12:24 UTC (permalink / raw)
  To: zkabelac; +Cc: device-mapper development, SiteGround Operations

Hello I have the following thin volume, which I'd like to delete:

lvdisplay -v /dev/coregroup/c13537_2k
    Using logical volume(s) on command line.
  --- Logical volume ---
  LV Path                /dev/coregroup/c13537_2k
  LV Name                c13537_2k
  VG Name                coregroup
  LV UUID                LBPr0i-uac8-i3Co-5B3M-A6Bv-q8iv-kSRLRr
  LV Write Access        read/write
  LV Creation host, time xxxxx.net, 2015-10-14 02:02:45 -0500
  LV Pool name           corepool
  LV Status              available
  # open                 1
  LV Size                1.80 TiB
  Mapped size            42.11%
  Current LE             471808
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:6

dmsetup info coregroup-c13537_2k
Name:              coregroup-c13537_2k
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      1
Major, minor:      252, 6
Number of targets: 1
UUID: LVM-M8PwSxzGcsZQTtdgzfixsr08ZAlNpAbALBPr0iuac8i3Co5B3MA6Bvq8ivkSRLRr

dmsetup status
coregroup-c13537_2k: 0 3865051136 thin 1627684864 3865042943

The version of the software is:
lvremove --version
  LVM version:     2.02.118(2)-RHEL6 (2015-09-08)
  Library version: 1.02.95-RHEL6 (2015-09-08)
  Driver version:  4.26.0

And the kernel is 3.12.47.

When I run 'lvremove -f /dev/coregroup/c13537_2k' I get the following
error: Logical volume coregroup/c13537_2k contains a filesystem in use.
I also get the same error when I try to deactivate the volume.

fuser doesn't report anything and the volume is not mounted anywhere. I
have also acquired an ftrace trace from executing lvremove but there are
multiple invocation of the dm_ioctl function and I'm not sure which one
is the relevant. So if you tell me what information in particular you
need I'd post it here.

Regards,
Nikolay

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot delete lvm thin volume
  2015-10-16 12:24 Cannot delete lvm thin volume Nikolay Borisov
@ 2015-10-19 14:51 ` Heinz Mauelshagen
  2015-10-19 15:16   ` Nikolay Borisov
  0 siblings, 1 reply; 5+ messages in thread
From: Heinz Mauelshagen @ 2015-10-19 14:51 UTC (permalink / raw)
  To: device-mapper development, zkabelac; +Cc: SiteGround Operations


Nikolay,

this is a question for linux-lvm.

You're saying the fs is not mounted but the lv is open as of
your lvdisplay output, thus you can't lvremove it.


Heinz


On 10/16/2015 02:24 PM, Nikolay Borisov wrote:
> Hello I have the following thin volume, which I'd like to delete:
>
> lvdisplay -v /dev/coregroup/c13537_2k
>      Using logical volume(s) on command line.
>    --- Logical volume ---
>    LV Path                /dev/coregroup/c13537_2k
>    LV Name                c13537_2k
>    VG Name                coregroup
>    LV UUID                LBPr0i-uac8-i3Co-5B3M-A6Bv-q8iv-kSRLRr
>    LV Write Access        read/write
>    LV Creation host, time xxxxx.net, 2015-10-14 02:02:45 -0500
>    LV Pool name           corepool
>    LV Status              available
>    # open                 1
>    LV Size                1.80 TiB
>    Mapped size            42.11%
>    Current LE             471808
>    Segments               1
>    Allocation             inherit
>    Read ahead sectors     auto
>    - currently set to     256
>    Block device           252:6
>
> dmsetup info coregroup-c13537_2k
> Name:              coregroup-c13537_2k
> State:             ACTIVE
> Read Ahead:        256
> Tables present:    LIVE
> Open count:        1
> Event number:      1
> Major, minor:      252, 6
> Number of targets: 1
> UUID: LVM-M8PwSxzGcsZQTtdgzfixsr08ZAlNpAbALBPr0iuac8i3Co5B3MA6Bvq8ivkSRLRr
>
> dmsetup status
> coregroup-c13537_2k: 0 3865051136 thin 1627684864 3865042943
>
> The version of the software is:
> lvremove --version
>    LVM version:     2.02.118(2)-RHEL6 (2015-09-08)
>    Library version: 1.02.95-RHEL6 (2015-09-08)
>    Driver version:  4.26.0
>
> And the kernel is 3.12.47.
>
> When I run 'lvremove -f /dev/coregroup/c13537_2k' I get the following
> error: Logical volume coregroup/c13537_2k contains a filesystem in use.
> I also get the same error when I try to deactivate the volume.
>
> fuser doesn't report anything and the volume is not mounted anywhere. I
> have also acquired an ftrace trace from executing lvremove but there are
> multiple invocation of the dm_ioctl function and I'm not sure which one
> is the relevant. So if you tell me what information in particular you
> need I'd post it here.
>
> Regards,
> Nikolay
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot delete lvm thin volume
  2015-10-19 14:51 ` Heinz Mauelshagen
@ 2015-10-19 15:16   ` Nikolay Borisov
  2015-10-19 15:47     ` Heinz Mauelshagen
  0 siblings, 1 reply; 5+ messages in thread
From: Nikolay Borisov @ 2015-10-19 15:16 UTC (permalink / raw)
  To: Heinz Mauelshagen, device-mapper development, zkabelac
  Cc: SiteGround Operations



On 10/19/2015 05:51 PM, Heinz Mauelshagen wrote:
> 
> Nikolay,
> 
> this is a question for linux-lvm.
Right, will know from now on .

> 
> You're saying the fs is not mounted but the lv is open as of
> your lvdisplay output, thus you can't lvremove it.

How can I see which is the actual user of it? As I stated previously
fuser and lsof didn't show anything relevant. Is there some additional
tools from the lvm suite that I can see to obtain such information?

> 
> 
> Heinz
> 
> 
> On 10/16/2015 02:24 PM, Nikolay Borisov wrote:
>> Hello I have the following thin volume, which I'd like to delete:
>>
>> lvdisplay -v /dev/coregroup/c13537_2k
>>      Using logical volume(s) on command line.
>>    --- Logical volume ---
>>    LV Path                /dev/coregroup/c13537_2k
>>    LV Name                c13537_2k
>>    VG Name                coregroup
>>    LV UUID                LBPr0i-uac8-i3Co-5B3M-A6Bv-q8iv-kSRLRr
>>    LV Write Access        read/write
>>    LV Creation host, time xxxxx.net, 2015-10-14 02:02:45 -0500
>>    LV Pool name           corepool
>>    LV Status              available
>>    # open                 1
>>    LV Size                1.80 TiB
>>    Mapped size            42.11%
>>    Current LE             471808
>>    Segments               1
>>    Allocation             inherit
>>    Read ahead sectors     auto
>>    - currently set to     256
>>    Block device           252:6
>>
>> dmsetup info coregroup-c13537_2k
>> Name:              coregroup-c13537_2k
>> State:             ACTIVE
>> Read Ahead:        256
>> Tables present:    LIVE
>> Open count:        1
>> Event number:      1
>> Major, minor:      252, 6
>> Number of targets: 1
>> UUID:
>> LVM-M8PwSxzGcsZQTtdgzfixsr08ZAlNpAbALBPr0iuac8i3Co5B3MA6Bvq8ivkSRLRr
>>
>> dmsetup status
>> coregroup-c13537_2k: 0 3865051136 thin 1627684864 3865042943
>>
>> The version of the software is:
>> lvremove --version
>>    LVM version:     2.02.118(2)-RHEL6 (2015-09-08)
>>    Library version: 1.02.95-RHEL6 (2015-09-08)
>>    Driver version:  4.26.0
>>
>> And the kernel is 3.12.47.
>>
>> When I run 'lvremove -f /dev/coregroup/c13537_2k' I get the following
>> error: Logical volume coregroup/c13537_2k contains a filesystem in use.
>> I also get the same error when I try to deactivate the volume.
>>
>> fuser doesn't report anything and the volume is not mounted anywhere. I
>> have also acquired an ftrace trace from executing lvremove but there are
>> multiple invocation of the dm_ioctl function and I'm not sure which one
>> is the relevant. So if you tell me what information in particular you
>> need I'd post it here.
>>
>> Regards,
>> Nikolay
>>
>> -- 
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot delete lvm thin volume
  2015-10-19 15:16   ` Nikolay Borisov
@ 2015-10-19 15:47     ` Heinz Mauelshagen
  2015-10-19 16:22       ` Nikolay Borisov
  0 siblings, 1 reply; 5+ messages in thread
From: Heinz Mauelshagen @ 2015-10-19 15:47 UTC (permalink / raw)
  To: device-mapper development, zkabelac; +Cc: SiteGround Operations


fuser and lsof can only report open files of active processes.

You should check the following as well:

grep c13537_2k /proc/{mounts,swaps}
dmsetup table|grep 252:6
losetup -a | grep dm-6

Heinz

On 10/19/2015 05:16 PM, Nikolay Borisov wrote:
>
> On 10/19/2015 05:51 PM, Heinz Mauelshagen wrote:
>> Nikolay,
>>
>> this is a question for linux-lvm.
> Right, will know from now on .
>
>> You're saying the fs is not mounted but the lv is open as of
>> your lvdisplay output, thus you can't lvremove it.
> How can I see which is the actual user of it? As I stated previously
> fuser and lsof didn't show anything relevant. Is there some additional
> tools from the lvm suite that I can see to obtain such information?
>
>>
>> Heinz
>>
>>
>> On 10/16/2015 02:24 PM, Nikolay Borisov wrote:
>>> Hello I have the following thin volume, which I'd like to delete:
>>>
>>> lvdisplay -v /dev/coregroup/c13537_2k
>>>       Using logical volume(s) on command line.
>>>     --- Logical volume ---
>>>     LV Path                /dev/coregroup/c13537_2k
>>>     LV Name                c13537_2k
>>>     VG Name                coregroup
>>>     LV UUID                LBPr0i-uac8-i3Co-5B3M-A6Bv-q8iv-kSRLRr
>>>     LV Write Access        read/write
>>>     LV Creation host, time xxxxx.net, 2015-10-14 02:02:45 -0500
>>>     LV Pool name           corepool
>>>     LV Status              available
>>>     # open                 1
>>>     LV Size                1.80 TiB
>>>     Mapped size            42.11%
>>>     Current LE             471808
>>>     Segments               1
>>>     Allocation             inherit
>>>     Read ahead sectors     auto
>>>     - currently set to     256
>>>     Block device           252:6
>>>
>>> dmsetup info coregroup-c13537_2k
>>> Name:              coregroup-c13537_2k
>>> State:             ACTIVE
>>> Read Ahead:        256
>>> Tables present:    LIVE
>>> Open count:        1
>>> Event number:      1
>>> Major, minor:      252, 6
>>> Number of targets: 1
>>> UUID:
>>> LVM-M8PwSxzGcsZQTtdgzfixsr08ZAlNpAbALBPr0iuac8i3Co5B3MA6Bvq8ivkSRLRr
>>>
>>> dmsetup status
>>> coregroup-c13537_2k: 0 3865051136 thin 1627684864 3865042943
>>>
>>> The version of the software is:
>>> lvremove --version
>>>     LVM version:     2.02.118(2)-RHEL6 (2015-09-08)
>>>     Library version: 1.02.95-RHEL6 (2015-09-08)
>>>     Driver version:  4.26.0
>>>
>>> And the kernel is 3.12.47.
>>>
>>> When I run 'lvremove -f /dev/coregroup/c13537_2k' I get the following
>>> error: Logical volume coregroup/c13537_2k contains a filesystem in use.
>>> I also get the same error when I try to deactivate the volume.
>>>
>>> fuser doesn't report anything and the volume is not mounted anywhere. I
>>> have also acquired an ftrace trace from executing lvremove but there are
>>> multiple invocation of the dm_ioctl function and I'm not sure which one
>>> is the relevant. So if you tell me what information in particular you
>>> need I'd post it here.
>>>
>>> Regards,
>>> Nikolay
>>>
>>> -- 
>>> dm-devel mailing list
>>> dm-devel@redhat.com
>>> https://www.redhat.com/mailman/listinfo/dm-devel
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot delete lvm thin volume
  2015-10-19 15:47     ` Heinz Mauelshagen
@ 2015-10-19 16:22       ` Nikolay Borisov
  0 siblings, 0 replies; 5+ messages in thread
From: Nikolay Borisov @ 2015-10-19 16:22 UTC (permalink / raw)
  To: Heinz Mauelshagen
  Cc: device-mapper development, SiteGround Operations, zkabelac

On Mon, Oct 19, 2015 at 6:47 PM, Heinz Mauelshagen <heinzm@redhat.com> wrote:
>
> fuser and lsof can only report open files of active processes.
>
> You should check the following as well:
>
> grep c13537_2k /proc/{mounts,swaps}
> dmsetup table|grep 252:6
> losetup -a | grep dm-6

Okay, the next time this situation occurs I will do that and
report back (this time to the correct mailing list :) if I find anything?

>
> Heinz
>
>
> On 10/19/2015 05:16 PM, Nikolay Borisov wrote:
>>
>>
>> On 10/19/2015 05:51 PM, Heinz Mauelshagen wrote:
>>>
>>> Nikolay,
>>>
>>> this is a question for linux-lvm.
>>
>> Right, will know from now on .
>>
>>> You're saying the fs is not mounted but the lv is open as of
>>> your lvdisplay output, thus you can't lvremove it.
>>
>> How can I see which is the actual user of it? As I stated previously
>> fuser and lsof didn't show anything relevant. Is there some additional
>> tools from the lvm suite that I can see to obtain such information?
>>
>>>
>>> Heinz
>>>
>>>
>>> On 10/16/2015 02:24 PM, Nikolay Borisov wrote:
>>>>
>>>> Hello I have the following thin volume, which I'd like to delete:
>>>>
>>>> lvdisplay -v /dev/coregroup/c13537_2k
>>>>       Using logical volume(s) on command line.
>>>>     --- Logical volume ---
>>>>     LV Path                /dev/coregroup/c13537_2k
>>>>     LV Name                c13537_2k
>>>>     VG Name                coregroup
>>>>     LV UUID                LBPr0i-uac8-i3Co-5B3M-A6Bv-q8iv-kSRLRr
>>>>     LV Write Access        read/write
>>>>     LV Creation host, time xxxxx.net, 2015-10-14 02:02:45 -0500
>>>>     LV Pool name           corepool
>>>>     LV Status              available
>>>>     # open                 1
>>>>     LV Size                1.80 TiB
>>>>     Mapped size            42.11%
>>>>     Current LE             471808
>>>>     Segments               1
>>>>     Allocation             inherit
>>>>     Read ahead sectors     auto
>>>>     - currently set to     256
>>>>     Block device           252:6
>>>>
>>>> dmsetup info coregroup-c13537_2k
>>>> Name:              coregroup-c13537_2k
>>>> State:             ACTIVE
>>>> Read Ahead:        256
>>>> Tables present:    LIVE
>>>> Open count:        1
>>>> Event number:      1
>>>> Major, minor:      252, 6
>>>> Number of targets: 1
>>>> UUID:
>>>> LVM-M8PwSxzGcsZQTtdgzfixsr08ZAlNpAbALBPr0iuac8i3Co5B3MA6Bvq8ivkSRLRr
>>>>
>>>> dmsetup status
>>>> coregroup-c13537_2k: 0 3865051136 thin 1627684864 3865042943
>>>>
>>>> The version of the software is:
>>>> lvremove --version
>>>>     LVM version:     2.02.118(2)-RHEL6 (2015-09-08)
>>>>     Library version: 1.02.95-RHEL6 (2015-09-08)
>>>>     Driver version:  4.26.0
>>>>
>>>> And the kernel is 3.12.47.
>>>>
>>>> When I run 'lvremove -f /dev/coregroup/c13537_2k' I get the following
>>>> error: Logical volume coregroup/c13537_2k contains a filesystem in use.
>>>> I also get the same error when I try to deactivate the volume.
>>>>
>>>> fuser doesn't report anything and the volume is not mounted anywhere. I
>>>> have also acquired an ftrace trace from executing lvremove but there are
>>>> multiple invocation of the dm_ioctl function and I'm not sure which one
>>>> is the relevant. So if you tell me what information in particular you
>>>> need I'd post it here.
>>>>
>>>> Regards,
>>>> Nikolay
>>>>
>>>> --
>>>> dm-devel mailing list
>>>> dm-devel@redhat.com
>>>> https://www.redhat.com/mailman/listinfo/dm-devel
>>
>> --
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-19 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-16 12:24 Cannot delete lvm thin volume Nikolay Borisov
2015-10-19 14:51 ` Heinz Mauelshagen
2015-10-19 15:16   ` Nikolay Borisov
2015-10-19 15:47     ` Heinz Mauelshagen
2015-10-19 16:22       ` Nikolay Borisov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.