🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Geoffrey Dann Mon, 18 Aug 1997 00:00
/var becomes readonly when receiving news feed
#20617
Author: Geoffrey Dann
Date: Mon, 18 Aug 1997 00:00
63 lines
3163 bytes
I have Redhat Linux v 2.0.27 running on a generic Pentium 133 box with
16 MB RAM and a 2.5 GB IDE drive.  I set it up last December and it's
been running mostly WWW server stuff with a light load.  
Two weeks ago I set up the INND that came with the Linux distribution. 
Three times, I think when my newsfeed was sending, my system has stopped
receiving articles, cron has started issuing messages that it can't
write its log file (which it wants to do every two minutes). 
Apparently, the /var partition has become read-only.  Reboot won't work,
I suppose because reboot wants to write to the logs.  The only fix I've
found is to hit the reset button, then manually run fsck to clean up the
garbage.  

The messages on the console this morning were the following 3 lines
repeated every few minutes:

/var/log/cron:  no space left on device
CROND:  can't write to log file
root (08/18 09:43:00-20946) CMD ([ -x /usr/sbin/atrun ] &&
/usr/sbin/atrun )

Tail of /var/log/messages showed the last line to be:
Aug 18 08:51:30 otsego kernel: hda: read_intr: Status=0x59 {DriveReady
SeekComplete DataRequest Error }

Tail of /var/log/newslog (non-standard, but I put the news stuff there
instead of in messages) has a last line of:
Aug 18 08:24:13 innd: poisson.nosc.mil connected 18

I hit the reset button and watched it reboot.  The end of the sequence
included fsck messages:

hda: read_intr: status=0x59 {DriveReady SeekComplete DataRequest Error }
hda: read_intr: errror=0x40 {Uncorrectable Error }, LBAsect=3731168,
sector=1900577
end_request: I/O error, dev 03:06, sector 1900577
Error reading block 950288 (Attempt to read block from filesystem
resulted in short read) while doing inode scan.  
/dev/hda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 
(Repair filesystem)#

at which prompt I typed fsck /dev/hda6
On pass 1, fsck reported the same as the first 3 lines as above, plus
the same messages but with LBAsect=3763965, sector=1933374,
block=966687.
Pass 2 showed one error, an unused inode in flight-simulator (which I
don't care about), but otherwise fsck ended ok.  I typed "reboot" again,
and the system came up ok.  

Any hints?  Do I need to somehow edit the bad block list, or replace my
disk?  Is there a book or faq I should read on this?  Is there a known
bug in the kernel or in INND that I should get a patch for?  

Thanks..
				geoff
  

-- 
Geoffrey Dann		 805-982-1366 (voice)
geoff@nfesc.navy.mil     805-983-5388 (fax - shared)
Naval Facilities Engineering Service Center, Port Hueneme CA USA 93043

Re: /var becomes readonly when receiving news feed
#20657
Author: Frank Sweetser
Date: Tue, 19 Aug 1997 00:00
38 lines
2348 bytes
Geoffrey Dann <geoff@nfesc.navy.mil> writes:

> hda: read_intr: status=0x59 {DriveReady SeekComplete DataRequest Error }
> hda: read_intr: errror=0x40 {Uncorrectable Error }, LBAsect=3731168,
> sector=1900577
> end_request: I/O error, dev 03:06, sector 1900577
> Error reading block 950288 (Attempt to read block from filesystem
> resulted in short read) while doing inode scan.  
> /dev/hda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 
> (Repair filesystem)#
> 
> at which prompt I typed fsck /dev/hda6
> On pass 1, fsck reported the same as the first 3 lines as above, plus
> the same messages but with LBAsect=3763965, sector=1933374,
> block=966687.
> Pass 2 showed one error, an unused inode in flight-simulator (which I
> don't care about), but otherwise fsck ended ok.  I typed "reboot" again,
> and the system came up ok.  
> 
> Any hints?  Do I need to somehow edit the bad block list, or replace my
> disk?  Is there a book or faq I should read on this?  Is there a known
> bug in the kernel or in INND that I should get a patch for?  

This is standard behavior.  When the kernel encounters certain fs errors,
the default action is to remount that filesystem read-only.  You can also
have it continue, or reboot, I believe.

However, in this case, those types or eror messages usually mean that the
drive is dying.  I'd get a new one, asap, if I were you...

-- 
Windows: I can play Doom!              |RedHat Linux 2.0.31pre-5 i486
Linux: I can be a file server, be a Web|Because reboots are for upgrades!
server, run the accounting package with|http://www.wpi.edu/~rasmusin/pgp.html
twelve terminals AND play Doom!        |for pgp key.        frank sweetser

Re: /var becomes readonly when receiving news feed
#20738
Author: Olaf Mertens
Date: Wed, 20 Aug 1997 00:00
80 lines
3874 bytes
On 19 Aug 1997 14:09:10 -0400, Frank Sweetser wrote:
>Geoffrey Dann <geoff@nfesc.navy.mil> writes:
>
>> hda: read_intr: status=0x59 {DriveReady SeekComplete DataRequest Error }
>> hda: read_intr: errror=0x40 {Uncorrectable Error }, LBAsect=3731168,
>> sector=1900577
>> end_request: I/O error, dev 03:06, sector 1900577
>> Error reading block 950288 (Attempt to read block from filesystem
>> resulted in short read) while doing inode scan.  
>> /dev/hda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 
>> (Repair filesystem)#
>> 
>> at which prompt I typed fsck /dev/hda6
>> On pass 1, fsck reported the same as the first 3 lines as above, plus
>> the same messages but with LBAsect=3763965, sector=1933374,
>> block=966687.
>> Pass 2 showed one error, an unused inode in flight-simulator (which I
>> don't care about), but otherwise fsck ended ok.  I typed "reboot" again,
>> and the system came up ok.  
>> 
>> Any hints?  Do I need to somehow edit the bad block list, or replace my
>> disk?  Is there a book or faq I should read on this?  Is there a known
>> bug in the kernel or in INND that I should get a patch for?  
>
>This is standard behavior.  When the kernel encounters certain fs errors,
>the default action is to remount that filesystem read-only.  You can also
>have it continue, or reboot, I believe.
>
>However, in this case, those types or eror messages usually mean that the
>drive is dying.  I'd get a new one, asap, if I were you...
>

Hey!
I got exactly the same problem with Redhat 4.0. I'm glad, that I'm not
the only one with this strange thing.

In my case this problem was initiated by a daily cron job that
performed some updates of the locate-database and other little
standard actions. Suddenly the system load went up and the
/var-partition was read-only. That resulted in an unusable system.

This cron job was configured to start at 2 a.m. Normally I don't stay
up that late and switch off my computer, so this cron job wasn't
started for 6 months. I didn't even know that cron was configured this
way. 

The problems started when I finished my master thesis (I had to work
all night :)
I nearly got mad that my Linux-system crashed when I needed it most.

First I replaced the /var-partition with another one on a different
drive, but the problem wasn't solved. When the cron job started, the
system got slower and died and /var became read-only.

Finally I solved my problems by disabling the cron daemon. I didn't
need it anyway.

I don't believe that this was an hardware error. 
I don't know if it's possible, but I think that the logging messages
of cron were appended to /var/log/cron (?) in some ugly ways that
screwed up the file system. I'm sure that something was wrong with
cron, because I had no problems when executing the cron jobs
manually. 

Now I'm running Redhat 4.2 without any problems. 
But to be on the save side I disabled cron right after its
installation. 

Olaf

-- 
------------------------------------------------
Olaf Mertens

Email: olafbahg@linux.zrz.tu-berlin.de
Telefon (privat): (030) 9715344
------------------------------------------------

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads