Hi misc!

  First of all i'm a newbie, so please excuse my lack of knowledge.

Now, let's get to the point. I'm trying to setup a raid 1 degraded array using RAIDFRAME. I'm using a PII machine with hard-drives wd0,wd1.

    Step 1)

     a) recompiled the kernel with

          pseudo-device raid 4
          option RAID_AUTOCONFIG

     b) recompiled userland.
     c) made a release.
4) made a bootable iso image from the release files and burned that image on a CDROM.

 Step 2)

     a) install base system with the new boot cd on wd0.

b) fdisk -i wd1; disklabel -E wd1. After labeling, wd1 looks like this:

      # /dev/rwd1c:
      type: ESDI
      disk: ESDI/IDE disk
      label: FUJITSU MPB3032A
      flags:
      bytes/sector: 512
      sectors/track: 63
      tracks/cylinder: 16
      sectors/cylinder: 1008
      cylinders: 4092
      total sectors: 4124736
      rpm: 3600
      interleave: 1
      trackskew: 0
      cylinderskew: 0
      headswitch: 0           # microseconds
      track-to-track seek: 0  # microseconds
      drivedata: 0

      16 partitions:
      #                size           offset  fstype [fsize bsize  cpg]
      a:           131985               63  4.2BSD   2048 16384    1
      b:           263088           132048    swap
      c:          4124736                0  unused      0     0
      d:          3729600           395136    RAID

  I've created a new filesystem on wd1a and made it bootable.

  I've edited /etc/raid0.conf

  START array
  # numRow numCol numSpare
  1 2 0

  START disks
  /dev/wd0d
  /dev/wd1d

  START layout
  128 1 1 1

  START queue
fifo 100
  Create raid0:
  raidctl -C /etc/raid0.conf raid0

  Initialize component labels:
  raidctl -I 100 raid0

  Initialize the raid device:
  raidctl -vi raid0

  Check the array was created:
  raidctl -vs raid0

 Allow the system to use raid0 as root device:
 raidctl -A root raid0

 I've labeled raid0. It looks like this

  # /dev/rraid0c:
  type: RAID
  disk: raid
  label: fictitious
  flags:
  bytes/sector: 512
  sectors/track: 128
  tracks/cylinder: 8
  sectors/cylinder: 1024
  cylinders: 3642
  total sectors: 3729536
  rpm: 3600
  interleave: 1
  trackskew: 0
  cylinderskew: 0
  headswitch: 0           # microseconds
  track-to-track seek: 0  # microseconds
  drivedata: 0

  16 partitions:
  #                size           offset  fstype [fsize bsize  cpg]
  a:          3729536                0  4.2BSD   2048 16384    1
  c:          3729536                0  unused      0     0

I've mounted /dev/raid0a, copied the instalation and modified /etc/fstab to mount /dev/raid0a as /.

  I've rebooted the system. Everything works.

  From dmesg:
  Kernelized RAIDframe activated
raid0 at root: (RAID Level 1) total number of sectors is 3729536 (1821 MB) as root

  Step 3) Mirror everything to wd0.

  I've label wd0 so it looks like this.

  # /dev/rwd0c:
  type: ESDI
  disk: ESDI/IDE disk
  label: FUJITSU MPC3064A
  flags:
  bytes/sector: 512
  sectors/track: 63
  tracks/cylinder: 15
  sectors/cylinder: 945
  cylinders: 13410
  total sectors: 12672450
  rpm: 3600
  interleave: 1
  trackskew: 0
  cylinderskew: 0
  headswitch: 0           # microseconds
  track-to-track seek: 0  # microseconds
  drivedata: 0

  16 partitions:
  #                size           offset  fstype [fsize bsize  cpg]
  a:           131292               63  4.2BSD   2048 16384    1
  b:           262710           131355    swap
  c:         12672450                0  unused      0     0
  d:          3729600           394065    RAID

  raidctl -a /dev/wd0d raid0 - add raid partition as spare
  raidctl -vF component0 raid0 - force backup to spare
  raidctl -vP raid0 - recreate parity

  Output of raidctl -vs raid0 follows:

  Components:
           component0: spared
           /dev/wd1d: optimal
  Spares:
           /dev/wd0d: used_spare

    After that i've made the first disk bootable again.

  Step 4) Reboot

  After reboot.

  The output of raidctl -vs raid0 follows:
  raid0 Components:
        component0: failed
         /dev/wd1d: optimal
  No spares.

After searching the list and google, I used /dev/wd0d as spare again and after that tried to reinitialize components labels ( raidctl -I 200 raid0 ) or/and reinitialize the raid device ( raidctl -vi raid0 ), tried the setup from scratch, but the outcome was still the same: component0: failed. |Any pointers or ideas to the problem would be highly apreciated. I've added the dmesg from the machine to the end of this mail.

P.S.: I've followed the setup described in http://www.linux.com/articles/52713

OpenBSD 4.2 (GENERIC) #1: Sat Jul 28 14:56:37 EEST 2007
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 399 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267997184 (255MB)
avail mem = 251064320 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/12/99, BIOS32 rev. 0 @ 0xfd790
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd790/0x870
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Matrox MGA G100 AGP" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-ROM SC-140, HT02> SCSI0 5/cdrom removable
wd0 at pciide0 channel 0 drive 1: <FUJITSU MPC3064AT>
wd0: 16-sector PIO, LBA, 6187MB, 12672450 sectors
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: <FUJITSU MPB3032ATU>
wd1: 16-sector PIO, LBA, 2014MB, 4124736 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
ep0 at pci0 dev 15 function 0 "3Com 3c595 100Base-TX" rev 0x00: address 00:a0:24:6b:3e:fe, utp/100-TX default utp/autoselect irq 9 vr0 at pci0 dev 16 function 0 "VIA VT6105 RhineIII" rev 0x8b: irq 10, address 00:02:44:92:d8:24 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 9: OUI 0x004063, model 0x0034
isa0 at piixpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
isapnp0 at isa0 port 0x279: read port 0x203
ep1 at isapnp0 "3Com 3C509B EtherLink III, TCM5094, PNP80F7, " port 0x210/16 irq 5: address 00:a0:24:6a:a9:81, utp/aui/bnc (default utp)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: Intel UHCI root hub, rev 1.00/1.00, addr 1
biomask fbc5 netmask ffe5 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
raid0 at root: (RAID Level 1) total number of sectors is 3729536 (1821 MB) as root
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
swapmount: no device

Reply via email to