Re: [RFD] Incremental fsck

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan <alan@...>
Cc: Al Boldi <a1426z@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Wednesday, January 9, 2008 - 5:16 am

Andi Kleen wrote:

While an _incremental_ fsck isn't so easy for existing filesystem types,
what is pretty easy to automate is making a read-only snapshot of a
filesystem via LVM/DM and then running e2fsck against that.  The kernel
and filesystem have hooks to flush the changes from cache and make the
on-disk state consistent.

You can then set the the ext[234] superblock mount count and last check
time via tune2fs if all is well, or schedule an outage if there are
inconsistencies found.

There is a copy of this script at:
http://osdir.com/ml/linux.lvm.devel/2003-04/msg00001.html

Note that it might need some tweaks to run with DM/LVM2 commands/output,
but is mostly what is needed.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFD] Incremental fsck, Alan, (Tue Jan 8, 5:31 pm)
Re: [RFD] Incremental fsck, Andreas Dilger, (Wed Jan 9, 5:16 am)
Re: [RFD] Incremental fsck, Daniel Phillips, (Sat Jan 12, 7:55 pm)