From: Patrick Caulfield Message-ID: <20030924070929.GA1551@tykepenguin.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline Subject: [linux-lvm] [Bug#212483: vgscan fails at least with raids inside raids] Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Wed Sep 24 08:01:06 2003 List-Id: To: linux-lvm@sistina.com --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline -- patrick --6TrnltStXW4iwmi0 Content-Type: message/rfc822 Content-Disposition: inline X-Mail-Format-Warning: Bad RFC2822 header formatting in >From patrick Wed Sep 24 08:05:59 2003 Return-path: Envelope-to: patrick@localhost Delivery-date: Wed, 24 Sep 2003 08:05:59 +0100 Received: from localhost.pjc.net ([127.0.0.1] helo=localhost) by arthur.pjc.net with esmtp (Exim 3.36 #1 (Debian)) id 1A23il-00009k-00 for ; Wed, 24 Sep 2003 08:05:55 +0100 Received: from mail.cix.co.uk by localhost with POP3 (fetchmail-5.9.11) for patrick@localhost (single-drop); Wed, 24 Sep 2003 08:05:55 +0100 (BST) Received: from master.debian.org (master.debian.org [146.82.138.7]) by mta02.mx.cix.co.uk (8.11.3/CIX/8.11.3) with ESMTP id h8NMmKs08552 for ; Tue, 23 Sep 2003 23:48:20 +0100 X-Envelope-From: debbugs@master.debian.org Received: from debbugs by master.debian.org with local (Exim 3.35 1 (Debian)) id 1A1vx0-0003sh-00; Tue, 23 Sep 2003 17:48:06 -0500 X-Loop: owner@bugs.debian.org Subject: Bug#212483: vgscan fails at least with raids inside raids Reply-To: Santiago Garcia Mantinan , 212483@bugs.debian.org Resent-From: Santiago Garcia Mantinan Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Patrick Caulfield Resent-Date: Tue, 23 Sep 2003 22:48:04 UTC Resent-Message-ID: X-Debian-PR-Message: report 212483 X-Debian-PR-Package: lvm10 X-Debian-PR-Keywords: Received: via spool by submit@bugs.debian.org id=B.106435711813900 (code B ref -1); Tue, 23 Sep 2003 22:48:04 UTC Received: (at submit) by bugs.debian.org; 23 Sep 2003 22:45:18 +0000 Received: from 204.red-213-96-224.pooles.rima-tde.net (betawl.net) [213.96.224.204] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1A1vuF-0003b8-00; Tue, 23 Sep 2003 17:45:15 -0500 Received: from man.beta.es (man.beta.es [192.168.1.2]) by betawl.net (Postfix) with ESMTP id D22C027AFE; Wed, 24 Sep 2003 00:45:12 +0200 (CEST) Received: by man.beta.es (Postfix, from userid 1000) id EA4001003C; Wed, 24 Sep 2003 00:45:08 +0200 (CEST) Content-Type: multipart/mixed; boundary="===============0139022805==" MIME-Version: 1.0 From: Santiago Garcia Mantinan To: Debian Bug Tracking System X-Mailer: reportbug 2.29 Date: Wed, 24 Sep 2003 00:45:08 +0200 Message-Id: <20030923224508.EA4001003C@man.beta.es> X-BadReturnPath: manty@man.beta.es rewritten as manty@debian.org using "From" header Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS X-Envelope-To: patrick@tykepenguin.cix.co.uk X-Spam-Status: No, hits=-7.0 required=3.4 tests=BAYES_01,DEBIAN_BTS_BUG,RCVD_IN_RFCI,X_LOOP version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) This is a multi-part MIME message sent by reportbug. --===============0139022805== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: lvm10 Version: 1:1.0.7-7 Severity: important vgscan tries to scan every device and by doing so it fails at least under some circumstances. The circumstances on which I have found this are these: I have a raid0 device named md0 which is itself part of a raid5 device named md2. This is what happens: I create a pv on the raid5 device and then define a group named raid5vg inside and a couple of logical volumes inside of this, I format the lvs and I even mount them and play with the system, everything is fine till I boot up again, I see that starting the lvm fails because of vgscan failing. What happens to vgscan is that it is finding stuff about raid5vg in both md0 and md2, this is caused by md0 being part of md2, I have tried changing the position of md0 in the raid (making it the last of the 3 devices I have in the raid5, instead if the first one) but same thing happened. To prove that my supposition is correct I have done this: I run vgscan with all the raids started and i get: vgscan -- reading all physical volumes (this may take a while...) vgscan -- ERROR "lv_read_all_lv(): number of LV" can't get data of volume group "raid5vg" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group Then I stop the raid0 by: stopping the raid5, then the raid0 and then starting the raid5 in a dregradated mode. These are the commands I issue: raidstop /dev/md2 raidstop /dev/md0 raidstart /dev/md2 And run again vgscan, but now md0 doesn't exist as it is not started, so I get... vgscan -- reading all physical volumes (this may take a while...) raid5: switching cache buffer size, 4096 --> 1024 vgscan -- found inactive volume group "raid5vg" vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group If I start md0 again, I get the error again. I compiled lvm10 in debug mode and run vgscan -v --debug in the case where it fails, I'm attaching the output to this report. I think that vgscan shouldn't have any kind of problem in this situation, I mean, maybe he cannot get the info about raid5vg from md0, but he surely can get it from md2. Regards... -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux man 2.4.22 #1 Mon Sep 22 00:43:52 CEST 2003 i586 Locale: LANG=C, LC_CTYPE=C Versions of packages lvm10 depends on: ii debconf 1.3.14 Debian configuration management sy ii file 4.03-3 Determines file type using "magic" ii libc6 2.3.2-8 GNU C Library: Shared libraries an ii lvm-common 1.5.9.3 The Logical Volume Manager for Lin -- debconf information: * lvm10/warning: --===============0139022805== Content-Type: application/octet-stream MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="/tmp/vgscan.debug.gz" H4sICHLGcD8CA3Znc2Nhbi5kZWJ1ZwDtXUtz2zgSPuzNvwLlPWxysC2C1HOSVDmxnNoqr531eDyH VEpFEZDFsiRySEqx9tcvSL1IESBB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