Thread View: news.software.nntp
5 messages
5 total messages
Started by Jaye Mathisen
Wed, 27 Sep 2000 03:48
Minor diablo sniglet.
Author: Jaye Mathisen
Date: Wed, 27 Sep 2000 03:48
Date: Wed, 27 Sep 2000 03:48
13 lines
1576 bytes
1576 bytes
I don't automount my spool partition, preferring to let my system come up, and after it's up, a script fires off that fsck's the news partition, and mounts it, then starts diablo. Works fine, except that one time the filesystem was not fsck'able, so it didn't mount. However, cron merrily fires off dspoolout, which fires off dnewslinks, which then merrily deletes my batch files, w/o sending any news... I do not know what the right fix is, but it sure made a mess. Anyway to regenerate these dnewslink outgoing batch files from the spool dir?
Re: Minor diablo sniglet.
Author: Joe Greco
Date: Wed, 27 Sep 2000 00:00
Date: Wed, 27 Sep 2000 00:00
25 lines
1825 bytes
1825 bytes
In news.software.nntp article <8qrqm7$1gv7$1@newsfeed-inn2.meganews.com>, mrcpu@apocalypse.cdsnet.net (Jaye Mathisen) wrote: : :I don't automount my spool partition, preferring to let my system come up, :and after it's up, a script fires off that fsck's the news partition, and mounts :it, then starts diablo. : :Works fine, except that one time the filesystem was not fsck'able, so it didn't mount. : :However, cron merrily fires off dspoolout, which fires off dnewslinks, which :then merrily deletes my batch files, w/o sending any news... : :I do not know what the right fix is, but it sure made a mess. Anyway to regenerate these :dnewslink outgoing batch files from the spool dir? I do something a bit similar. I have an rc.d script which basically does a "fsck -p || fsck -y || fsck -y" on my news filesystems. If all complete successfully, then it mounts them and away you go. The trick here is the phrase "if all complete". My /news (containing dbin, dhistory, dqueue, etc) is NOT mounted if the news filesystems are not found to be OK. ... JG
Re: Minor diablo sniglet.
Author: Russell Vincent
Date: Sat, 30 Sep 2000 00:00
Date: Sat, 30 Sep 2000 00:00
39 lines
2470 bytes
2470 bytes
Sameh Ghane <sw@fr.clara.net> wrote: > Regenerating outgoing sequence batch files would also be great to permit > re-feeding a spool to a reader for example, which missed some articles. I sent email to the original author (which hasn't got through yet), but seeing as not many people are are of this ability ... You don't say what version of Diablo you are using, but if you are using diablo-2.3 then have a look at 'diloadfromspool -a -Q | drequeue'. In place of '-a' you can specify a list of spool directories that need adding if you don't want to add the entire spool. You can also add a dnewsfeeds label as a parameter to drequeue to only requeue that label. The option isn't documented very well because it is still a little rough, but it worked for me once. It also doesn't do some of the newsfeed options (like nospam, etc). > entry. This way, diablo will prepare an outgoing sequence batch file, > and maintain it, which you can cut when you've got such a problem, and > append to an existent outgoing file (with an dnntpspool.ctl entry) when > needed. You'll have to rotate it more or less often, to avoid this file > getting bigger and bigger. Not tested. Or you could just save queue files into a different directory. e.g: label backup/feedname addgroup * ... end Make sure "backup/" exists and off you go, If you lose your queue entries or need to resend for some reason, just copy the files to another directory, create a dummy dnntpspool.ctl entry and start dspoolout on it. -Russell
Re: Minor diablo sniglet.
Author: Sameh Ghane
Date: Sat, 30 Sep 2000 00:00
Date: Sat, 30 Sep 2000 00:00
33 lines
2426 bytes
2426 bytes
Jaye Mathisen disait (said) sur (on) news.software.nntp : > > I don't automount my spool partition, preferring to let my system come up, > and after it's up, a script fires off that fsck's the news partition, and mounts > it, then starts diablo. > > Works fine, except that one time the filesystem was not fsck'able, so it didn't mount. Yes, that's why fscking at boot time drops you in single user mode... > However, cron merrily fires off dspoolout, which fires off dnewslinks, which > then merrily deletes my batch files, w/o sending any news... > > I do not know what the right fix is, but it sure made a mess. Anyway to regenerate these > dnewslink outgoing batch files from the spool dir? First, I don't understand how dspoolout can delete your batch files, as your news partition is not mounted... You seem to have 2 partitions for the news, one for the spool, which one was not mounted, don't you ? Regenerating outgoing sequence batch files would also be great to permit re-feeding a spool to a reader for example, which missed some articles. As the file format is a bit difficult to regenerate (it indicates the position in each spool file an article is located, as it seems), the best idea could be to keep a dnewsfeeds entry, without dnntpspool.ctl entry. This way, diablo will prepare an outgoing sequence batch file, and maintain it, which you can cut when you've got such a problem, and append to an existent outgoing file (with an dnntpspool.ctl entry) when needed. You'll have to rotate it more or less often, to avoid this file getting bigger and bigger. Not tested.
Re: Minor diablo sniglet.
Author: Jaye Mathisen
Date: Sun, 01 Oct 2000 00:00
Date: Sun, 01 Oct 2000 00:00
39 lines
2643 bytes
2643 bytes
In article <slrn8tbnki.a6v.sw@arrakis.noc.fr.clara.net>, Sameh Ghane <sw@fr.clara.net> wrote: >Jaye Mathisen disait (said) sur (on) news.software.nntp : >> >> I don't automount my spool partition, preferring to let my system come up, >> and after it's up, a script fires off that fsck's the news partition, and mounts >> it, then starts diablo. >> >> Works fine, except that one time the filesystem was not fsck'able, so it didn't mount. > >Yes, that's why fscking at boot time drops you in single user mode... Yeah, which means I have to be on the console, rather than just ssh'ing in remotely. IN any case, whether or not you agree with doing it over the net vs boot time, is a topic I could not care less about. >> I do not know what the right fix is, but it sure made a mess. Anyway to regenerate these >> dnewslink outgoing batch files from the spool dir? > >First, I don't understand how dspoolout can delete your batch files, as >your news partition is not mounted... You seem to have 2 partitions for >the news, one for the spool, which one was not mounted, don't you ? I didn't say my news partition wasn't mounted, I said the *spool* wasn't mounted. /news is 1 partition, /news/spool/news is a different set of drives. SO it's real easy to have /news/dqueue available, but the requisite spool files unavailable. IN any case, the long term solution was to remove the crontab on bootup, fsck -p || fsck -y the spool partition, then mount it, fire off diablo, and submit the crontab. And thanks to Russell for the diloadfromspool/drequeue stuff. I was reading the code thinking that it would do what I needed, but hadn't made it any further than that. Of course, by now, the original spool files are gone anyway at 150GB of news/day, so it's really a nonissue now.
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