Linux LVM users
 help / color / mirror / Atom feed
From: Ambrogio De Lorenzo <ambrogio.de.lorenzo@alice.it>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Using LVM Mirroring to obtain a usable backup
Date: Wed, 16 Sep 2009 21:15:46 +0200	[thread overview]
Message-ID: <1253128546.3243.13.camel@delo.gdit> (raw)
In-Reply-To: <1253120322.16343.71.camel@pc.interlinx.bc.ca>

Il giorno mer, 16/09/2009 alle 12.58 -0400, Brian J. Murrell ha scritto:
> On Wed, 2009-09-16 at 18:47 +0200, Ambrogio De Lorenzo wrote:
> > 
> > snapshot is not a good choise for me.
> 
> It actually is.  I snapshot all of my filesystems before every upgrade
> and let the snapshots hang around until I am happy with the upgrade.
Imagine that upgrade change something in LVM configuration or in lvm
software.
Snapshots are good only if you have the original data and all the
modified data.
This is not a good way to rollback everything.

My idea is:
     1. Insert a new disk via USB
     2. configure mirroring
     3. continue to work and monitor for mirroring progress (performance
        are not a problem)
     4. In a good moment shutdown the system
     5. boot with a live CD with an LVM version compatible
     6. split mirroring of lv (this made available 2 copies with
        different names on 2 different disks)
     7. split VG
     8. reboot without the USB disk (that is a good copy of original VG)
     9. change everything I need (i.e. I can also destroy disk or
        destroy VG) and test it.
    10. If is good I can destroy the USB copy, if it isn't I can boot
        from USB

> Well, snapshots give you a very space efficient (if not performance
> efficient due to the COW nature of snapshots) version of that.  When you
> create a snapshot and before your modify any data in the origin (the
> volume you are creating a snapshot (a.k.a. copy) of your snapshot is an
> identical copy (just as if you'd used dd) of the origin, without using
> any additional space even!
I know very well how snapshot works. And it's for this reason that I
don't think it's a good choise for my scope

> > I'm looking also on mdadm to mirror a disk (or partition) but I think it
> > is not usable when disk is already partitioned and used without mdadm.
> 
> Well, you will have that same problem with LVM.  Planning is key in any
> of this.
Yes, but LVM is already configured for this reason.
Mdadm isn't. I tried to test it but I'm not able to obtain a mirror of
an already partitioned and used disk.

Bye
 Ambrogio

  reply	other threads:[~2009-09-16 19:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16 13:59 [linux-lvm] Using LVM Mirroring to obtain a usable backup Ambrogio De Lorenzo
2009-09-16 15:05 ` André Gillibert
2009-09-16 16:47   ` Ambrogio De Lorenzo
2009-09-16 16:58     ` Brian J. Murrell
2009-09-16 19:15       ` Ambrogio De Lorenzo [this message]
2009-09-16 19:49         ` Brian J. Murrell
2009-09-16 20:03     ` André Gillibert
2009-09-16 20:22       ` Ambrogio De Lorenzo
2009-09-16 22:03         ` Kai Stian Olstad
2009-09-16 18:19 ` malahal
2009-09-16 19:03   ` Ambrogio De Lorenzo
2009-09-16 20:33     ` malahal
2009-09-17 10:05     ` Bryn M. Reeves
2009-09-17 15:06       ` Stuart D. Gathman
2009-09-17 15:34         ` Brian J. Murrell
2009-09-17 22:49           ` Stuart D. Gathman
2009-09-17 23:26             ` Les Mikesell
2009-09-18  0:58               ` Stuart D. Gathman
2009-09-18  1:51                 ` Sven Eschenberg
2009-09-18 16:05                 ` Mark H. Wood
2009-09-18 19:12                   ` Stuart D. Gathman
2009-09-17 23:48             ` Brian J. Murrell
2009-09-18  1:55               ` Stuart D. Gathman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1253128546.3243.13.camel@delo.gdit \
    --to=ambrogio.de.lorenzo@alice.it \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox