From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.16]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r4P47eho001636 for ; Sat, 25 May 2013 00:07:40 -0400 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4P47biv023460 for ; Sat, 25 May 2013 00:07:38 -0400 Received: by mail-pb0-f53.google.com with SMTP id un4so4943817pbc.12 for ; Fri, 24 May 2013 21:07:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130524204516.35a24798@lolek.nigdzie> References: <20130524204516.35a24798@lolek.nigdzie> Date: Sat, 25 May 2013 07:07:36 +0300 Message-ID: From: Alexis Pellicier Content-Type: multipart/alternative; boundary=047d7b6243404f954604dd830e04 Subject: Re: [linux-lvm] snapshot an lvm disk containing ext4 partitions Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: Jacek Konieczny Cc: LVM general discussion and development --047d7b6243404f954604dd830e04 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable And theire is no risk to lose data? Le 24 mai 2013 21:45, "Jacek Konieczny" a =C3=A9crit : > On Thu, 23 May 2013 09:31:23 +0300 > Alexis wrote: > > 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? > > Use read-write snapshots instead of read-only ones. > > The first time you mount the snapshot (read-only mount is enough) > the journal will get replayed and the stored file-system will become > clean. > > Greets, > Jacek > --047d7b6243404f954604dd830e04 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

And theire is no risk to lose data?

Le 24 mai 2013 21:45, "Jacek Konieczny"= ; <jajcus@jajcus.net> a =C3= =A9crit=C2=A0:
On Thu, 23 May 2013 09:31:23 +0300
Alexis <alexis.pellicier@= nds.k12.tr> wrote:
> 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 =C2=A03.4.11 from opensuse 12.2 the ext4 > partitions inside =C2=A0the 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?

Use read-write snapshots instead of read-only ones.

The first time you mount the snapshot (read-only mount is enough)
the journal will get replayed and the stored file-system will become
clean.

Greets,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Jacek
--047d7b6243404f954604dd830e04--