linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Hardware snapshots and LVM2?
@ 2006-03-21 19:11 fredrik.backman
  2006-03-21 20:53 ` Greg Freemyer
  2006-03-23 16:38 ` Mike Snitzer
  0 siblings, 2 replies; 4+ messages in thread
From: fredrik.backman @ 2006-03-21 19:11 UTC (permalink / raw)
  To: linux-lvm

Hi

Im doing a snapshot (hardware-based in EVA5000) of a LV 
(lvm2) and i 
wonder what is the correct way to use this snapshot? 
Problem is that 
this snapshot has the same ID as the original one. In HP-UX 
a would do a 
vgchgid on this snapshot-LV. Any help would be aprreciated.

Regards Fredrik

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

* Re: [linux-lvm] Hardware snapshots and LVM2?
  2006-03-21 19:11 [linux-lvm] Hardware snapshots and LVM2? fredrik.backman
@ 2006-03-21 20:53 ` Greg Freemyer
  2006-03-21 22:12   ` Nathan Scott
  2006-03-23 16:38 ` Mike Snitzer
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Freemyer @ 2006-03-21 20:53 UTC (permalink / raw)
  To: LVM general discussion and development

On 3/21/06, fredrik.backman@nll.se <fredrik.backman@nll.se> wrote:
> Hi
>
> Im doing a snapshot (hardware-based in EVA5000) of a LV
> (lvm2) and i
> wonder what is the correct way to use this snapshot?
> Problem is that
> this snapshot has the same ID as the original one. In HP-UX
> a would do a
> vgchgid on this snapshot-LV. Any help would be aprreciated.
>
> Regards Fredrik

I think that is filesystem dependent.

If you happen to be using XFS I believe they have a mount option like
"-o nouuid".

Do a man mount.xfs to double check.

Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century

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

* Re: [linux-lvm] Hardware snapshots and LVM2?
  2006-03-21 20:53 ` Greg Freemyer
@ 2006-03-21 22:12   ` Nathan Scott
  0 siblings, 0 replies; 4+ messages in thread
From: Nathan Scott @ 2006-03-21 22:12 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Mar 21, 2006 at 03:53:16PM -0500, Greg Freemyer wrote:
> On 3/21/06, fredrik.backman@nll.se <fredrik.backman@nll.se> wrote:
> > Hi
> >
> > Im doing a snapshot (hardware-based in EVA5000) of a LV
> > (lvm2) and i
> > wonder what is the correct way to use this snapshot?
> > Problem is that
> > this snapshot has the same ID as the original one. In HP-UX
> > a would do a
> > vgchgid on this snapshot-LV. Any help would be aprreciated.
> >
> > Regards Fredrik
> 
> I think that is filesystem dependent.
> 
> If you happen to be using XFS I believe they have a mount option like
> "-o nouuid".

If its XFS, you can either do that or change the UUID via xfs_admin(8).

> Do a man mount.xfs to double check.

Its mount(8), all the filesystems are documented together in one place.

cheers.

-- 
Nathan

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

* Re: [linux-lvm] Hardware snapshots and LVM2?
  2006-03-21 19:11 [linux-lvm] Hardware snapshots and LVM2? fredrik.backman
  2006-03-21 20:53 ` Greg Freemyer
@ 2006-03-23 16:38 ` Mike Snitzer
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Snitzer @ 2006-03-23 16:38 UTC (permalink / raw)
  To: LVM general discussion and development

On 3/21/06, fredrik.backman@nll.se <fredrik.backman@nll.se> wrote:
> Hi
>
> Im doing a snapshot (hardware-based in EVA5000) of a LV
> (lvm2) and i
> wonder what is the correct way to use this snapshot?
> Problem is that
> this snapshot has the same ID as the original one. In HP-UX
> a would do a
> vgchgid on this snapshot-LV. Any help would be aprreciated.

You're creating snapshots of the entire block device.  As such the
snapshot device has identical LVM2 metadata as the origin device.  You
need to generate new PV, VG, LV UUIDs, modify the metadata and then
restore that modified metadata to the snapshot device (via
vgcfgbackup, vgcfgrestore).  EVMS has a decent random lvm2 UUID
generator function that can be pulled out and made to run standalone.

Mike

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

end of thread, other threads:[~2006-03-23 16:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 19:11 [linux-lvm] Hardware snapshots and LVM2? fredrik.backman
2006-03-21 20:53 ` Greg Freemyer
2006-03-21 22:12   ` Nathan Scott
2006-03-23 16:38 ` Mike Snitzer

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).