public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Jan Kara <jack@suse.cz>
Cc: Goldwyn Rodrigues <rgoldwyn@suse.de>,
	lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org,
	linux-block@vger.kernel.org
Subject: Re: [Lsf-pc] [LSF/MM TOPIC] Online filesystem check framework
Date: Fri, 22 Jan 2016 23:04:44 +1100	[thread overview]
Message-ID: <20160122120444.GD6033@dastard> (raw)
In-Reply-To: <20160122093626.GD16898@quack.suse.cz>

On Fri, Jan 22, 2016 at 10:36:26AM +0100, Jan Kara wrote:
> Hello,
> 
> On Thu 21-01-16 22:45:29, Goldwyn Rodrigues wrote:
> > Topic: Generic Online filesystem Check framework
> > 
> > Motivation:
> >  + Better uptime - Filesystems turn read-only at the first error encountered
> > and it may block critical applications which have not encountered the error.
> >  + Unmountable Filesystems - Some filesystems such as clustered filesystem
> > may not be unmountable because they are used by too many computers to be
> > taken offline.
> >  + Autofix - may sound dangerous as fixing is without user intervention, but
> > an option may help admins which are looking for a good uptime.
> >  + Logic inbuilt - most logic of access to filesystem is already in the
> > filesystem driver. The fix/check would make use of existing functionality.
> > 
> > Framework would be around providing a generic interface framework which
> > would use inode numbers as the basic unit to check or fix. Other metadata
> > may need special parameters. Userspace scripts will issue check/fixes to the
> > system, which may/may not be driven by
> 
> Well, this is a very difficult topic so I think we need some concrete
> proposal and ideally some RFC code about what you think needs to be done to
> make online fsck possible. Without that it will be just a useless
> handwaving since I don't think anybody is able to come up with a decent
> proposal during that half an hour session...

I don't see it being generic, either, because metadata structurei,
dependencies, redundancy and algorithms are highly filesystem
specific. It just doesn't seem feasible to me - if it was then we'd
only need one userspace fsck/repair program....

FWIW, for XFS we already have a plan towards implementing online
repair[*] which we've been working towards for the past 5 years, but
it's another 5 years worth of work before we'll get to the point of
being able to dynamically repair corruptions as they are detected...

[*] I wrote this document back in 2008:

http://xfs.org/index.php/Reliable_Detection_and_Repair_of_Metadata_Corruption

We've got metadata CRCs now, and reverse mapping is just about ready
to be merged. Then we need parent pointers (i.e. directory structure
reverse mappings), transaction rollback on error, etc, before we can
even start to think about online repair algorithms.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2016-01-22 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 17:15 [LSF/MM TOPIC] Online filesystem check framework Goldwyn Rodrigues
2016-01-22  9:36 ` [Lsf-pc] " Jan Kara
2016-01-22 12:04   ` Dave Chinner [this message]
2016-01-25 18:37   ` Goldwyn Rodrigues

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=20160122120444.GD6033@dastard \
    --to=david@fromorbit.com \
    --cc=jack@suse.cz \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=rgoldwyn@suse.de \
    /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