🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Oswaldo E. Aguirre M. (REACCIUN) Tue, 02 Mar 1999 00:00
Problem with CNFS, cannot start INND, again ...
#35729
Author: Oswaldo E. Aguirre M. (REACCIUN)
Date: Tue, 02 Mar 1999 00:00
62 lines
2925 bytes
Hi everyone, this is my second posting ...  I'm using a ES450 with
Solaris 2.7,
I downloaded the inn 2.1 to test the cnfs storage api .... the innd
compiled fine,
no problems with it, I enabled the storageapi in the inn.conf, I created

two partitions:

c0t2d0s0 and c0t2d0s1, both were funtioning well,

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 - 1941        2.00GB    (1942/0/0) 4194720
  1 unassigned    wu    1942 - 3879        2.00GB    (1938/0/0) 4186080
  2     backup    wu       0 - 3879        4.00GB    (3880/0/0) 8380800
  3-7 unassigned    wm       0               0         (0/0/0)
0
....

I did newfs on both, then configured the conf files for the api:

cycbuff.conf:

cycbuff:ALTBUFF:/news/cycbuff/c0t2d0s0:1991304
cycbuff:OTHBUFF:/news/cycbuff/c0t2d0s1:1967248

metacycbuff:ALTAREA:ALTBUFF
metacycbuff:OTHAREA:OTHBUFF


storage.conf:
cnfs:alt.*:1:0:0:ALTAREA
cnfs:*:2:0:0:OTHAREA

but then I startup the innd with rc.news and it gets me this error in
the errlog:
Feb 10 13:38:46 innfeed[7137]: Storage manager initialization failed

and then the partitions are gone:

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  121      128.67MB    (122/0/0)   263520
  1       swap    wu     122 -  243      128.67MB    (122/0/0)   263520
  2     backup    wu       0 - 3879        4.00GB    (3880/0/0) 8380800
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6        usr    wm     244 - 3879        3.74GB    (3636/0/0) 7853760
  7 unassigned    wm       0               0         (0/0/0)          0

What am I doing wrong?
I would like to use the storage api as I seems to speed up the news
server .. but in this conditions I could not use it  .. If someone
could help me, it'd be very appreciated...

thanks in advance

-Oswaldo




Re: Problem with CNFS, cannot start INND, again ...
#35731
Author: hume.spamfilter
Date: Tue, 02 Mar 1999 00:00
28 lines
1779 bytes
Oswaldo E. Aguirre M. (REACCIUN) <oaguirre@reacciun.ve> wrote:
: Part      Tag    Flag     Cylinders        Size            Blocks
:   0 unassigned    wm       0 - 1941        2.00GB    (1942/0/0) 4194720

Avoid using the first cyclinder, you're probably stomping on the VTOC.
(At least, that was my theory when I did the same thing... :) ).

Allocate one cyclinder (cyclinder 0) as a "root", and then the rest on 
another slice.

As an aside, I also had difficulty with 2G slices as buffers (the size
CNFS reported was negative...) so I had to chop them down to 1G chunks.

Not too much of an issue for me, as I liked the finer granularity of control
anyways.

: I did newfs on both, then configured the conf files for the api:

If you're using the raw partitions, you don't need to build filesystems
on them, they'll just be destroyed anyways.

I zero'd out the partitions using dd and /dev/zero.

-- 
Brandon Hume    - hume -> bofh.halifax.ns.ca, http://www.bofh.halifax.ns.ca/


Re: Problem with CNFS, cannot start INND, again ...
#35733
Author: Russ Allbery
Date: Tue, 02 Mar 1999 00:00
17 lines
1238 bytes
hume spamfilter <hume.spamfilter@bofh.halifax.ns.ca> writes:

> Avoid using the first cyclinder, you're probably stomping on the VTOC.
> (At least, that was my theory when I did the same thing... :) ).

Yes.  I need to document that.  You have to use a partition that contains
everything except the first (smallest possible chunk) of the disk.

> As an aside, I also had difficulty with 2G slices as buffers (the size
> CNFS reported was negative...) so I had to chop them down to 1G chunks.

Yeah, the use of things at or larger than 2GB seems a bit flaky still.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Problem with CNFS, cannot start INND, again ...
#35740
Author: Russ Allbery
Date: Tue, 02 Mar 1999 00:00
17 lines
1331 bytes
Russ Allbery <rra@stanford.edu> writes:
> hume spamfilter <hume.spamfilter@bofh.halifax.ns.ca> writes:

>> As an aside, I also had difficulty with 2G slices as buffers (the size
>> CNFS reported was negative...) so I had to chop them down to 1G chunks.

> Yeah, the use of things at or larger than 2GB seems a bit flaky still.

I thought I remembered there being more on this, so I went back and hunted
up the article.  According to Casper Dik, Solaris 7 doesn't support large
files on raw disk unless you're running in 64-bit mode.  (An improvement
over earlier version of Solaris, which didn't support them at all.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Problem with CNFS, cannot start INND, again ...
#35769
Author: Russ Allbery
Date: Wed, 03 Mar 1999 00:00
21 lines
1547 bytes
Keith Hermansader <keith@hermansader.org> writes:

> I dunno if I was doing something wrong, back when I was playing with
> using raw disk w/ solaris (2.6 and 7) I found that innd couldn't
> initialize the cycbuffs until the raw devices you're using in
> /devices/... were owned by user news.. unless of course you wanted to
> make the raw devices world read/write..

Yes, that's correct.  INN needs read/write access to the devices.  The
best way of doing this is to create a new set of devices somewhere in the
INN file tree just for INN's use, rather than having INN use your regular
system devices.

cycbuff.conf(5) has some information about this, but needs more detail.
I've been meaning to write some documentation on how to get INN working
with raw devices, but haven't found the time.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Problem with CNFS, cannot start INND, again ...
#35779
Author: Keith Hermansader
Date: Wed, 03 Mar 1999 00:00
37 lines
2199 bytes
Russ Allbery wrote:
> 
> hume spamfilter <hume.spamfilter@bofh.halifax.ns.ca> writes:
> 
> > Avoid using the first cyclinder, you're probably stomping on the VTOC.
> > (At least, that was my theory when I did the same thing... :) ).
> 
> Yes.  I need to document that.  You have to use a partition that contains
> everything except the first (smallest possible chunk) of the disk.
> 

I dunno if I was doing something wrong, back when I was playing with
using raw disk w/ solaris (2.6 and 7) I found that innd couldn't
initialize the cycbuffs until the raw devices you're using in
/devices/... were owned by user news.. unless of course you wanted to
make the raw devices world read/write..  I just chown'd them to news and
it worked.  By default the scsi devices are owned by root:sys

(this is on an E250)
crw-r-----   1 root     sys       32,240 Feb 23 12:32
/devices/pci@1f,4000/scsi@4/sd@0,0:a,raw

INND runs (normally) as user news and to be able to write to this device
it needs read/write permissions, which in this case it can't 'cause the
permissions don't permit it.

This was all with 2.1, haven't tried it with 2.2 but I suspect the same
holds true.  Changing the owner and group of the raw devices the buff's
use to news:news shouldn't hurt anything, at least it didn't in the
month or so I tested it like this.. :-)

-keith

-- 
if($user eq "keith") {($email) = "$user\@hermansader.org"};

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