From: tytso@mit.edu
To: Larkin Lowrey <llowrey@nuclearwinter.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Q wrt LVM snapshot of ext4 w/ external journal
Date: Tue, 13 Apr 2010 15:22:57 -0400 [thread overview]
Message-ID: <20100413192257.GP1849@thunk.org> (raw)
In-Reply-To: <4BC4B66B.9000205@nuclearwinter.com>
On Tue, Apr 13, 2010 at 01:22:35PM -0500, Larkin Lowrey wrote:
> Is it safe to mount an LVM2 snapshot of an ext4 fs that has an external
> journal?
>
> My googling has revealed only that the snapshot procedure will cause the
> fs to checkpoint the journal (if that's the right term) but also that
> the fs will want to replay the journal when mounted, even if -o ro. If
> my journal is on an external device (NVRAM device in my case) I don't
> want the snapshot instance to interfere with the main on-line fs's use
> of the journal.
It's safe to mount the LVM2 snapshot only if you use the mount option
noload. This will prevent it from using the journal, which is good,
since the journal is in use by the original file system. :-)
> Is there any documentation, other than code, that describes this scenario?
No, it's not documented. It probably should be.
Hopefully, mounting the snapshot without using noload _should_ fail,
since the journal is already in use, but I'm not sure we have that
check in place, so I don't recommend trying it on a production file
system.
- Ted
next prev parent reply other threads:[~2010-04-14 3:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-13 18:22 Q wrt LVM snapshot of ext4 w/ external journal Larkin Lowrey
2010-04-13 19:22 ` tytso [this message]
2010-04-13 21:06 ` Larkin Lowrey
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=20100413192257.GP1849@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=llowrey@nuclearwinter.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).