linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Clone disk with LVM
@ 2007-07-02 21:51 Ryan Nelson
  2007-07-07 11:03 ` Nix
  2007-07-08 17:45 ` Alasdair G Kergon
  0 siblings, 2 replies; 3+ messages in thread
From: Ryan Nelson @ 2007-07-02 21:51 UTC (permalink / raw)
  To: LVM general discussion and development


I had a Linux system using LVM for / (root) that was going away for 
field tests and the users of the system wanted to have a couple hot 
spares of the drives.  Using dd I replicated the disk to two diffrent 
drives.  One drive stored away and the other drive was going to be in 
the system being rsync'd nightly so that it would have the freshest data 
on it.

Because of the dd the LVM had the same names and UUIDs for the vg and 
lg.  I was able to change the names however I wasn't successful in 
change the UUIDs.  It didn't even look like there was an option to 
change the UUIDs for the lv. 

What would have been the correct way to achieve a setup like this with 
LVM?  I would assume a mirroring of some sort although I don't know what 
would be involved for the user if the drive did die and they needed to 
use the second drive.

Thanks
Ryan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Clone disk with LVM
  2007-07-02 21:51 [linux-lvm] Clone disk with LVM Ryan Nelson
@ 2007-07-07 11:03 ` Nix
  2007-07-08 17:45 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Nix @ 2007-07-07 11:03 UTC (permalink / raw)
  To: LVM general discussion and development

On 2 Jul 2007, Ryan Nelson spake thusly:
> Because of the dd the LVM had the same names and UUIDs for the vg and lg.  I was able to change the names however I wasn't
> successful in change the UUIDs.  It didn't even look like there was an option to change the UUIDs for the lv.

vgcfgbackup, edit the backup, edit the ids in the logical_volumes
sections, check your work carefully, and vgcfgrestore?

(One very nice thing about LVM2 is that all the metadata is textual...)

-- 
`... in the sense that dragons logically follow evolution so they would
 be able to wield metal.' --- Kenneth Eng's colourless green ideas sleep
 furiously

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Clone disk with LVM
  2007-07-02 21:51 [linux-lvm] Clone disk with LVM Ryan Nelson
  2007-07-07 11:03 ` Nix
@ 2007-07-08 17:45 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2007-07-08 17:45 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Jul 02, 2007 at 02:51:52PM -0700, Ryan Nelson wrote:
> It didn't even look like there was an option to 
> change the UUIDs for the lv. 
 
You don't need to.  LV UUIDs are always qualified by the VG UUID.
Create an LVM2 installation using LVM1 metadata with more than one VG
with at least one LV in each and you'll see duplicate LV UUIDs.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-08 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 21:51 [linux-lvm] Clone disk with LVM Ryan Nelson
2007-07-07 11:03 ` Nix
2007-07-08 17:45 ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).