On 3/8/07, Greg Oster <[EMAIL PROTECTED]> wrote:
"Siju George" writes:
> On 3/8/07, Greg Oster <[EMAIL PROTECTED]> wrote:
> >
> > So this is still not the output I'd expect.... what does 'disklabel wd0'
> > and 'disklabel wd1' say?  Are wd0d and wd1d of type FS_RAID ??
> >
>
> nope :-(
> So that is the reason right?

Yes.

> is there any hope of fixing it now?

It should just work to change 4.2BSD to RAID...  as long as you're
never actually mounting /dev/wd0d or /dev/wd1d anywhere it'll be
fine...


Yes done that!
==========================================================================

# disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 234436482
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST3120827AS
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234441648
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:       3145905            63  4.2BSD   2048 16384  328 # Cyl     0*-  3120
 b:        204624       3145968    swap                   # Cyl  3121 -  3323
 c:     234441648             0  unused      0     0      # Cyl     0 -232580
 d:     231085953       3350592    RAID                   # Cyl  3324 -232575*
# disklabel wd1
# Inside MBR partition 3: type A6 start 63 size 234436482
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: ST3120827AS
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234441648
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:       3145905            63  4.2BSD   2048 16384  328 # Cyl     0*-  3120
 b:        204624       3145968    swap                   # Cyl  3121 -  3323
 c:     234441648             0  unused      0     0      # Cyl     0 -232580
 d:     231085953       3350592    RAID                   # Cyl  3324 -232575*
#
=======================================================================

> Will the raid be functioning right actually?
> Do you want me to recreate it with FS_RAID?

You should only need to tweak the disklabel.  If you boot single-user
you should see root on /dev/raid0a .. at that point you can mount /
read-write and fix /etc/fstab if necessary.  You shouldn't need to
rebuild the RAID set...

yup

Followed these steps.

copied everything from /dwv/wd0a to /dev/raid0a ( except the raid.conf file )

entered into single user mode and used disklabel ( m option ) to
change the disklabel.

rebooted things are fine  :-)

> Do you think this setup is bad actually?

Nope... just needs a disklabel change and it should work...


Yes!!!!!!!!!!!!!!!!!!!!!1

it is working Greg :-)
Thanks a million!

=========================================================================
Kernelized RAIDframe activated
raid0 (root): (RAID Level 1) total number of sectors is 231085824
(112834 MB) as root
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
swapmount: no device
=========================================================================
# raidctl -sv raid0
raid0 Components:
          /dev/wd0d: optimal
          /dev/wd1d: optimal
No spares.
Component label for /dev/wd0d:
  Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
  Version: 2, Serial Number: 200612010, Mod Counter: 964
  Clean: No, Status: 0
  sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
  Queue size: 100, blocksize: 512, numBlocks: 231085824
  RAID Level: 1
  Autoconfig: Yes
  Root partition: Yes
  Last configured as: raid0
Component label for /dev/wd1d:
  Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
  Version: 2, Serial Number: 200612010, Mod Counter: 964
  Clean: No, Status: 0
  sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
  Queue size: 100, blocksize: 512, numBlocks: 231085824
  RAID Level: 1
  Autoconfig: Yes
  Root partition: Yes
  Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
#
=======================================================================

it did suffer a few uncerimonious reboots due to power failure too :-)
recovered all the time by re writing parity!

Thankyou so much once again :-)

This was great help!

Kind Regards

siju

==++Full dmesg============================================================
OpenBSD 4.0 (GENERIC.RAID2) #0: Fri Nov 24 20:28:14 IST 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.RAID2
real mem = 1039593472 (1015228K)
avail mem = 878211072 (857628K)
using 22937 buffers containing 104165376 bytes (101724K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfc650 (54 entries)
bios0: Acer Aspire Series
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2193.99 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "ATI RS480 Host" rev 0x10
ppb0 at pci0 dev 1 function 0 "ATI RS480 PCIE" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 "ATI Radeon XPRESS 200" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide0 at pci0 dev 17 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: <ST3120827AS>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: <ST3120827AS>
wd1: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
pciide1 at pci0 dev 18 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide1: using irq 5 for native-PCI interrupt
ohci0 at pci0 dev 19 function 0 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 19 function 1 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 19 function 2 "ATI IXP400 USB2" rev 0x80: irq 4
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
piixpm0 at pci0 dev 20 function 0 "ATI IXP400 SMBus" rev 0x81: SMI
iic0 at piixpm0
"unknown" at iic0 addr 0x2f not configured
pciide2 at pci0 dev 20 function 1 "ATI IXP400 IDE" rev 0x80: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia0 at pci0 dev 20 function 2 "ATI IXP450 HD Audio" rev 0x01: irq 5
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC880 (rev. 8.0), HDA version 1.0
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 "ATI IXP400 ISA" rev 0x80
ppb1 at pci0 dev 20 function 4 "ATI IXP400 PCI" rev 0x80
pci2 at ppb1 bus 2
re0 at pci2 dev 3 function 0 "Realtek 8169" rev 0x10: irq 5, address
00:16:17:20:2a:a6
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb4 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
Kernelized RAIDframe activated
raid0 (root): (RAID Level 1) total number of sectors is 231085824
(112834 MB) as root
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
swapmount: no device
#
====================================================================

Reply via email to