🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41460

Re: Cycbuff creation on software RAID problem?

#41460
From: Mark Hittinger
Date: Wed, 10 Nov 1999 00:00
39 lines
2090 bytes
Antony Chan <ccantony@ust.hk> writes:
>I am trying to create a single cycbuff on a "virtual" block device which
>was a sw RAID5 created by Solaris' DiskSuite 4.2 (the OS is 2.6).


I am trying to do some of this now.  I have a news box with 11 50 gigabyte
software raid5 (veritas) arrays.

Here is some information that may or may not be correct, but it is where
I am right now :-)

Compile INN with this in the Makefile.global:

LFS_CFLAGS      = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LFS_LIBS        = -lsocket

If you do this you will discover you can't use the block device because 
block devices don't appear to be able to go beyond the 32 bit lseek.  At
least I haven't figured out how to get this to work.  Thats too bad, cause
its nice and fast.

If you try to use the raw device (rdsk) it won't work because the drivers
seem to want you to do largefile I/O in 512 byte chunks.  It won't do a 192 
byte read on the rpx structure for example, the 192 byte read fails, but the 
512 byte read works, and goes out to 64 bit lseek.  SO we could re-write the
storageapi to always do block style i/o if largefile mode is on in order
to appease ods or veritas :-)

Anyway you can also initialize a file system on the array and then dd /dev/zero
onto a big file on the array.  This works (so far).  I'm expecting some things
to fail, but so far so good (this is with inn2.3-current btw).

Later

Mark Hittinger
Mindspring/Netcom/Dallas
bugs@freebsd.netcom.com

Technical Details
Message-ID: <80cnja$14c$1@nntp9.atl.mindspring.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
References: <3829BDC7.9A4DA714@ust.hk>

Show Full Headers
Complete Article Headers
Message-ID: <80cnja$14c$1@nntp9.atl.mindspring.net>
Subject: Re: Cycbuff creation on software RAID problem?
Date: Wed, 10 Nov 1999 00:00:00 +0000
From: bugs@netcom19.netcom.com (Mark Hittinger)
References: <3829BDC7.9A4DA714@ust.hk>
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: 547058247
Distribution: inet
Organization: MindSpring Enterprises
Newsgroups: news.software.nntp