From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.21]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q5JDf1x1025559 for ; Tue, 19 Jun 2012 09:41:01 -0400 Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5JDex9d014611 for ; Tue, 19 Jun 2012 09:41:00 -0400 Received: by lbbgm6 with SMTP id gm6so7135614lbb.33 for ; Tue, 19 Jun 2012 06:40:59 -0700 (PDT) MIME-Version: 1.0 Sender: sikieresmescribes@gmail.com In-Reply-To: References: Date: Tue, 19 Jun 2012 15:34:21 +0200 Message-ID: From: Da Content-Type: multipart/alternative; boundary=bcaec554dfee0f4f2f04c2d357c6 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 --bcaec554dfee0f4f2f04c2d357c6 Content-Type: text/plain; charset=ISO-8859-1 I think I finally found the problem and a walk arround. If I start the process normaly: /etc/init.d/cman start /etc/init.d/clvmd start And make the snapshots source volume of "exclusive use": lvchange -an volume lvchange -aey volume And I try to remove a snapshot: lvremove -f snapshot The involved "dm" will get suspended but not deleted causing the eternal hang of the lvm system due to the blocked I/O . Now. If BEFORE the "lvremove" I execute a built in clvmd restart: clvmd -S It will fail to restart it properly. Looking the code I think it is caused because clvmd is trying to pass itself "-E" option but in my current lvm2 version is not declared (2.02.87) . I don't know if I may report this to the lvm-devel : [pid 2895] execve("/usr/sbin/clvmd", ["clvmd", "-E", "fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNH61u58pM21rrS3t8vyXvzsoiMaB4XHKX"], [/* 0 vars */] [pid 2892] write(2, "Usage: clvmd [options]\n -V Show version of clvmd\n -h Show this help information\n -d[n] Set debug logging (0:none, 1:stderr (implies -f option), 2:syslog)\n -f Don't fork, run in the foreground\n -R Tell all running clvmd"..., 611) = 611 Anyway. After the "clvmd -S" clvm will not be started, but I start it manually with "/etc/init.d/clvmd start". Now I have to mark the volume as exclusive again, but after that the lvm systems seems to work fine forever... I can create and delete snapshots without problems, without hanging the lvm. It seems to me that the "clvmd -S" command does something that the system needs and the normal "stop/start" is not executing. --bcaec554dfee0f4f2f04c2d357c6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think I finally found the problem and a walk arround.

If I start the process normaly:
/etc/init.d/c= man start
/etc/init.d/clvmd start

And ma= ke the snapshots source volume of "exclusive use":
lvchange -an volume
lvchange -aey volume

And I try to remove a snapshot:
lvremove -f snapshot
<= br>
The involved "dm" will get suspended but not delete= d causing the eternal hang of the lvm system due to the blocked I/O .

Now. If BEFORE the "lvremove" I execute a bui= lt in clvmd restart:
clvmd -S

It will fa= il to restart it properly. Looking the code I think it is caused because cl= vmd is trying to pass itself "-E" option but in my current lvm2 v= ersion is not declared (2.02.87) . I don't know if I may report this to= the lvm-devel :

[pid =A02895] execve("/usr/sbin/clvmd", = ["clvmd", "-E", "fU6kuI1yVWxAjsu1WmL1TmvishGAZaZNH= 61u58pM21rrS3t8vyXvzsoiMaB4XHKX"], [/* 0 vars */] <unfinished ...&g= t;
[pid =A02892] write(2, "Usage: clvmd [options]\n =A0 -V =A0= =A0 =A0 Show version of clvmd\n =A0 -h =A0 =A0 =A0 Show this help informat= ion\n =A0 -d[n] =A0 =A0Set debug logging (0:none, 1:stderr (implies -f opti= on), 2:syslog)\n =A0 -f =A0 =A0 =A0 Don't fork, run in the foreground\n= =A0 -R =A0 =A0 =A0 Tell all running clvmd"..., 611) =3D 611


Anyway. After the "clvmd -S" c= lvm will not be started, but I start it manually with "/etc/init.d/clv= md start".
Now I have to mark the volume as exclusive again,= but after that the lvm systems seems to work fine forever... I can create = and delete snapshots without problems, without hanging the lvm.

It seems to me that the "clvmd -S" command do= es something that the system needs and the normal "stop/start" is= not executing.


--bcaec554dfee0f4f2f04c2d357c6--