Thread View: news.software.nntp
8 messages
8 total messages
Started by Tabor J. Wells
Wed, 29 Jul 1998 00:00
INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Tabor J. Wells
Date: Wed, 29 Jul 1998 00:00
Date: Wed, 29 Jul 1998 00:00
20 lines
1192 bytes
1192 bytes
Hi, I'm trying to make my test installation of INN 2.1 use cnfs with block disk devices on Solaris 2.6 with no success. Basically everytime I start up the news server, the labels on the cnfs spool disks get corrupted and I have to repartition them again. I've followed the directions in cycbuff.conf(5) but have had no luck. I've tried both using each disk as a single partition and splitting the disks into separate 2g partitions with no luck. Is anyone else doing this? Are there any examples that I'm missing or some obvious pitfalls I should be avoiding or what? :) TIA, Tabor twells@shore.net
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Jon Harley
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
22 lines
1699 bytes
1699 bytes
twells@shell3.shore.net (Tabor J. Wells) writes: >I'm trying to make my test installation of INN 2.1 use cnfs with >block disk devices on Solaris 2.6 with no success. Basically everytime >I start up the news server, the labels on the cnfs spool disks get >corrupted and I have to repartition them again. The disk label is stored in the first cylinder of the disk. You must make the first partition you want to use for CNFS start at the second cylinder. You can start a ufs partition in the first cylinder, because ufs knows not to put anything there. But CNFS doesn't. /Jon -- ______________________________________________________________________________ Dr JW Harley J.W.Harley@warwick.ac.uk IT Services Phone: 01203 524217 UNIX/Networking Consultant University of Warwick See http://www.warwick.ac.uk/J.W.Harley/ for fax number, address and PGP key
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Tabor J. Wells
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
39 lines
2052 bytes
2052 bytes
On 30 Jul 1998 10:41:26 GMT, Jon Harley <Jon.Harley@warwick.ac.uk> wrote: >twells@shell3.shore.net (Tabor J. Wells) writes: >>I'm trying to make my test installation of INN 2.1 use cnfs with >>block disk devices on Solaris 2.6 with no success. Basically everytime >>I start up the news server, the labels on the cnfs spool disks get >>corrupted and I have to repartition them again. > >The disk label is stored in the first cylinder of the disk. You must >make the first partition you want to use for CNFS start at the >second cylinder. > >You can start a ufs partition in the first cylinder, because ufs knows >not to put anything there. But CNFS doesn't. Thanks for the info. I actually tried that just after posting, and that does keep the partition table from being blown away, but I get errors like: Jul 30 16:05:47 server makehistory[609]: CNFS-sm: Mismatch: read 0x115ba000 length for cycbuff /home/news/cycbuffs/c1t0d0s0 Jul 30 16:05:47 server makehistory[609]: SM storage method 'cnfs' failed initialization Jul 30 16:05:47 server makehistory[609]: SM one or more storage methods failed initialization when I run makehistory. The appropriate line from my cycbuff.conf: cycbuff:SPOOL01:/home/news/cycbuffs/c1t0d0s0:2098304 I know I'm missing something obvious here, but I can't for the life of me figure out what. :) TIA, Tabor
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Jon Harley
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
17 lines
1569 bytes
1569 bytes
Jon.Harley@warwick.ac.uk (Jon Harley) writes: >copy at least 3600 zeroes into the start of that >partition (from /dev/null or using the C program I posted to this >newsgroup last week), restart innd and it will reinitialise its >data structures at the new start of the partition. Brain failure... I meant /dev/zero of course. /Jon. -- ______________________________________________________________________________ Dr JW Harley J.W.Harley@warwick.ac.uk IT Services Phone: 01203 524217 UNIX/Networking Consultant University of Warwick See http://www.warwick.ac.uk/J.W.Harley/ for fax number, address and PGP key
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Pete Ashdown
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
19 lines
1746 bytes
1746 bytes
Jon.Harley@warwick.ac.uk (Jon Harley) writes:
>Secondly, because you've already stored some stuff in that cycbuf,
>there is data at the start of the cycbuf partition which the storage
>manager is trying to interpret as its own data structures. Take innd
>down (if it is up!), copy at least 3600 zeroes into the start of that
>partition (from /dev/null or using the C program I posted to this
>newsgroup last week), restart innd and it will reinitialise its
>data structures at the new start of the partition.
The program "dd" works nicely for this purpose. Just use "/dev/zero" for
your input.
--
"By pressing the spacebar you will kill yourself" - Self Deliverance Software
Pete Ashdown pashdown@xmission.com ICQ:5717723 Salt Lake City, Utah
XMission Internet Access - Data: 801 990 0900 - Voice: 801 539 0852
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Jon Harley
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
45 lines
2853 bytes
2853 bytes
twells@shell3.shore.net (Tabor J. Wells) writes: Jon Harley <Jon.Harley@warwick.ac.uk> wrote: twells@shell3.shore.net (Tabor J. Wells) writes: >>>I'm trying to make my test installation of INN 2.1 use cnfs with >>>block disk devices on Solaris 2.6 with no success. Basically everytime >>>I start up the news server, the labels on the cnfs spool disks get >>>corrupted and I have to repartition them again. >>The disk label is stored in the first cylinder of the disk. You must >>make the first partition you want to use for CNFS start at the >>second cylinder. >Thanks for the info. I actually tried that just after posting, and that >does keep the partition table from being blown away, but I get errors >like: > >Jul 30 16:05:47 server makehistory[609]: CNFS-sm: Mismatch: read 0x115ba000 >length for cycbuff /home/news/cycbuffs/c1t0d0s0 >The appropriate line from my cycbuff.conf: >cycbuff:SPOOL01:/home/news/cycbuffs/c1t0d0s0:2098304 > >I know I'm missing something obvious here, but I can't for the life of me >figure out what. :) Firstly, having made the partition a cylinder shorter, is the size figure in cycbuff.conf still OK or should it be less? Secondly, because you've already stored some stuff in that cycbuf, there is data at the start of the cycbuf partition which the storage manager is trying to interpret as its own data structures. Take innd down (if it is up!), copy at least 3600 zeroes into the start of that partition (from /dev/null or using the C program I posted to this newsgroup last week), restart innd and it will reinitialise its data structures at the new start of the partition. /jon -- ______________________________________________________________________________ Dr JW Harley J.W.Harley@warwick.ac.uk IT Services Phone: 01203 524217 UNIX/Networking Consultant University of Warwick See http://www.warwick.ac.uk/J.W.Harley/ for fax number, address and PGP key
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Alan Chan
Date: Sun, 09 Aug 1998 00:00
Date: Sun, 09 Aug 1998 00:00
35 lines
1852 bytes
1852 bytes
Hi, Actually, I would like to ask for some help from you guys as I read from this thread. Since the installation note of INN2.1 doesn't clearly teach you how to set up raw partition to use with CNFS. I have a Solaris 2.6 box too. I wonder if you guys could give me some step by step instruction and examples to setup INN2.1 with Solaris 2.6 with CNFS on raw partition. I get CNFS running on file base method, but I really would like to get it run on raw partition... Hope any of you could give me some pointers. Thanks in advance, really appreciate any help. Alan On 31 Jul 1998 10:31:31 GMT, Jon.Harley@warwick.ac.uk (Jon Harley) wrote: >Jon.Harley@warwick.ac.uk (Jon Harley) writes: >>copy at least 3600 zeroes into the start of that >>partition (from /dev/null or using the C program I posted to this >>newsgroup last week), restart innd and it will reinitialise its >>data structures at the new start of the partition. > >Brain failure... I meant /dev/zero of course. > > >/Jon.
Re: INN 2.1, Solaris 2.6, block disk cnfs problem
Author: Jason Cash cash
Date: Tue, 11 Aug 1998 00:00
Date: Tue, 11 Aug 1998 00:00
69 lines
3721 bytes
3721 bytes
In article <35ce3e08.3804269@news.v-wave.com>,
Alan Chan <achan@v-wave.com> wrote:
>Hi,
>
>Actually, I would like to ask for some help from you guys as I read
>from this thread.
>
>Since the installation note of INN2.1 doesn't clearly teach you how to
>set up raw partition to use with CNFS.
>
>I have a Solaris 2.6 box too. I wonder if you guys could give me some
>step by step instruction and examples to setup INN2.1 with Solaris 2.6
>with CNFS on raw partition. I get CNFS running on file base method,
>but I really would like to get it run on raw partition...
>Hope any of you could give me some pointers.
>Thanks in advance, really appreciate any help.
>Alan
If you already have CNFS running on big files in the file system,
you are almost there!
1) create partitions on disks that you want to use for raw cnfs partitions.
use /usr/sbin/format (all commands mentioned are for solaris 2.6). You
have already done this if you have built UFS filesystems to "dd" big files
into. If your disk is larger that 2gbs, you will need to break it up
into several 2gb or less chunks since there does not appear to be
solaris 2.6/2.7 large file support ifdef'd into the code yet.
*NOTE* DO NOT USE CYLINDER 0 OF THE DISKS WHILE CONSTRUCTING RAW
CNFS PARTITIONS! Inn _will_ store info over the partition table of
the disk (see: /usr/include/sys/dklabel.h). ("but newfs doesn't
screw everything up when I use cylinder 0?", newfs knows to not mess
w/ cylinder 0, head 0, sector 0.)
2) Make sure the devices are chowned to the news users. The cycbuff.conf(5)
man page has a way to do this by making new block device files. I was lazy
with my test machine and just used the standard /dev/dsk/cxtydzsn devices.
3) Add the cycbuffs into you cycbuff.conf file. Again, see cycbuff.conf(5)
for information. The entries will be very similar to you "dd"'d file
entries. Some entries on my test system look like:
cycbuff:FAST00a:/dev/dsk/c3t1d0s4:2000000
cycbuff:FAST00b:/dev/dsk/c3t1d0s5:2000000
cycbuff:SLOW01a:/dev/dsk/c1t2d0s5:2000000
cycbuff:SLOW02b:/dev/dsk/c1t3d0s6:700000
The cycbuff.conf(5) man page describes the fields with good detail. (I
sound like a broken record, rtfm, rtfm, rtfm, i know). If you are starting
fresh, you can then remake your history files "makehistory -i" and move the
".n" files to their correct positions (see INSTALL). Makehistory will
complain if the cycbuffs have some problems (permissions, non-existence,
etc).
4) look in /var/adm/messages and the logfile where you are sending the
news.notice messages when you start to see if the cycbuffs are still
screwed. I made probably every mistake one could make the first time I went
through this process, but the error messages logged by syslog or the
complaints made by makehistory pointed me in the correct direction.
Good Luck,
Jason Cash
cash@ee.udel.edu
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