[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem formating large RAID-5




Hi,
I am quite new to OpenBSD and Unix Administration and trying to set up an RAID 5. Everythings seems to be fine until I disklabel and newfs the raid. newfs shows no error, but after it finishes the disklabel is gone!
I can't figure out what's wrong, any idea?
Thanks!
Klaus Hendrik
encl. dmesg, fdisk wd[0-3], disklabel wd[0-3], raidctl -s, fdisk raid0
disklabel raid0 before newfs -U raid0f and
disklabel raid0 after it
> dmesg
OpenBSD 2.8-stable (ARRAY) #0: Fri Jan 12 18:22:34 CET 2001
root_(_at_)_bronchus:/mnt/disk1/usr/src/sys/arch/i386/compile/ARRAY
cpu0: Intel Pentium II (Klamath) ("GenuineIntel" 686-class, 512KB L2 cache) 267
MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,MMX
real mem = 133804032 (130668K)
avail mem = 120561664 (117736K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ee) BIOS, date 06/17/99, BIOS32 rev. 0 @ 0xfb3f0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 found at 0xf0000[0xb86c]
pcibios0: PCI IRQ Routing Table rev. 1.0 found at 0xfdd50, size 128 bytes (6 ent
ries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB (Triton II) PCI-ISA"
rev 0x00)
pcibios0: PCI Exclusive IRQs: 10 11 12 15
pcibios0: PCI bus #1 is the last bus
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443LX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443LX AGP" rev 0x03
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE (PIIX4)" rev 0x01: DMA, chan
nel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
"Intel 82371AB USB (PIIX4)" rev 0x01 at pci0 dev 7 function 2 not configured
"Intel 82371AB Power Management (PIIX4)" rev 0x01 at pci0 dev 7 function 3 not c
onfigured
dc0 at pci0 dev 9 function 0 "Lite-On PNIC" rev 0x20: irq 15 address 00:c0:f0:2c
:4e:c4
amphy0 at dc0 phy 1: Am79C873 10/100 media interface, rev. 8
"S3 ViRGE" rev 0x06 at pci0 dev 11 function 0 not configured
ncr0 at pci0 dev 13 function 0 "Symbios Logic 53c875" rev 0x04: ultra wide scsi,
irq 10
scsibus0 at ncr0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <CONNER, CP3500-540MB-3.5, 3236> SCSI2 0/direct fi
xed
sd0(ncr0:0:0): 5.0 MB/s (200 ns, offset 16)
sd0: 518MB, 1807 cyl, 12 head, 49 sec, 512 bytes/sec, 1062516 sec total
st0 at scsibus0 targ 3 lun 0: <HP, C5683A, C005> SCSI2 1/sequential removable
st0: st0(ncr0:3:0): WIDE SCSI (16 bit) enabled
drive empty
probe(ncr0:3:1): 40.0 MB/s (50 ns, offset 16)
pciide1 at pci0 dev 15 function 0 "Promise Ultra100/ATA IDE" rev 0x02: DMA, chan
nel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <Maxtor 96147U8>
wd0: can use 32-bit, PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd0: 16-sector PIO, LBA, 58623MB, 16383 cyl, 16 head, 63 sec, 120060864 sectors
wd1 at pciide1 channel 0 drive 1: <Maxtor 96147U8>
wd1: can use 32-bit, PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd1: 16-sector PIO, LBA, 58623MB, 16383 cyl, 16 head, 63 sec, 120060864 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
wd2 at pciide1 channel 1 drive 0: <Maxtor 96147U8>
wd2: can use 32-bit, PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd2: 16-sector PIO, LBA, 58623MB, 16383 cyl, 16 head, 63 sec, 120060864 sectors
wd3 at pciide1 channel 1 drive 1: <Maxtor 96147H8>
wd3: can use 32-bit, PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd3: 16-sector PIO, LBA, 58623MB, 16383 cyl, 16 head, 63 sec, 120060864 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: 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
vt0 at isa0 port 0x60/16 irq 1: vga 80 col, color, 8 scr, mf2-kbd
pms0 at vt0 irq 12
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask c40 netmask 8c40 ttymask 9c42
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
dkcsum: sd0 matched BIOS disk 80
dkcsum: wd0 matched BIOS disk 81
dkcsum: wd1 matched BIOS disk 82
dkcsum: wd2 matched BIOS disk 83
dkcsum: wd3 matched BIOS disk 84
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02


#fdisk wd0
Disk: wd0 geometry: 1023/255/63 [16434495 sectors]
Offset: 0 Signatures: 0x0,0x0
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
-------------------------------------------------------------------------
0: A6 0 0 1 - 1022 254 63 [ 0 - 16434495] OpenBSD
1: 00 0 0 1 - 0 0 0 [ 0 - 0] unused
2: 00 0 0 1 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 1 - 0 0 0 [ 0 - 0] unused

# disklabel wd0
# using MBR partition 0: type A6 off 0 (0x0) size 16434495 (0xfac53f)
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 96147U8
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 120060864
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]
c: 120060864 0 unused 0 0 # (Cyl. 0 - 119107)
d: 120060800 64 4.2BSD 1024 8192 16 # (Cyl. 0*- 119107)

# raidctl -s raid0
Components:
/dev/wd0d: optimal
/dev/wd1d: optimal
/dev/wd2d: optimal
/dev/wd3d: optimal
No spares.
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.

# fdisk raid0
fdisk: sysctl: Device not configured
Disk: raid0 geometry: 3751898/1/96 [360182208 sectors]
Only LBA values are valid in ending cylinder for partition #0.
Offset: 0 Signatures: 0x0,0x0
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
-------------------------------------------------------------------------
0: A6 0 0 64 - 1023 0 96 [ 63 - 360182145] OpenBSD
1: 00 0 0 1 - 0 0 0 [ 0 - 0] unused
2: 00 0 0 1 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 1 - 0 0 0 [ 0 - 0] unused

# disklabel raid0
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 96
tracks/cylinder: 1
sectors/cylinder: 96
cylinders: 3751898
total sectors: 360182208
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]
c: 360182208 0 unused 0 0 # (Cyl. 0 - 3751897)
f: 167772128 64 4.2BSD 1024 8192 16 # (Cyl. 0*- 1747626)
g: 167772192 192410016 4.2BSD 1024 8192 16 # (Cyl. 2004271
- 3751897)

# newfs -U raid0f

# disklabel raid0
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 96
tracks/cylinder: 1
sectors/cylinder: 96
cylinders: 3751898
total sectors: 360182208
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: 360182145 63 unused 0 0 # (Cyl. 0*- 3751897)
c: 360182208 0 unused 0 0 # (Cyl. 0 - 3751897)



Klaus-Hendrik Wolf

Institut für Medizinische Informatik
Technische Universität Braunschweig
Fallersleber-Tor-Wall 22        Tel: +49-531-391-21 27
38100 Braunschweig              Fax: +49-531-391-21 31
                                  http://khw.ifmi.org




Visit your host, monkey.org