Subject: 'raidctl -C' fails with 'raidctl: ioctl (RAIDFRAME_CONFIGURE)
To: None <netbsd-help@netbsd.org>
From: Bruce Anderson <brucea@shell.spacestar.net>
List: netbsd-help
Date: 04/11/2002 21:21:55
I was attempting to configure a new raid device when I hit this little
wall.

bruce@puma$ raidctl -C /etc/raid.d/raid1.conf raid1
raidctl: ioctl (RAIDFRAME_CONFIGURE) failed: No such file or directory

Is this a sign of cruft in my local source tree, and if so where?

Note the message from the kernel (dmesg) when running raidctl.

Source:  
SUP Upgrade of release-1-5-allsrc at Wed Mar 20 23:02:35 2002
SUP Fileserver 8.13 (4.3 BSD) 9581 on sup.netbsd.org at 23:02:35
SUP Requesting changes since Sep  3 19:04:42 2001

Added to (GENERIC)
pseudo-device   raid            4 # RAIDframe disk driver
options         RAID_AUTOCONFIG   # auto-configuration of RAID components

bruce@puma$ dmesg
NetBSD 1.5.3_RC1 (GENERIC) #16: Sun Apr  7 06:09:10 CDT 2002
    bruce@loose-cat129:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD K6-2 (586-class), 451.07 MHz
total memory = 127 MB
avail memory = 113 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xfb4a0
mainbus0 (root)
[snip]
Kernelized RAIDframe activated
RAID autoconfigure
Configuring raid0:
RAIDFRAME: protectedSectors is 64
RAIDFRAME: Configure (RAID Level 0): total number of sectors is\
 24665600 (12043 MB)
RAIDFRAME(RAID Level 0): Using 6 floating recon bufs with no\
 head sep limit
boot device: raid0
root on raid0a dumps on raid0b
root file system type: ffs
[ Note: raid0 is on wd1 and wd2 BA- ]
raidlookup on device: /dev/wd0e   failed!
Closing vnode for row: 0 col: 0
vnode was NULL
Closing vnode for row: 0 col: 1
vnode was NULL
RAIDFRAME: failed rf_ConfigureDisks with 2
Closing vnode for row: 0 col: 0
vnode was NULL
Closing vnode for row: 0 col: 1
vnode was NULL


bruce@puma$ cat /etc/raid.d/raid1.conf
# Begin raid frame configuration

START array
# numRow numCol numSpare
1 2 0

START disks
/dev/wd0e  
/dev/wd0f

START layout 
# sectPerSU  SUsPerParityUnit  SUsPerReconUnit  RAID_level
32 1  1  1

START queue
scan 200

bruce@puma$ disklabel wd0
# /dev/rwd0d:
8 partitions:
#      size   offset fstype [fsize bsize cpg/sgs]
a:   100737       63 4.2BSD  512  4096 22 # (Cyl.    0*- 99)
c: 11255265       63 unused    0     0    # (Cyl.    0*- 11165)
d: 11255328        0 unused    0     0    # (Cyl.    0 - 11165)
e:  5576256   100800 RAID                 # (Cyl.  100 - 5631)
f:  5576256  5677056 RAID                 # (Cyl. 5632 - 11163)
g:     1953 11253312 unused    0     0    # (Cyl. 11164 - 11165*)



" Stamp out root logins .  .  .  . su "   --Bruce Anderson  
 This message was created and sent using Cyberdog 2.0, MacOS 8.6,
 awk, find, sed, sendmail, sh, and NetBSD a free Multi-Platform OS.
 NetBSD runs on  44 different system architectures featuring 16
 distinct families of CPUs.   http://www.netbsd.org/