public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Freemyer <greg.freemyer@gmail.com>
To: Theodore Tso <tytso@mit.edu>
Cc: Ted Augustine <taugustine@techpathways.com>,
	Alexey Fisher <bug-track@fisher-privat.net>,
	linux-ext4@vger.kernel.org
Subject: Re: xt4 - True Readonly mount [WAS - Re: [Bug 14354] Bad corruption with 2.6.32-rc1 and upwards]
Date: Mon, 2 Nov 2009 16:59:18 -0500	[thread overview]
Message-ID: <87f94c370911021359x19f57427o19e6f7bfcfadae21@mail.gmail.com> (raw)
In-Reply-To: <20091101054542.GP18464@mit.edu>

On Sun, Nov 1, 2009 at 12:45 AM, Theodore Tso <tytso@mit.edu> wrote:
> On Fri, Oct 30, 2009 at 10:20:35AM -0400, Greg Freemyer wrote:
>> Ignoring computer forensics, with LVM snapshots, hardware raid array
>> snapshots, etc. even in the presence of a dirty log, we need to be
>> able to mount a drive in true read-only fashion fro many backup
>> operations to function correctly.
>
> Can you go into more detail about "many backup operations"?

One example is a hardware raid array that creates readonly snapshots
or clones.  (Lots of those exist in the real world).

So the typical backup procedure is:

====
Queisce application (databases, etc. have utils to do this.)

Queisce filesystem (xfs_freeze -f can be done from userspace. is there
a ext4 util?)

issue raid array command to create snapshot.

release filesystem (xfs_freeze -u)

release the app (util provided by app).

Mount the snapshot readonly (true readonly with zero writes to the
block device).

Backup the readonly snapshot (to tape, etc.).
===

I believe XFS had 2 issues related to this process when first
implemented in linux.

1) It required the UUID to be unique.  Obviously in the above scenario
it is not, so "mount -o nouuid" was added for xfs.

2) Journal replay was originally aways attempted in the above process,
so the "mount -o norecovery" option was added to force a true readonly
mount.

ext4 may already support mounting of readonly clones, but if not it
needs to before it will qualify as a data center ready filesystem.

Greg
-- 
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
Preservation and Forensic processing of Exchange Repositories White Paper -
<http://www.norcrossgroup.com/forms/whitepapers/tng_whitepaper_fpe.html>

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

  reply	other threads:[~2009-11-02 21:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 14:20 xt4 - True Readonly mount [WAS - Re: [Bug 14354] Bad corruption with 2.6.32-rc1 and upwards] Greg Freemyer
2009-10-30 15:14 ` Eric Sandeen
2009-10-30 15:31   ` Alexey Fisher
2009-10-30 16:14     ` Eric Sandeen
2009-10-30 16:52       ` Alexey Fisher
2009-10-30 17:13         ` Eric Sandeen
2009-10-30 17:43           ` Duane Griffin
2009-10-30 15:47 ` Alexey Fisher
2009-11-01  5:45 ` Theodore Tso
2009-11-02 21:59   ` Greg Freemyer [this message]
2009-11-02 22:53     ` Andreas Dilger
2009-11-02 23:02       ` Eric Sandeen
2009-11-04  8:05         ` Andreas Dilger
2009-11-04 16:20           ` Eric Sandeen
2009-11-03 13:52     ` Theodore Tso

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=87f94c370911021359x19f57427o19e6f7bfcfadae21@mail.gmail.com \
    --to=greg.freemyer@gmail.com \
    --cc=bug-track@fisher-privat.net \
    --cc=linux-ext4@vger.kernel.org \
    --cc=taugustine@techpathways.com \
    --cc=tytso@mit.edu \
    /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