Article View: news.software.nntp
Article #28055Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
From: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
78 lines
4580 bytes
4580 bytes
In article <6it2m3$f15$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <6isp36$rm2$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote: >:>3. I am getting a LOT of lines in my log of the form: >:> >:> 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604 >:> 00:46:27 01:10:18 4 article batch corrupted: /news/spool/news/D.00e37bd2/B.006e @ 70515,1459 >:> 04:02:05 05:54:16 4 article batch corrupted: /news/spool/news/D.00e3781c/B.3197 @ 22416,1020 >:> 02:01:24 02:09:33 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 40408,1713 >:> 02:01:17 02:09:22 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 38688,1719 >:> 02:01:16 02:08:53 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 36991,1696 >:> >:> This doesn't look good. >:> >:>Ideas? > > This is a more serious problem. Did you by chance do an rm -rf > of your D. directories? If so, don't! You must use dexpire. The > problem is that if you simply remove the directories, diablo may > re-create them and re-create previously-existant files, causing > it to reuse ID's and article offsets in the history file. > > If your outgoing feed then tries to dump an article using an > obsolete offset, it will think it's a valid offset because > the data file was deleted and then recreated. > > However, dnewslink has a failsafe - it looks for an out-of-band > NUL terminator in the diablo data file at the expected offset+articlesize > seek position, and if it doesn't find it it generates the above message. > This is to prevent dnewslink from actually propogating the corrupted > article to another host. > > Diablo must also be able to use record locks on /news/spool/* (as it > requires record locks on just about every file it accesses). Otherwise > you might wind up with several diablo processes writing to the same > spool file. But I don't think that's your problem. > > -Matt No, I don't touch the spool directory directly; dexpire does all of it. What I'm seeing is blocks of 0x00s in the files once in a while. dnewslink throws up on this, as it should, because it sees an offset that shouldn't be there. And yes, the data involved is DEFINITELY corrupted (the 0x00s are in place of the legitimate start of an article). This is really, seriously bad stuff - and I don't have the foggiest idea of what is causing it. I've never seen anything like this one before, and I've got a lot of systems running kernels contemporary to this one in other applications (believe me, this kind of problem would have been found a long time ago around here!) Its also not a multiple of 512 bytes (block size) when it happens - which leads me to believe that something is screwy either with the I/O system (which would be really odd, as I'd expect to see trouble with a whole lot of things if that was true) or worse, with the ccd driver itself (which could explain it). Basically, it looks like an lseek() is being done beyond the end of the file, and then data being written but not at the start of the buffer (ie: you lseek to the intended place, but the first write(2) is being ignored but the file pointer is moved). Odd stuff, and very, very sporadic. Attempts to replicate this using what diablo appears to be using as its operational paradigm abstracted into a 50-line "C" program have failed. Yes, the disks involved are local, etc etc etc. -- -- Karl Denninger (karl@MCS.Net)| MCSNet - Serving Chicagoland and Wisconsin http://www.mcs.net/ | T1's from $600 monthly / All Lines K56Flex/DOV | NEW! Corporate ISDN Prices dropped by up to 50%! Voice: [+1 312 803-MCS1 x219]| EXCLUSIVE NEW FEATURE ON ALL PERSONAL ACCOUNTS Fax: [+1 312 803-4929] | *SPAMBLOCK* Technology now included at no cost
Technical Details
Message-ID:
<6it3j2$1q2$1@Mars.mcs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6isp36$rm2$1@Mars.mcs.net> <6it2m3$f15$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <6it3j2$1q2$1@Mars.mcs.net> Subject: Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th) Date: Thu, 07 May 1998 00:00:00 +0000 From: karl@MCS.COM (Karl Denninger) References: <6isp36$rm2$1@Mars.mcs.net> <6it2m3$f15$1@flea.best.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 351205855 Distribution: inet Organization: /usr/lib/news/organi[sz]ation Newsgroups: news.software.nntp