All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Völker" <chrischan@knebb.de>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] Snapshot on "disk": file system consistent?
Date: Thu, 29 Jan 2009 08:07:39 +0100	[thread overview]
Message-ID: <498155BB.9030607@knebb.de> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yohoo!

Just for my own curiousity:

I have a LVM volume which is presentet through iSCSI to another box. On
the other box I used fdisk to create a partition and formatted the
partition with ext3.

Now I'm performing a backup on the local iSCSI/LVM server like follows:

Taking a snapshot of the LV:
lvcreate -s -p r -c 64K -L 30G -n snap_backup /dev/vg/backup

Setting up the lo-device with the calculation for the partition start:
losetup -o$[512*64] /dev/loop1 /dev/vg/snap_backup

Mounting:
mount /dev/loop1 /srv/snap/ -t ext3 -o ro

Now my question is about the file system on the partition. Is it
consistent? Would it be better to perform a fsck before mounting?

Or can I rely on the above procedure to gain always a proper filesystem?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFJgVW70XNIYlAXmzsRAvFeAJ9Xz1IzEqEw49+kBnhAChixvK6zCgCgtxaz
a7bgGVSkpTWpEoDXueralWE=
=RR04
-----END PGP SIGNATURE-----

                 reply	other threads:[~2009-01-29  7:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=498155BB.9030607@knebb.de \
    --to=chrischan@knebb.de \
    --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 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.