Hour-long e2fsck?
1. Partition your disk -- root, /var, /usr, /home on different filesystems.
2. If you ever do enable the automatic checks, set the mounts-before-check count on
each filesystem to be a different prime number. That way multiple filesystems almost
never get checked at the same time.
I've never had an fsck on a non-server system (which seems to be the topic here) go
anywhere near an hour. Maybe five minutes at most.
In my experience, badblocks is far far slower than e2fsck.
And running anything automatically at 3am generally isn't an option on
conference-presentation laptops.
Posted Jan 18, 2008 14:56 UTC (Fri) by fatrat (subscriber, #1518)
[Link]
Not sure that partitions help here. If we are taking personal box/laptop /home is the only
thing I care about and it'll have all the disk space as well.
ext3 metaclustering
Posted Jan 18, 2008 15:06 UTC (Fri) by rfunk (subscriber, #4054)
[Link]
OK, then you won't mind if I rm -rf /usr on your machine. :-)
Try: du -shc /var /usr /home
(There's also the root stuff not in those, but it's harder to measure that.)
You may be surprised at how much is in /var and /usr.
ext3 metaclustering
Posted Jan 18, 2008 15:19 UTC (Fri) by fatrat (subscriber, #1518)
[Link]
My home dir contains ~82 Gb. Compared to that, /usr and /var don't contain a lot (under 10gb).
I'm sure most people are similar, hence my comment.
ext3 metaclustering
Posted Jan 18, 2008 15:45 UTC (Fri) by rfunk (subscriber, #4054)
[Link]
10GB is still a big important chunk of disk, whether the rest is 20GB or 82GB. Checking
it separately *will* speed up each check, and separating it into a separate filesystem will
make sure that errors on one part won't mess up the other part.
(Come to think of it, I suspect that the fsck speed is more dependent on number of files
than data size, though I don't know for sure.)
ext3 metaclustering
Posted Jan 19, 2008 22:22 UTC (Sat) by Frej (subscriber, #4165)
[Link]
Partitioning is fixing the symptoms, not the problem.
Multiple fscks
Posted Jan 30, 2008 3:28 UTC (Wed) by Max.Hyre (subscriber, #1054)
[Link]
[S]et the mounts-before-check count on
each filesystem to be a different prime number. That way multiple filesystems almost
never get checked at the same time.
Even better is setting the mounts/count to the same number on all filesystems, then use tunefs to set the starting count to a different value on each.