can't get raidframe device to work

2005-10-18 Thread Nick Nauwelaerts
Hello,
I'm having some issues getting raidframe to work for me. I've got 6
harddisks in my machine, of which I use 4 for raid: wd2 - wd5. On each
harddisk I've set up 1 partition with fdisk, and the created 2
diskslices with disklabel, both which have type RAID. Then I've set up
device raid0, which is a raid0 of wd2d  wd3d, and is set up for
autoconfigure. After that I've set up device raid1, which is a raid1 of
wd4d  wd5d, also set to autoconfigure. Both these raid device work fine
and start at boot.

With the remaining diskspace on those drives I set up a slice 'e',
bundled together in a raid5 without autoconfigure. Configuring, adding a
serial and writing parity all goes fine. Adding a disklabel as per
raidctl(8) isn't an issue either, but when I try to newfs the filesystem
I get:
newfs: /dev/rraid2a: Device not configured

Any clues as to why? The other raid partitions were created in the same
way, but have autoconfigure on. I've already tried recreating the device
nodes with MAKEDEV raid2, but that didn't do any good.

I've got a 3.8 i386 kernel build from source (on another host, this was
a binary upgrade) with:
options RAID_AUTOCONFIG
pseudo-device   raid4

the rest is generic.

Thanks.

// nick



disklabel, fdisk (layout is identical for all 4 disks), raid2.conf 
dmesg follow:

disklabel wd2
# Inside MBR partition 0: type A6 start 63 size 488392002
# /dev/rwd2c:
type: ESDI
disk: ESDI/IDE disk
label: ST3250823AS 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 


fdisk wd2
16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  c: 488397168 0  unused  0 0  # Cyl 0
-484520 
  d:   209758563RAID   # Cyl 0*-
 2080 
  e:   4194288   2097648RAID   # Cyl  2081 -
 6241 

Disk: wd2   geometry: 30401/255/63 [488392065 Sectors]
Offset: 0   Signature: 0x0
 Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

 0: A60   1  1 - 30400 254 63 [  63:   488392002 ] OpenBSD  
  
 1: 000   0  0 -0   0  0 [   0:   0 ] unused
 
 2: 000   0  0 -0   0  0 [   0:   0 ] unused
 
 3: 000   0  0 -0   0  0 [   0:   0 ] unused

/etc/raid2.conf 
START array
# numRow numCol numSpare
1 4 0

START disks
/dev/wd2e
/dev/wd3e
/dev/wd4e
/dev/wd5e

START layout
# sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_5
64 1 1 5

START queue
fifo 100


disklabel raid2
# /dev/rraid2c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 192
tracks/cylinder: 16
sectors/cylinder: 3072
cylinders: 474896
total sectors: 1458883008
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  a:   2097472 0  unused   2048 16384  # Cyl 0 -
  682*
  c:   2097472 0  unused  0 0  # Cyl 0 -
  682*

dmesg
penBSD 3.8 (SPECTRE) #0: Sun Oct 16 17:13:48 CEST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/SPECTRE
cpu0: AMD Duron(tm) Processor (AuthenticAMD 686-class, 64KB L2 cache)
896 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,
FXSR
real mem  = 536453120 (523880K)
avail mem = 482168832 (470868K)
using 4278 buffers containing 26927104 bytes (26296K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/02, BIOS32 rev. 0 @
0xfdae0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7950/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 (SIS 85C503 System rev
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x2400 0xca800/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 SIS 735 PCI rev 0x01
ppb0 at pci0 dev 1 function 0 SIS 86C201 AGP rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 SIS 85C503 System rev 0x00
ohci0 at pci0 dev 2 function 2 SIS 5597/5598 USB rev 0x07: irq 5,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 SIS 5597/5598 USB rev 0x07: irq 10,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, rev 1.00/1.00, addr 1

Re: can't get raidframe device to work

2005-10-18 Thread Otto Moerbeek
On Tue, 18 Oct 2005, Nick Nauwelaerts wrote:

 newfs: /dev/rraid2a: Device not configured

[snip] 

 16 partitions:
 # sizeoffset  fstype [fsize bsize  cpg]
   a:   2097472 0  unused   2048 16384  # Cyl 0 -
   682*
   c:   2097472 0  unused  0 0  # Cyl 0 -
   682*

The type of your a partition is unused. Should be 4.2BSD.

Run diskabel raid2, use the c command to change the type.

-Otto



Re: can't get raidframe device to work

2005-10-18 Thread Nick Nauwelaerts
On Tue, 18 Oct 2005 20:39:50 +0200 (CEST)
Otto Moerbeek [EMAIL PROTECTED] wrote:

 
 On Tue, 18 Oct 2005, Nick Nauwelaerts wrote:
 
  newfs: /dev/rraid2a: Device not configured
 
 [snip] 
 
  16 partitions:
  # sizeoffset  fstype [fsize bsize  cpg]
a:   2097472 0  unused   2048 16384  # Cyl
0 - 682*
c:   2097472 0  unused  0 0  # Cyl
0 - 682*
 
 The type of your a partition is unused. Should be 4.2BSD.
 
 Run diskabel raid2, use the c command to change the type.

Jeez, how could I've missed that. Back to bigger partitions now.

Thanks!

// nick