[ale] Fwd: periodic fsck was Re: [patch] ext2/3: documentconditions when reliable operation is possible

Jeff Lightner jlightner at water.com
Tue Nov 10 09:39:00 EST 2009


If I'm reading the thread correctly the advice is to fsck the snapshot not the original.  You'd umount the original only to fsck it if the fsck of the snapshot revealed an issue.

As to fsck in single user - that can be done for everything but root.  However if you do a "shutdown -F" it forces the fsck to be done on reboot.

By the way RHEL still does the periodic check by default.  You can turn it on or off or change the frequency with the tune2fs.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Greg Freemyer
Sent: Tuesday, November 10, 2009 8:46 AM
To: Atlanta Linux Enthusiasts - Yes! We run Linux!
Subject: Re: [ale] Fwd: periodic fsck was Re: [patch] ext2/3: documentconditions when reliable operation is possible

On Tue, Nov 10, 2009 at 8:12 AM, Ed Cashin <ecashin at noserose.net> wrote:
> On Tue, Nov 10, 2009 at 7:55 AM, Rev. Johnny Healey <rev.null at gmail.com> wrote:
>> I believe the reason that you can't fsck a mounted fs is because of the
>> chance of writes during the fsck.  But when you make a snapshot, it doesn't
>> get mounted until you explicitely mount it somewhere.
>
> Yes, it should be just like running fsck on an unmounted filesystem after
> a power failure (no clean shutdown), if I understand correctly.

No.  Part of the lvm snapshot process is to tell the filesystem clean
up the journal etc.  It should be fully applied and empty at the time
of the snapshot.

> In that situation, you can get some errors reported for an otherwise healthy
> filesystem, just because it wasn't left in a 100% consistent state.
> If the power
> hadn't gone out, those inconsistencies would have been corrected in the
> following seconds.  With a snapshot, though, those same inconsistencies
> will appear, even though there's no persistent problem with the filesystem.
>
> So I would think that unless the fs was unmounted before the snapshot
> was taken, the
> admin wouldn't be able to tell between errors related to the fact that the
> snapshot was taken on a live filesystem and errors related to serious and
> persistent problems.

Ted Tso would know far more that you or I, so if he recommends it I
suspect it is a good plan.

The thread is at:

http://markmail.org/thread/2tu3brz74zuafxqm

The message at:

http://markmail.org/message/dn74kxsb7wigu643

Greg

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list