🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32071

INN-2.1: CNFS+SM problems

#32071
From: Jose R. Cordones
Date: Fri, 09 Oct 1998 00:00
166 lines
7187 bytes
Oct  7 18:46:45 kiki.bway.net makehistory[28822]: CNFS-sm: file
'/var/spool/news/cycbuff/huge' does not exist, ignoring 'HUGE' cycbuff
Oct  7 18:46:45 kiki.bway.net makehistory[28822]: SM storage method
'cnfs' failed initialization
Oct  7 18:46:45 kiki.bway.net makehistory[28822]: SM one or more storage
methods failed initialization


Hello.

Recently I compiled INN 2.1, and upon reading about CNFS, was
immediately converted to it.

I had already upgraded my machine (Solaris 2.6) with the OS, more Memory
(224MB), more disk space (now a total of about 34GB), etc.  I had made
two of the disks into a Stripe, then with the third disk (roughly the
size of the sum of the other two), I made a Concat thus making the three
disks into a single metadevice, which I then made a filesystem on.  This
was during the time I was under the impression that I was going to build
a News Server with a Traditional article storage format.  I then made a
filesytem on top of said metadevice with a really small number of bytes
per inodes, about 1k bytes/inode, to compensate for the large number of
really short posts out there.  I did not bother, like other people, to
have yet another partition for larger posts, etc. since I just want a
single metadevice that will handle all of our news load, all along
load-balancing accesses across disks, etc. without me having to keep
track of which hierarchies are growing too much, etc.  Thus, that
brought me to CNFS.  I remade the filesystem, this time to have a very
large number of bytes/inode, since it was mostly going to have a single,
large file, i.e., the CNFS cycbuff.
Then, according to the instructions under inn-2.1/INSTALL, I did:
dd if=/dev/zero of=/var/spool/news/cycbuffs/huge, etc. etc. creating a
25 GB file called huge for the purpose.

# ls -l /var/spool/news/cycbuffs/huge
-rw-r--r--   1 news     news     26843545600 Oct  2 21:09
/var/spool/news/cycbuffs/huge

= 26214400 * 1k blocks. = 25GB
then according to instructions, I edited etc/inn.conf to have:
storageapi: true  # the INSTALL doc kinda contradicts man inn.conf
because on the man page, it's a true/false option, whereas under
inn-2.1/INSTALL, it is a yes/no option.  Perhaps they are equivalent,
but I tried both ways, anyway, to no avail.

To quote INSTALL:
  storageapi           Set to "yes" if articles should be stored using
the
                       Storage Manager API. You must set this to "no" if
you
                       are using the traditional article storage method
or
                       "yes" if you are using timehash or cnfs.  See the 
                       section "Choosing an Article Storage Format" for
more
                       information.
end of quote.
I also have,

cnfs:*:1:0:26214400:HUGEAREA
as my only non-commented out entry in etc/storage.ctl

and
cycbuff:HUGE:/var/spool/news/cycbuffs/huge:26214400
metacycbuff:HUGEAREA:HUGE
in etc/cycbuff.conf

Obviosuly, I'm trying to make a metacycbuff consisting of a single
cycbuff, which is not a raw device but instead is a single file that I
created on a sort-of load-balanced drive array.

Note that cycbuff.conf, too, is a bit confusing because it says:
# symbolic meta-cyclic buffer name is defined at storage.ctl like;
# cnfs:*:1:0:3999:SMALLAREA
# cnfs:*:2:4000:1000000:BIGAREA
end of quote.

so I used to wonder, do they mean that cnfs: entries should be on
storage.ctl, which I had, or that it should be in both places, which I
also tried in desperation.

Then, again following the instructions under inn-2.1/INSTALL, I touched
the file "newsfeeds"

ME:*,@alt.binaries.warez.*,!junk,!control*,!local*,!foo.*/world,usa,na,ne,ny,ny,\
nj,ct,pa,ma,gnu,inet,ddn,k12::


overview!:*:Tc,Ao,WhR,S30000:/usr/local/news/bin/overchan

myfeed.somewhere.net\
        ::\
        :Tf,Wnm:myfeed.somewhere.net

innfeed!:\
        !*,\
        :Tc,Wnm*,S30000:/usr/local/news/bin/startinnfeed -y


Because according to INSTALL:
  For cnfs or timehash storage method:

        overview!:*:Tc,Ao,WhR:/usr/local/news/bin/overchan

        innfeed!:\
                !*\
                :Tc,Wnm*,S16384:/usr/local/news/bin/startinnfeed -y

  Finally, you need to add entries for any actual sites to which you
will
end of quote.

I set entries under incoming.conf for my peer(s).
Having done all of that, downloaded active and newsgroups files from
ftp.isc.org, set the 27 suggested entries under overview.ctl, and
defined an expiration policy under expire.ctl, one is then told by the
install manual to do:
makehistory -i

at which point I get the error message:
Oct  7 18:46:45 newshost.somenet.com makehistory[28822]: CNFS-sm: file
'/var/spool/news/cycbuffs/huge' does not exist, ignoring 'HUGE' cycbuff
Oct  7 18:46:45 newshost.somenet.com makehistory[28822]: SM storage
method 'cnfs' failed initialization
Oct  7 18:46:45 newshost.somenet.com makehistory[28822]: SM one or more
storage methods failed initialization


Since that fails, I can't go in the process of getting a killer news
server up and running :-(

I have tried this stuff backwards, sideways, upside down.. to no avail.

It appears to me I'm only failing at the config for the cycbuffs and
metacycbuffs.  Can anyone help?

I have ruled out several obvious problems that others have had and
posted here:
spelling, spaces, etc. in the path to the cycbuff.  Note that with the
full filename quoted, there are no hidden spaces, etc. in what it is
expecting.
I have also ruled out a Solstice Disksuite problem, this stuff is
supposed to be transparent to any program using regular I/O to a file. 
Heck, it can even be transparent as a raw-device.

There may be a problem with a file so large, and next thing I'm going to
try is to have a whole bunch of 1GB cycbuffs all rolled into a single
metacycbuff.

Someone please help, I don't want to admit defeat and have to use the
regular storage format.. even one of my upstream feeds admitted having
been defeated by that problem and so they had to stay with an older
version of inn-2.1

As for why do the cycbuff as a file and not a raw device: it allows me
to play with the space, since the same disk array would host overview,
history, etc. databases, and I can also call upon that space for any
emergency, such as mirroring a CD for network use.

Please help, I have tried RTFM'ing!!

Regards,

Jose R. Cordones

Technical Details
Message-ID: <361E95E4.67F31C68@bway.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

Show Full Headers
Complete Article Headers
Message-ID: <361E95E4.67F31C68@bway.net>
Subject: INN-2.1: CNFS+SM problems
Date: Fri, 09 Oct 1998 00:00:00 +0000
From: "Jose R. Cordones" <cordones@bway.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: 399518135
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Trace: news14.ispnews.com 907974352 205.198.116.241 (Fri, 09 Oct 1998 19:05:52 EDT)
Organization: Bway.net
MIME-Version: 1.0
NNTP-Posting-Date: Fri, 09 Oct 1998 19:05:52 EDT
Newsgroups: news.software.nntp