From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.19]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5DG9WvP022439 for ; Wed, 13 Jun 2012 12:09:32 -0400 Received: from mail-lpp01m010-f46.google.com (mail-lpp01m010-f46.google.com [209.85.215.46]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5DG9UBx021538 for ; Wed, 13 Jun 2012 12:09:30 -0400 Received: by lahd3 with SMTP id d3so673849lah.33 for ; Wed, 13 Jun 2012 09:09:29 -0700 (PDT) MIME-Version: 1.0 Sender: sikieresmescribes@gmail.com Date: Wed, 13 Jun 2012 18:09:29 +0200 Message-ID: From: Da Content-Type: multipart/alternative; boundary=f46d0408da07d4dd3204c25cce38 Subject: Re: [linux-lvm] lvremove snapshot hangs LVM system Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --f46d0408da07d4dd3204c25cce38 Content-Type: text/plain; charset=ISO-8859-1 I went a bit further and I think I discovered what is blocking lvm. When I use "lvremove" I see that the involved "dm" are not deleted, but SUSPENDED: [root@node2 ~]# lvremove -f /dev/vgtest01/snap20 Logical volume "snap20" successfully removed [root@node2 ~]# dmsetup -vvv status vgtest01-snap20 dm version OF [16384] dm status vgtest01-snap20 OF [16384] Name: vgtest01-snap20 State: SUSPENDED vgtest01-snap20: read ahead is 256 Read Ahead: 256 Tables present: LIVE & INACTIVE Open count: 0 Event number: 0 Major, minor: 253, 4 Number of targets: 1 UUID: LVM-fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNWytFJGEg5qYFByZ79PjPNoKPnf8KyiiZ 0 409600 snapshot 16/40960 16 [root@node2 ~]# dmsetup -vvv status vgtest01-snap20-cow dm version OF [16384] dm status vgtest01-snap20-cow OF [16384] Name: vgtest01-snap20-cow State: SUSPENDED vgtest01-snap20-cow: read ahead is 256 Read Ahead: 256 Tables present: LIVE Open count: 1 Event number: 0 Major, minor: 253, 3 Number of targets: 1 UUID: LVM-fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNWytFJGEg5qYFByZ79PjPNoKPnf8KyiiZ-cow 0 40960 linear In that situation if I execute any "lvm" command, those suspended "dm" are blocking any I/O activity, and the lvm command hangs for ever. If, after or before, trying the command I resume them: [root@node2 ~]# dmsetup resume vgtest01-snap20 [root@node2 ~]# dmsetup resume vgtest01-snap20-cow It will be unblocked. The lvdisplay will work perfectly. But, for some reason something is not consistent in "lvm". I am not able to create new snapshots: [root@node2 ~]# lvcreate -s -L 20M -n snap30 /dev/vgtest01/lvtest-snap01 /dev/vgtest01/snap30: not found: device not cleared Aborting. Failed to wipe snapshot exception store. So, once here. Do someone know if this situation implies something critical? is there any way to solve it without restarting clvm ? I will keep in it. Thanks! --f46d0408da07d4dd3204c25cce38 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I went a bit further and I think I discovered what is blocking lvm.

= When I use "lvremove" I see that the involved "dm" are = not deleted, but SUSPENDED:



[root@node2 ~]# lvremove -f /dev= /vgtest01/snap20
=A0 Logical volume "snap20" successfully removed
[root@node2 ~= ]# dmsetup -vvv status vgtest01-snap20
dm version=A0=A0 OF=A0=A0 [16384]=
dm status vgtest01-snap20=A0 OF=A0=A0 [16384]
Name:=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 vgtest01-snap20
State:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 SUSPENDED
vgtest01-snap20: re= ad ahead is 256
Read Ahead:=A0=A0=A0=A0=A0=A0=A0 256
Tables present:= =A0=A0=A0 LIVE & INACTIVE
Open count:=A0=A0=A0=A0=A0=A0=A0 0
Even= t number:=A0=A0=A0=A0=A0 0
Major, minor:=A0=A0=A0=A0=A0 253, 4
Number= of targets: 1
UUID: LVM-fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNWytFJGEg5qYFByZ79PjPNoKPnf8KyiiZ<= br>
0 409600 snapshot 16/40960 16
[root@node2 ~]# dmsetup -vvv status= vgtest01-snap20-cow
dm version=A0=A0 OF=A0=A0 [16384]
dm status vgte= st01-snap20-cow=A0 OF=A0=A0 [16384]
Name:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 vgtest01-snap20-cow
State:= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 SUSPENDED
vgtest01-snap20-cow: read= ahead is 256
Read Ahead:=A0=A0=A0=A0=A0=A0=A0 256
Tables present:=A0= =A0=A0 LIVE
Open count:=A0=A0=A0=A0=A0=A0=A0 1
Event number:=A0=A0=A0= =A0=A0 0
Major, minor:=A0=A0=A0=A0=A0 253, 3
Number of targets: 1
UUID: LVM-fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNWytFJGEg5= qYFByZ79PjPNoKPnf8KyiiZ-cow

0 40960 linear

In that situation= if I execute any "lvm" command, those suspended "dm" a= re blocking any I/O activity, and the lvm command hangs for ever.

If, after or before, trying the command I=A0 resume them:
[root@node= 2 ~]# dmsetup resume vgtest01-snap20
[root@node2 ~]# dmsetup resume vgte= st01-snap20-cow

It will be unblocked. The lvdisplay will work perfec= tly.
But, for some reason something is not consistent in "lvm". I am n= ot able to create new snapshots:

[root@node2 ~]# lvcreate -s -L 20M = -n snap30 /dev/vgtest01/lvtest-snap01
=A0 /dev/vgtest01/snap30: not foun= d: device not cleared
=A0 Aborting. Failed to wipe snapshot exception store.


So, once = here. Do someone know if this situation implies something critical? is ther= e any way to solve it without restarting clvm ?

I will keep in it.
Thanks!
=A0
--f46d0408da07d4dd3204c25cce38--