Bug#318852: marked as done (LVM does not detect raid mirrors)

Debian Bug Tracking System owner at bugs.debian.org
Sat Jul 30 09:48:31 UTC 2005


Your message dated Sat, 30 Jul 2005 11:37:51 +0200
with message-id <20050730093751.GA32711 at wavehammer.waldi.eu.org>
and subject line Bug#318852: LVM does not detect raid mirrors
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Jul 2005 09:31:48 +0000
>From debbug2 at danisch.de Mon Jul 18 02:31:48 2005
Return-path: <debbug2 at danisch.de>
Received: from sklave3.rackland.de [213.133.101.23] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DuRyV-0004N1-00; Mon, 18 Jul 2005 02:31:47 -0700
Received: (from hadmut at localhost)
	by sklave3.rackland.de (8.13.2/8.13.2/Debian-1) id j6I9VjJF005320
	for submit at bugs.debian.org; Mon, 18 Jul 2005 11:31:45 +0200
From: debbug2 at danisch.de
Date: Mon, 18 Jul 2005 11:31:45 +0200
To: submit at bugs.debian.org
Subject: LVM does not detect raid mirrors
Message-ID: <20050718093145.GA5234 at danisch.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	NO_REAL_NAME autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: lvm2
Version: 2.01.12-2

Hi,

I just had a problem with putting LVM on a 
linux RAID-1 mirror:

I want to put LVM on a Linux Raid-1 device. I already did this several
times successfully. But this time I have a strange problem:

The raid device is /dev/md3, and it should consist of the two
partitions
/dev/hda3 and /dev/hdc3.

I created the raid device with just /dev/hdc3, second missing,
then pvcreate /dev/md3 and created the volume group 'raid'.
Works well.

pvscan correctly shows the raid device instead of /dev/hdc3:

sodom# pvscan
  PV /dev/hdc4   VG nord   lvm2 [58,59 GB / 33,59 GB free]
  PV /dev/md3    VG raid   lvm2 [54,35 GB / 21,35 GB free]
  Total: 2 [112,94 GB] / in use: 2 [112,94 GB] / in no VG: 0 [0   ]




(ignore hdc4, it is just another lvm because hdc is larger than
hda, there is no problem with hdc4)



But as soon as I add /dev/hda3 to the raid system (mdad /dev/md3 -a
/dev/hda3), lvm confuses the partitions. It does not detect /dev/md3
anymore and complains that there are two different partitions with the
same ID:

sodom# pvscan
  Found duplicate PV 39jeBxsxpKtJrwP6FN3Yvq6zB7khU6Pa: using /dev/hdc3
  not /dev/hda3
  PV /dev/hdc4   VG nord   lvm2 [58,59 GB / 33,59 GB free]
  PV /dev/hda3   VG raid   lvm2 [54,35 GB / 21,35 GB free]
  Total: 2 [112,94 GB] / in use: 2 [112,94 GB] / in no VG: 0 [0   ]


The volume group can't then be used. As soon as I take out /dev/hda3
and wipe the first sectors, everything is ok again.

Any idea what's going wrong here?



Just in case it matters, the partition tables:

sodom# sfdisk -l /dev/hda

Disk /dev/hda: 116301 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 116301/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1          0+    100     101-    811251   fd  Linux raid
autodetect
/dev/hda2        101     201     101     811282+  fd  Linux raid
autodetect
/dev/hda3        202    7296    7095   56990587+  fd  Linux raid
autodetect
/dev/hda4          0       -       0          0    0  Empty






sodom# sfdisk -l /dev/hdc

Disk /dev/hdc: 238216 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 238216/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hdc1          0+    100     101-    811251   fd  Linux raid
autodetect
/dev/hdc2        101     201     101     811282+  fd  Linux raid
autodetect
/dev/hdc3        202    7296    7095   56990587+  fd  Linux raid
autodetect
/dev/hdc4       7297   14945    7649   61440592+  8e  Linux LVM

regards
Hadmut

---------------------------------------
Received: (at 318852-done) by bugs.debian.org; 30 Jul 2005 09:37:54 +0000
>From waldi at debian.org Sat Jul 30 02:37:54 2005
Return-path: <waldi at debian.org>
Received: from wavehammer.waldi.eu.org [82.139.196.55] (postfix)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1Dynmz-0001ox-00; Sat, 30 Jul 2005 02:37:54 -0700
Received: by wavehammer.waldi.eu.org (Postfix, from userid 1000)
	id 9757F3C017; Sat, 30 Jul 2005 11:37:51 +0200 (CEST)
Date: Sat, 30 Jul 2005 11:37:51 +0200
From: Bastian Blank <waldi at debian.org>
To: Hadmut Danisch <hadmut at danisch.de>, 318852-done at bugs.debian.org
Subject: Re: Bug#318852: LVM does not detect raid mirrors
Message-ID: <20050730093751.GA32711 at wavehammer.waldi.eu.org>
References: <20050718093145.GA5234 at danisch.de> <20050718130227.GA10006 at wavehammer.waldi.eu.org> <20050719071758.GA8612 at danisch.de>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4"
Content-Disposition: inline
In-Reply-To: <20050719071758.GA8612 at danisch.de>
User-Agent: Mutt/1.5.9i
Delivered-To: 318852-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 19, 2005 at 09:17:58AM +0200, Hadmut Danisch wrote:
> Thanks. Works.=20

Great, so I'm closing this bug.

Bastian

--=20
I'm a soldier, not a diplomat.  I can only tell the truth.
		-- Kirk, "Errand of Mercy", stardate 3198.9

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkLrSm8ACgkQnw66O/MvCNERhgCgqNHw80be5NiwF5Z5roTleicw
iloAn3bMX6hC/e/wT0BkBw+0gf2wdfl2
=RJuC
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--



More information about the pkg-lvm-maintainers mailing list