linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Alexis <alexis.pellicier@nds.k12.tr>
Subject: Re: [linux-lvm] snapshot an lvm disk containing ext4 partitions
Date: Thu, 23 May 2013 10:34:19 +0200	[thread overview]
Message-ID: <519DD48B.5000801@redhat.com> (raw)
In-Reply-To: <knkd3m$5kr$1@ger.gmane.org>

Dne 23.5.2013 08:31, Alexis napsal(a):
> Hello,
>
> I was use to snapshot an LVM volume containing ext4 partitions for backup
> purpose. This is a disk for Xen DomU paravirtualized linux box.
>
> With lvm-2.02.98 and kernel  3.4.11 from opensuse 12.2 the ext4 partitions
> inside  the snapshot were clean.
>
> Now I've upgraded to opensuse 12.3 (kernel 3.7.10 lvm-2.02.98)
>
> Is lvm supposed to keep my inside ext4 partitions clean when snapshotting my
> volume? If not is theire any way of doing this?
>
> Any advices welcome.

 From your description is not very clear who is creating 'snapshot'

If you pass a device to your XEN guest and you make a snapshot in your host,
than obviously host device view knows nothing about guest's ext4 filesystem.

I'm not an expert in paravirtualization here - but if you want to have clean
snapshot - you need to create then within the same environment used for 
filesystem - so your guest should be creating it.

There is not much host can do with guest's filesystem if you would be creating 
snapshot on the host while guest is pushing data to the filesystem.
You only get 'sync' but not filesystem freeze in this case.


Zdenek

  reply	other threads:[~2013-05-23  8:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  6:31 [linux-lvm] snapshot an lvm disk containing ext4 partitions Alexis
2013-05-23  8:34 ` Zdenek Kabelac [this message]
2013-05-24 18:45 ` Jacek Konieczny
2013-05-25  4:07   ` Alexis Pellicier

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=519DD48B.5000801@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=alexis.pellicier@nds.k12.tr \
    --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;
as well as URLs for NNTP newsgroup(s).