[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Using LVM Mirroring to obtain a usable backup

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.

> I want to have an identical copy
> (like dd) on another identical disk, for fast recovery in case of
> failure.

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!

You can go on to upgrading the origin and the snapshot will continue to
maintain the "copy" of the origin at the time the snapshot was created.
It's sweet.

> This is what I do with raid hardware, and I would like to know if is
> possible to do it with lvm mirroring.

I've never used LVM mirroring.  Certainly you can do this with Linux's
MD software mirroring, but why bother when snapshots are so much easier?

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


Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]