🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Steven L. Sesar Wed, 07 Nov 2001 19:18
Almost there......what's the cause of this?
#55022
Author: Steven L. Sesar
Date: Wed, 07 Nov 2001 19:18
23 lines
2210 bytes
I understand what these errors mean in terms of permissions, but I can't
figure out the cause. If it matters, inndstartt and startinnfeed are
both root:news and SUID.

Nov  7 14:14:45 newssrv1 innfeed[9280]: [ID 854644 news.error] CNFS-sm:
ERROR opening '/dev/rdsk/c0t9d0s0' O_RDONLY : Permission denied
Nov  7 14:14:45 newssrv1 innfeed[9280]: [ID 371779 news.error] SM
storage method 'cnfs' failed initialization
Nov  7 14:14:45 newssrv1 innfeed[9280]: [ID 292155 news.error] SM one or
more storage methods failed initialization
Nov  7 14:14:45 newssrv1 innfeed[9280]: [ID 896969 news.error] Storage
manager initialization failed
Nov  7 14:14:47 newssrv1 innd: [ID 854644 news.error] CNFS-sm: ERROR
opening '/dev/rdsk/c0t9d0s0' O_RDONLY : Permission denied
Nov  7 14:14:47 newssrv1 innd: [ID 371779 news.error] SM storage method
'cnfs' failed initialization
Nov  7 14:14:47 newssrv1 innd: [ID 292155 news.error] SM one or more
storage methods failed initialization
Nov  7 14:14:47 newssrv1 innd: [ID 892631 news.crit] SERVER cant
initialize the storage subsystem one or more storage methods failed
initialization

Re: Almost there......what's the cause of this?
#55031
Author: Russ Allbery
Date: Thu, 08 Nov 2001 02:06
51 lines
2818 bytes
Steven L Sesar <ssesar@rcn.com> writes:

> I understand what these errors mean in terms of permissions, but I can't
> figure out the cause. If it matters, inndstartt and startinnfeed are
> both root:news and SUID.

The best way to handle CNFS buffers on block devices is to create new
devices for the disk slices that you intend to use.  I use the following
script to do that:

#!/usr/bin/perl -w
$ID = q$Id: mkdiskdev,v 0.1 1999/03/04 06:24:55 eagle Exp $;
#
# mkdiskdev -- Construct a disk block device.
#
# Written by Russ Allbery <rra@stanford.edu>
# Copyright 1998 Board of Trustees, Leland Stanford Jr. University
#
# Use this to generate block devices for use as cycbuffs under CNFS.  It
# uses ls -lL to find the correct major and minor numbers for a given
# device, uses mknod to create a new copy of it in the given directory, and
# then chowns it to news.news.
#
# Usage: mkdiskdev <device> <directory>

use vars qw($ID);

unless (@ARGV == 2) { die "Usage: $0 mkdiskdev <device> <directory>\n" }
my ($device, $directory) = @ARGV;
unless (-e "/dev/dsk/$device") { die "$0: device $device not found\n" }
my $ls = `ls -lL /dev/dsk/$device`;
my ($major, $minor);
if ($ls =~ /(\d+),\s+(\d+)/) {
    $major = $1;
    $minor = $2;
} else {
    die "$0: can't find major and minor numbers for $device\n";
}
system ('mknod', "$directory/$device", 'b', $major, $minor) == 0
    or die "$0: mknod exited with status ", ($? >> 8), "\n";
my $uid = getpwnam 'news';
my $gid = getgrnam 'news';
chown ($uid, $gid, "$directory/$device")
    or die "$0: can't chown device: $!\n";

-- 
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.
Re: Almost there......what's the cause of this?
#55033
Author: Tricia C. Sesar
Date: Thu, 08 Nov 2001 02:26
45 lines
2498 bytes
> The best way to handle CNFS buffers on block devices is to create new
> devices for the disk slices that you intend to use.  I use the following
> script to do that:
>
> #!/usr/bin/perl -w
> $ID = q$Id: mkdiskdev,v 0.1 1999/03/04 06:24:55 eagle Exp $;
> #
> # mkdiskdev -- Construct a disk block device.
> #
> # Written by Russ Allbery <rra@stanford.edu>
> # Copyright 1998 Board of Trustees, Leland Stanford Jr. University
> #
> # Use this to generate block devices for use as cycbuffs under CNFS.  It
> # uses ls -lL to find the correct major and minor numbers for a given
> # device, uses mknod to create a new copy of it in the given directory, and
> # then chowns it to news.news.
> #
> # Usage: mkdiskdev <device> <directory>
>
> use vars qw($ID);
>
> unless (@ARGV == 2) { die "Usage: $0 mkdiskdev <device> <directory>\n" }
> my ($device, $directory) = @ARGV;
> unless (-e "/dev/dsk/$device") { die "$0: device $device not found\n" }
> my $ls = `ls -lL /dev/dsk/$device`;
> my ($major, $minor);
> if ($ls =~ /(\d+),\s+(\d+)/) {
>     $major = $1;
>     $minor = $2;
> } else {
>     die "$0: can't find major and minor numbers for $device\n";
> }
> system ('mknod', "$directory/$device", 'b', $major, $minor) == 0
>     or die "$0: mknod exited with status ", ($? >> 8), "\n";
> my $uid = getpwnam 'news';
> my $gid = getgrnam 'news';
> chown ($uid, $gid, "$directory/$device")
>     or die "$0: can't chown device: $!\n";
>
>

Thanks again, all!!!


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