On 11/15/06, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> =====================================================================
> # cat /var/run/dmesg.boot
> OpenBSD 4.0 (GENERIC) #690: Sat Sep 16 20:26:25 MDT 2006
> [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
The clue is here. You are not running a kernel with raidframe enabled.
I'd advise to first play with this using a regular root file system,
and put some data on a raidframe file system, and only move to a
raidframe root after that. Having a raidframe root can be quite
confusing, since the boot device does not match the root device.
yes i am having some confusion here.
# uname -a
OpenBSD backupserver.hifxchn2.local 4.0 GENERIC.RAID#0 amd64
#
gives GENERIC.RAID
so I am running a kernel with raidframe enabled right?
I deleted the /var/run/dmesg.boot
halted the system.
restarted the system
in the dmesg|more after the earlier errors created while configuring
raid0 partition it says it is booting a raidframe enabled kernel.
=================================================
RAIDFRAME: failed rf_ConfigureDisks with 2.
vnode was NULL
vnode was NULL
syncing disks...
OpenBSD 4.0 (GENERIC.RAID) #0: Wed Nov 15 08:04:56 IST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.RAI
D
real mem = 1039593472 (1015228K)
avail mem = 878211072 (857628K)
using 22937 buffers containing 104165376 bytes (101724K) of memory
mainbus0 (root)
===========================================================
The root file system is 4.2BSD on "wd0"
============================================================
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 614817 63 4.2BSD 2048 16384 328 # Cyl 0*- 609
b: 2097648 614880 swap # Cyl 610 - 2690
c: 234441648 0 unused 0 0 # Cyl 0 -232580
d: 4194288 2712528 4.2BSD 2048 16384 328 # Cyl 2691 - 6851
e: 2097648 6906816 4.2BSD 2048 16384 328 # Cyl 6852 - 8932
f: 16777152 9004464 4.2BSD 2048 16384 328 # Cyl 8933 - 25576
g: 83885760 25781616 4.2BSD 2048 16384 328 # Cyl 25577 -108796
h: 83885760 109667376 4.2BSD 2048 16384 328 # Cyl 108797 -192016
i: 40883409 193553136 4.2BSD 2048 16384 328 # Cyl 192017 -232575*
#
=========================================================================
I just wanted to create a degraded array using "wd1b" (another disk)
and wd2b ( fake entry no actual disk but /dev/wd2b entry exists )
I created a RAID file system type in "wd1b"
=======================================================================
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # Cyl 0*- 2080
b: 232338897 2097648 RAID # Cyl 2081 -232575*
c: 234441648 0 unused 0 0 # Cyl 0 -232580
#
====================================================================
also a raid.conf for mirroring as said in the raidctl manpage
=============================================
# cat /root/raid0.conf
START array
# numRow numCol numSpare
1 2 0
START disks
/dev/wd2b
/dev/wd1b
START layout
128 1 1 1
START queue
fifo 100
#
========================
then gave the command to create the array using the -C option to force
its creation and then
=======================================================================
# raidctl -C /root/raid0.conf raid0
raidctl: ioctl (RAIDFRAME_CONFIGURE) failed
#
=======================================================
System messages
=====================================================
Kernelized RAIDframe activated
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
raidlookup on device: /dev/wd2b failed !
vnode was NULL
vnode was NULL
RAIDFRAME: failed rf_ConfigureDisks with 2.
vnode was NULL
vnode was NULL
====================================================
So it says kernlized Raid Frame activated
Also
==============================================
# uname -a
OpenBSD backupserver.hifxchn2.local 4.0 GENERIC.RAID#0 amd64
#
===============================================================
So I am running a Kernel with Raid Frame enabled right?
I am using the -C option to create the array with raidctl so even if
/dev/wd2b is not present physically it should fore creating a degraded
array right?
Hope I make sense :-)
Thankyou so much for your help
Kind Regards
Siju