Article View: news.software.nntp
Article #51065Re: CNFS on partitions
From: Russ Allbery
Date: Wed, 07 Mar 2001 23:09
Date: Wed, 07 Mar 2001 23:09
43 lines
3060 bytes
3060 bytes
Karsten Thygesen <karthy@SunSITE.dk> writes:
> However, once INN have started, and it sure finds the new spool and
> initializes it, it shortly after claims, that it can not open the
> device.
> I _think_, that INN is trashing the partition table on the disk during
> initialization and afterwards can not open the disk. If I relabel the
> disk (writes a new partition table), cnfsstat can "see" the spool, but
> once INN have touched it, cnfsstat also claim, that it can not read the
> spool.
Right. This is a known problem with Solaris.
URL: <http://www.eyrie.org/~eagle/faqs/inn.html#5.2>
Subject: 5.2. Using raw devices on Solaris destroys the partition table
If you use slice 2, or some other disk slice that includes the entire
disk, under Solaris as a raw partition for CNFS, you may run into this
problem. The symptoms are that INN manages to initialize the cycbuffs
just fine, but then gets invalid device errors when it tries to open them
again, and the disks show up in format as needing to be repartitioned.
The solution is to not use raw devices that include the first cylinder of
the disk. Solaris doesn't protect the superblock from being overwritten
by an application writing to raw devices and includes it in the first
cylinder of the disk, so unless you use a slice that starts with cylinder
1 instead of 0, INN will invalidate the partition table when it tries to
initialize the cycbuff and all further accesses will fail until you
repartition.
Generally all that has to be done is to repartition the disk with slice 0
starting from cylinder 1 and extending to the end of the disk and then
point INN at slice 0 instead of slice 2. You lose some small amount of
space, but generally not enough to care about.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylitllch1v.fsf@windlord.stanford.edu>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!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<87vgpln1it.fsf@karthy.net>Show Full Headers
Complete Article Headers
Message-ID: <ylitllch1v.fsf@windlord.stanford.edu> Subject: Re: CNFS on partitions Date: Wed, 07 Mar 2001 23:09:32 +0000 From: Russ Allbery <rra@stanford.edu> References: <87vgpln1it.fsf@karthy.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!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 42 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 984006572 24008 171.64.13.23 (7 Mar 2001 23:09:32 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)