From: Lukas Laukamp <lukas@laukamp.me>
To: Javier Guerra Giraldez <javier@guerrag.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>, kvm@vger.kernel.org
Subject: Re: [User Question] How to create a backup of an LVM based maschine without wasting space
Date: Fri, 12 Oct 2012 17:51:30 +0200 [thread overview]
Message-ID: <50783C82.70500@laukamp.me> (raw)
In-Reply-To: <CAFkDaoQ_gA0FNo2WpoYQpvq+Vi4NRRk-Aw2WDvXQW9nEhr_U7w@mail.gmail.com>
Am 12.10.2012 16:36, schrieb Javier Guerra Giraldez:
> On Fri, Oct 12, 2012 at 9:25 AM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
>> I would leave them raw as long as they are sparse (zero regions do not
>> take up space). If you need to copy them you can either convert to
>> qcow2 or use tools that preserve sparseness (BTW compression tools are
>> good at this).
> note that free blocks previously used by deleted files won't be
> sparse, won't be zero and won't be much reduced by compression.
>
> i'd say the usual advice stays:
>
> A: if you run any non-trivial application on that VM, then use a real
> network backup tool 'from the inside' of the VM
> B: if real point-in-time application-cache-storage consistency is not
> important, then you can:
>
> - make a read-write LVM snapshot
> - mount that and fsck. (it will appear as not-cleanly unmounted)
> - backup the files. (i like rsync, especially if you have an
> uncompressed previous backup)
> - umount and destroy the snapshot
> - optionally compress the backup
>
>
> but seriously consider option A before. especially important if you
> run any DB on that VM
>
I already thought about such situations. So DB systems are a real
problem. I know that some data can be better backup directly but for
example a VM for a Web- or Mailserver I want to backup completely to get
this services get to work again very fast if there are problems. So it's
a complex problem I think and not every machine can be backuped as another.
I think that I must start by the hardware and software configuration of
the backup node.
Best Regards
next prev parent reply other threads:[~2012-10-12 15:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 6:52 [User Question] How to create a backup of an LVM based maschine without wasting space Lukas Laukamp
2012-10-12 8:42 ` Stefan Hajnoczi
[not found] ` <5077DB9F.6050809@laukamp.me>
2012-10-12 9:17 ` Lukas Laukamp
2012-10-12 10:11 ` Stefan Hajnoczi
2012-10-12 10:16 ` Lukas Laukamp
2012-10-12 10:47 ` Stefan Hajnoczi
2012-10-12 10:50 ` Lukas Laukamp
2012-10-12 11:36 ` Stefan Hajnoczi
2012-10-12 11:51 ` Lukas Laukamp
2012-10-12 12:59 ` Stefan Hajnoczi
2012-10-12 13:02 ` Lukas Laukamp
2012-10-12 14:25 ` Stefan Hajnoczi
2012-10-12 14:36 ` Javier Guerra Giraldez
2012-10-12 15:51 ` Lukas Laukamp [this message]
2012-10-12 19:18 ` Stefan Hajnoczi
2012-10-12 18:14 ` Lukas Laukamp
2012-10-12 19:13 ` Stefan Hajnoczi
2012-10-12 19:26 ` Lukas Laukamp
2012-10-12 20:43 ` Stefan Hajnoczi
2012-10-12 20:56 ` Lukas Laukamp
2012-10-12 21:53 ` Javier Guerra Giraldez
2012-10-13 10:28 ` Lukas Laukamp
2012-10-13 22:25 ` Lukas Laukamp
2012-10-15 3:06 ` Javier Guerra Giraldez
2012-10-15 6:17 ` Lukas Laukamp
2012-10-18 12:57 ` Avi Kivity
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=50783C82.70500@laukamp.me \
--to=lukas@laukamp.me \
--cc=javier@guerrag.com \
--cc=kvm@vger.kernel.org \
--cc=stefanha@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.