[linux-lvm] Question on duplicating equally-sized HDs with dd and changing VG name and PV UUIDs

Holger Rauch holger.rauch at heitec.de
Wed Sep 19 16:04:04 UTC 2007


Hi Alasdair (and all the other list members),

first of all, thanks for having mentioned pvchange -u but the man page of
pvchange really gives no clue on how to actually use the -u switch. The
output of pvchange --help suggests that the -u switch takes no additional
parameter. So, if I understand you right, pvchange -u should both *generate
and assign* a new UUID to the specified PV and thus do what I need?

TIA for clarification on this issue.

Greetings,

	Holger

On Mon, 17 Sep 2007, Alasdair G Kergon wrote:

> On Tue, Sep 11, 2007 at 12:12:50PM +0200, Holger Rauch wrote:
> > 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
> 
> There's something strange going on here.
> The tools should be quite capable of generating a new uuid for you.
> Perhaps it's a documentation problem.
> 
> Try pvchange -u.
> 
> Alasdair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20070919/1b0c436d/attachment.sig>


More information about the linux-lvm mailing list