Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8BAEHJV025159 for ; Tue, 11 Sep 2007 06:14:17 -0400 Received: from christel.heitec.net (christel.heitec.net [62.206.253.11]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l8BAEB88028811 for ; Tue, 11 Sep 2007 06:14:11 -0400 Received: from prag.er.heitec.net (paladin.heitec.net [62.206.253.14]) by christel.heitec.net (Postfix) with ESMTP id 5E38DA8939 for ; Tue, 11 Sep 2007 12:12:50 +0200 (CEST) Date: Tue, 11 Sep 2007 12:12:50 +0200 From: Holger Rauch Subject: Re: [linux-lvm] Question on duplicating equally-sized HDs with dd and changing VG name and PV UUIDs Message-ID: <20070911101250.GB26592@heitec.net> References: <20070907121306.GA27457@heitec.net> <20070907175345.GA5931@racke.local> <20070910085921.GC22296@heitec.net> <20070910171709.GA5117@us.ibm.com> <20070911100036.GA26592@heitec.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline In-Reply-To: <20070911100036.GA26592@heitec.net> 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 --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Replying to myself this time :-) Just found out about uuidgen. Would that be OK? I'm thinking about invoking pvcreate like this: pvcreate --uuid $(uuidgen) /dev/sdb (I don't want't to forcefully recreate a PV, I just want to be able to assign a different UUID to it in order keep LVM from "thinking" that PV still belongs to some other VG). But, on the other hand, I also just noticed that the UUIDs of PVs, VGs, LVs are formatted differently from those generated by uuidgen. Or can LVM also use UUIDs that are formatted differently? So, my question about a UUID generation tool for proper UUID usage within LVM seems to be still valid... On Tue, 11 Sep 2007, Holger Rauch wrote: > Hi to everybody, >=20 > ok, if running pvcreate is necessary, what tool can I use for generating > my own UUID (for passing them to the --uuid cmd line switch of pvcreate) > just in case the PV previously belonged to a different VG? >=20 > TIA. >=20 > Greetings, >=20 > Holger >=20 > On Mon, 10 Sep 2007, malahal@us.ibm.com wrote: >=20 > > I don't think so. /dev/sdb will have the same partition table as > > /dev/sda from the sfdisk command. I bet you need to run pvcreate and > > vgcreate before running the rest of the script. > >=20 > > Thanks, Malahal. > > [...] --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG5mohbiVtWpZdKQIRAgo1AJ9+SotcuDVEqYSkX35pWJIB9q13fgCfTsgm aUD1TyMPOTZQm5w+IhOluy4= =VLPu -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--