From: "BuraphaLinux Server" <buraphalinuxserver@gmail.com>
To: "Kyle Moffett" <mrmacman_g4@mac.com>
Cc: "LKML Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: The ext3 way of journalling
Date: Wed, 9 Jan 2008 15:00:46 +0700 [thread overview]
Message-ID: <5d75f4610801090000j20eb7c07m78a07abbffe590ba@mail.gmail.com> (raw)
In-Reply-To: <8DEA7347-120C-4A97-A208-2577ED88F799@mac.com>
The help for CONFIG_DM_SNAPSHOT says it is EXPERIMENTAL (in
2.6.23.12). So this would mean that there is very high risk of
software failure using snapshots. Would you want to do that for your
fsck?
On 1/9/08, Kyle Moffett <mrmacman_g4@mac.com> wrote:
> On Jan 08, 2008, at 15:51:53, Andi Kleen wrote:
> > Theodore Tso <tytso@mit.edu> writes:
> >> Now, there are good reasons for doing periodic checks every N
> >> mounts and after M months. And it has to do with PC class
> >> hardware. (Ted's aphorism: "PC class hardware is cr*p").
> >
> > If these reasons are good ones (some skepticism here) then the
> > correct way to really handle this would be to do regular background
> > scrubbing during runtime; ideally with metadata checksums so that
> > you can actually detect all corruption.
>
> Poor man's background scrubbing:
>
> (A) Use LVM like virtually all modern distros offer
> (B) Leave some extra space in your LVM volume group (enough for 1
> snapshot over the time it takes to do an FSCK).
> (C) Periodically run the following scriptlet:
>
> set -e
> START="$(date +'%Y%m%d%H%M%S')"
> lvcreate -s -n "${VOLUME}-snap" "${VG}/${VOLUME}"
> if nice +20 fsck -fy "/dev/mapper/${VG}_${VOLUME}-snap"; then
> echo 'Background scrubbing succeeded!'
> tune2fs -T "${START}" "/dev/mapper/${VG}_${VOLUME}"
> else
> echo 'Background scrubbing failed! Reboot to fsck soon!'
> tune2fs -C 16383 -T "19000101" "/dev/mapper/${VG}_${VOLUME}"
> fi
> lvremove "${VG}/${VOLUME}-snap"
>
> Basically you can fsck the offline snapshot in the background. If it
> succeeds you can adjust the "last checked" date to the time when the
> snapshot was taken and if it fails you can schedule an FSCK at next
> reboot (and possibly remount the filesystem read-only or reboot
> immediately).
>
> You can do the same thing for your /boot volume, although you
> probably have to manually use dmsetup since most bootloaders can't
> interpret LVM volumes.
>
> I've always been surprised that distros like RedHat which
> automatically use LVM don't stuff this in their weekly or monthly
> checks on desktop systems. User experience could also be
> dramatically improved with automated smartd configuration and user-
> interactive logging and warning messages.
>
>
> > But since fsck is so slow and disks are so big this whole thing is
> > a ticking time bomb now. e.g. it is not uncommon to require tens of
> > minutes or even hours of fsck time and some server that reboots
> > only every few months will eat that when it happens to reboot. This
> > means you get a quite long downtime.
>
> My servers all have an "interval-between-checks" of 2-6 weeks and are
> configured to run nice +20 background "fsck" checks during off-hours
> between once every few days and once every few weeks. I also have
> the "max mount count" numbers set to primes between 7 and 37
> (depending on the filesystem) so that troubled or frequently-rebooted
> systems are more frequently verified. The end result is that I
> almost never have the dreaded 4-hour-fsck-on-boot problem. A drive
> has certainly been fscked within the last few weeks of operation, and
> I will only ever have multiple large filesystems all fscked at the
> same time very rarely (gcd of their max-mount-counts).
>
> Cheers,
> Kyle Moffett
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2008-01-09 8:00 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 16:07 Tuomo Valkonen
2008-01-08 16:35 ` Jan Engelhardt
2008-01-08 16:52 ` Tuomo Valkonen
2008-01-08 17:18 ` Jan Engelhardt
2008-01-08 17:48 ` Tuomo Valkonen
2008-01-08 18:20 ` Jan Engelhardt
2008-01-08 18:32 ` Diego Calleja
2008-01-08 18:42 ` Tuomo Valkonen
2008-01-08 16:39 ` John Stoffel
2008-01-08 16:59 ` Tuomo Valkonen
2008-01-08 21:49 ` John Stoffel
2008-01-09 13:39 ` Mathieu SEGAUD
2008-01-09 14:16 ` Tuomo Valkonen
2008-01-10 13:16 ` Theodore Tso
2008-01-10 13:41 ` Tuomo Valkonen
2008-01-12 15:06 ` Theodore Tso
2008-01-12 19:24 ` Andrey Vul
2008-01-13 22:13 ` Tuomo Valkonen
2008-01-13 22:23 ` Tuomo Valkonen
2008-01-13 23:11 ` Theodore Tso
2008-01-14 7:15 ` Tuomo Valkonen
2008-01-14 9:42 ` Bernd Petrovitsch
2008-01-14 9:48 ` Tuomo Valkonen
2008-01-14 9:57 ` Bernd Petrovitsch
2008-01-14 10:44 ` Christer Weinigel
2008-01-14 11:11 ` Tuomo Valkonen
2008-01-14 11:18 ` Bernd Petrovitsch
2008-01-14 11:27 ` Tuomo Valkonen
2008-01-14 10:06 ` Krzysztof Halasa
2008-01-14 11:03 ` Tuomo Valkonen
2008-01-14 12:46 ` Krzysztof Halasa
2008-01-14 16:18 ` Lennart Sorensen
2008-01-14 23:13 ` Alejandro Riveira Fernández
2008-01-15 16:31 ` Lennart Sorensen
2008-01-15 1:09 ` Krzysztof Halasa
2008-01-15 16:32 ` Lennart Sorensen
2008-01-14 16:10 ` me
2008-01-14 16:17 ` Tuomo Valkonen
2008-01-14 22:39 ` John Hubbard
2008-01-14 0:36 ` Bernd Eckenfels
2008-01-08 16:48 ` Andre Noll
2008-01-08 17:52 ` Tuomo Valkonen
2008-01-08 18:07 ` Masoud Sharbiani "مسعود شربیانی"
2008-01-08 18:16 ` Tuomo Valkonen
2008-01-08 18:22 ` Alan Cox
2008-01-08 18:11 ` Jan Engelhardt
2008-01-08 18:20 ` Tuomo Valkonen
2008-01-08 18:29 ` Andre Noll
2008-01-08 18:40 ` Tuomo Valkonen
2008-01-08 18:47 ` Alan Cox
2008-01-08 23:06 ` Matthias Schniedermeyer
2008-01-09 7:56 ` Tuomo Valkonen
2008-01-09 10:21 ` Matthias Schniedermeyer
2008-01-09 10:28 ` Matthias Schniedermeyer
2008-01-09 12:30 ` Theodore Tso
2008-01-10 11:30 ` Helge Hafting
2008-01-10 14:02 ` Lennart Sorensen
2008-01-10 14:41 ` Matthias Schniedermeyer
2008-01-09 2:05 ` Bernd Petrovitsch
2008-01-08 16:53 ` Andi Kleen
2008-01-08 17:01 ` Tuomo Valkonen
2008-01-08 18:15 ` Theodore Tso
2008-01-08 20:51 ` Andi Kleen
2008-01-08 21:03 ` Ondrej Zary
2008-01-08 21:57 ` Theodore Tso
2008-01-09 3:21 ` Kyle Moffett
2008-01-09 7:55 ` Valdis.Kletnieks
2008-01-09 12:49 ` Theodore Tso
2008-01-09 8:00 ` BuraphaLinux Server [this message]
2008-01-09 8:21 ` Valdis.Kletnieks
2008-01-09 9:54 ` Martin Schwidefsky
2008-01-09 12:25 ` Theodore Tso
2008-01-09 12:44 ` Michal Schmidt
2008-01-09 13:53 ` Martin Schwidefsky
2008-01-09 19:47 ` Martin Schwidefsky
2008-01-08 21:32 ` Pavel Machek
2008-02-08 4:16 ` Rogelio Serrano
[not found] <9JpbI-5yi-9@gated-at.bofh.it>
[not found] ` <9JpEP-6df-25@gated-at.bofh.it>
[not found] ` <9JpYc-6Eb-13@gated-at.bofh.it>
[not found] ` <9Jqhr-7l9-13@gated-at.bofh.it>
[not found] ` <9JqKt-7Z5-9@gated-at.bofh.it>
2008-01-08 22:24 ` Bodo Eggert
[not found] ` <9Jqri-7ym-17@gated-at.bofh.it>
[not found] ` <9JqUn-8bF-15@gated-at.bofh.it>
[not found] ` <9JvKj-85h-41@gated-at.bofh.it>
2008-01-11 16:22 ` Bodo Eggert
2008-01-11 18:39 ` Lennart Sorensen
2008-01-12 1:41 ` Bodo Eggert
2008-01-12 7:10 ` TimC
2008-01-12 10:08 ` Matthias Schniedermeyer
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=5d75f4610801090000j20eb7c07m78a07abbffe590ba@mail.gmail.com \
--to=buraphalinuxserver@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mrmacman_g4@mac.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
all inboxes | Powered by JetHome®