Re: prevent fs check after being up for a long time
- From: Tom <tomNOSPAM@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Feb 2006 11:04:19 +0000
I had to reboot a server today that has been up for about 300 days
Why did it need a reboot?
It shutdown was clean and so i would expect the reboot to be pretty quick.
Issue was that i was told that as a particular filesystem has not been
fs checked for 200 and something days it was going to check it. This
filesystem is a couple of terrabytes and took ages!
The normal philosophy is to assume that there will be something go wrong
after such a long time. If you are not maintaining the system - keeping
the critical stuff up to date, this is really a good idea.
Is there anyway to stop this from happenning?
Several ways. If you feel that the check isn't going to be needed, you
can use a tool to turn off the check. An example would be tune2fs - see
the man page. Another solution when you are going to reboot the system
would be to touch a file named '/fastboot' which rc.sysinit looks for to
bypass the file checks.
A better solution would be to periodically (during slack periods of use)
remount the file system 'read-only' and do a quicky fsck. If nothing is
discovered, remount 'read-write' and you're home free. If it does find a
problem, have it mail you so that you can schedule a repair. This solution
does require some thinking, and a lot depends on how your file system is
arranged. DO NOT CHECK A FILE SYSTEM THAT IS MOUNTED READ-WRITE. Ideally,
the filesystem should be unmounted, though this is often a problem.
The best solution is to schedule maintenance. You don't mention a release,
but 300 days says at least FC3, and it's had a least two kernel errata in
those 300 days. Even the virtually unsupported RH9 has had two kernel errata
in the same period.
thanks for the tips - i will investigate what you suggested. However to answer your main question regarding why this needed a reboot i had to remove a SCSI tape drive from the back of the box and so had to halt it to do it. This is a LAN based fileserver and is not internet connected and so i'm not that urgent about applying kernel updates to it. Its a fileserver basically and nothing else so there is no user access so local root exploits also so not really apply.
thanks for the tuning tips i'll take a look at them
.
- References:
- prevent fs check after being up for a long time
- From: Tom
- Re: prevent fs check after being up for a long time
- From: Moe Trin
- prevent fs check after being up for a long time
- Prev by Date: CentOS 4.2 PS/2 mouse not working
- Next by Date: Re: How to download official rhes4 updates rpm's
- Previous by thread: Re: prevent fs check after being up for a long time
- Next by thread: How to download official rhes4 updates rpm's
- Index(es):
Relevant Pages
|
|