Friday 19 October 2007

Babylon Hiccups



Babylon is my Centos 5 server which streams music to my brace of squeezebox, but lately it has suffered from occassional hiccups and reboots unexpectedly, mostly when trying to stream Wogan (using the excellent AlienBBC).

Now I'm putting this down to a mildy damaged hard drive (suffering last year from a tempestuous fuse box turning it off and on frequently and at short notice), and usually running a file system check fixes the problem (for a while).

But I tend to run the server headless, and it's a faff hooking up a screen and keyboard just to hit 'Y' at the correct moment of the boot sequence

So is there a way to have the system forced to automatically fo the filesystem check every time it boots up ?
Yep -
echo "AUTOFSCK_TIMEOUT=5" > /etc/sysconfig/autofsck
echo "AUTOFSCK_DEF_CHECK=yes" >> /etc/sysconfig/autofsck

If a problem is encountered during the fsck, will the system automagically fix it?
No but it can get additional options from the /fsckoptions file, so (dangerous possibly as the entire filesystems may end up in lost+found!) :
echo "-p" >/fsckoptions

I'll give it a whirl...

0 comments: