fsck, raid reconstruction & bad bad 2.4.3
Hi,
I want to report a trio of raid-related problems. The third one is very serious, and effectively prevents 2.4.3 from being usable (by me).
First problem: In kernel-2.4.2 and earlier, if the machine is not cleanly shut down, then upon reboot, RAID reconstruction is automatically started. (For RAID-1, this more-or-less ammounts to copying the entire contents
of one disk partition on one disk to another). The reconstruction
code seems to be clever: it will try to use the full bandwidth when the system is idle, and it will throttle back when busy. It will only throttle back so far: it tries to maintain at least a minimum amount of work going, in order to gaurentee forward progress even on a busy system.
The problem: this dramatically slows fsck after an unclean shut-down. You can hear the drives machine-gunning. I haven't stop-watch timed it, but its on the order of 5x slower to fsck a raid partition when there's reconstruction going on, then when the raid thinks its clean. This makes unclean reboots quite painful.
(There is no config file to disable/alter this .. no work-around that I know of ..)
--------
The second problem: oparallelizing fsck doesn't realize that different /dev/md raid volumes are on the same physical disks, and thus tries
to parallelize .... again slowing things down. There is a work-around,
modify /etc/fstab to set the rder of fsck's. However, I doubt the HOWTO really gets into this .... it would be nice to get fsck to 'do the right thing'.
----------
Third problem:
I just tried boot 2.4.3 today. (after an unclean shutdown) fsck runs at a crawl on my RAID-1 volume. It would take all day (!! literally) to fsck. The disk-drive activity light flashes about once a second, maybe once every two seconds. (with a corresponding click from the drive).
On 2.4.2 kernels, the disk activity light is constantly on... and the fsck proceeds apace.
Whatever it is that changed in 2.4.3, it makes unclean reboots impossible ...
--linas
Re: fsck, raid reconstruction & bad bad 2.4.3 + some numbers
Linas Vepstas <[email protected]> �crit :
[...]
Quoted 3 lines
I want to report a trio of raid-related problems. The third one is very serious, and effectively prevents 2.4.3 from being usable (by me).
[...]
Quoted 5 lines
The problem: this dramatically slows fsck after an unclean shut-down. You can hear the drives machine-gunning. I haven't stop-watch timed it, but its on the order of 5x slower to fsck a raid partition when there's reconstruction going on, then when the raid thinks its clean. This makes unclean reboots quite painful.
Here 2.4.3 takes 15-20 minutes to fsck a 45 Go RAID1 fs after an unclean shutdown (init=/bin/sh + raid1 autodetect = *boom*). The whole reconstruction takes an hour (but system is in use).
The disks are IBM-DTLA-307045 on two differents ports of a PIIX4. The machines includes two 9Go on a 53c875 that perform equally well (tough a bit noisy during normal startup).
[2.4.3 experience]
Quoted 2 lines
Whatever it is that changed in 2.4.3, it makes unclean reboots impossible ...
What does the swap says during the fsck ?
Signature · 1 line
Ueimor
Hi Linas Vepstas,
(nice name ;-)
Quoted 9 lines
First problem: In kernel-2.4.2 and earlier, if the machine is not cleanly shut down, then upon reboot, RAID reconstruction is automatically started. (For RAID-1, this more-or-less ammounts to copying the entire contents
of one disk partition on one disk to another). The reconstruction
code seems to be clever: it will try to use the full bandwidth when the system is idle, and it will throttle back when busy. It will only throttle back so far: it tries to maintain at least a minimum amount of work going, in order to gaurentee forward progress even on a busy system.
Quoted 8 lines
The problem: this dramatically slows fsck after an unclean shut-down. You can hear the drives machine-gunning. I haven't stop-watch timed it, but its on the order of 5x slower to fsck a raid partition when there's reconstruction going on, then when the raid thinks its clean. This makes unclean reboots quite painful.
(There is no config file to disable/alter this .. no work-around that I know of ..)
One possible 'work-around' is to use a journaling filesystem (like reiserfs) which eliminates the fsck after a unclean shutdown. It's very nice to have a crashed system back online fast. The raid sync makes the system a bit slow, but as you said, it syncs at full speed when idle, and is nice when less idle. :-)
Ookhoi