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

Re: trouble with second raid set



More info.. raid1 gets created and formatted fine - I can mount and
write to it. But it's the reboot that causes the problem. Is it
/etc/fstab thats wrong - or does doing
raidctl -A yes raid1
somehow cancel mess up raid0?


# disklabel sd0     

# using MBR partition 3: type A6 off 63 (0x3f) size 20964762 (0x13fe59a)
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: VMware Virtual S
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 25
sectors/cylinder: 100
cylinders: 1441797
total sectors: 20971520
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:   511937       63    4.2BSD     2048 16384   352   # 
(Cyl.    0*-5119)  
b:    65500   512000      swap                        # 
(Cyl.5120 - 5774)  
c: 20971520        0    unused        0     0         #
(Cyl.    0 - 209715*)  
d: 10485800   577500      RAID                        # 
(Cyl. 5775 -110632)  
e:  9901525 11063300      RAID                        # 
(Cyl. 110633 - 209648*)

# disklabel sd1 

# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: VMware Virtual S
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 25
sectors/cylinder: 100
cylinders: 1441797
total sectors: 20971520
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:   511937       63    4.2BSD     2048 16384   352   # 
(Cyl.  0*-5119) 
b:    65500   512000      swap                        #
(Cyl.5120 -5774) 
c: 20971520        0    unused        0     0         #
(Cyl.  0-209715*)  
d: 10485800   577500      RAID                        # 
(Cyl.5775 - 110632)  
e:  9901525 11063300      RAID                        # (Cyl. 110633 -
209648*)

# newfs raid1a
Warning: 640 sector(s) in last cylinder unallocated
/dev/rraid1a:   9901440 sectors in 9670 cylinders of 8 tracks, 128
sectors        4834.7MB in 30 cyl groups (323 c/g, 161.50MB/g, 20608
i/g) super-block backups (for fsck -b #) at:
 32, 330912, 661792, 992672, 1323552, 1654432, 1985312, 2316192,
2646048, 2976928, 3307808, 3638688, 3969568, 4300448, 4631328, 4962208,
5292064, 5622944, 5953824, 6284704, 6615584, 6946464, 7277344, 7608224,
7938080, 8268960, 8599840, 8930720, 9261600, 9592480,

# raidctl -A yes raid0                                                  
raid0: Autoconfigure: Yes

# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/raid0a   489M   207M   258M    44%    /
/dev/raid0d  1006M   2.0K   955M     0%    /home
/dev/raid0e   294M   2.0K   280M     0%    /tmp
/dev/raid0f  1006M   174M   781M    18%    /usr
/dev/raid0g   1.9G   7.6M   1.8G     0%    /var

# mount /dev/raid1a /mnt  
# ls /mnt/                                                              
# touch /mnt/test                 
# ls /mnt/        
test
# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/raid0a   489M   207M   258M    44%    /
/dev/raid0d  1006M   2.0K   955M     0%    /home
/dev/raid0e   294M   2.0K   280M     0%    /tmp
/dev/raid0f  1006M   174M   781M    18%    /usr
/dev/raid0g   1.9G   7.6M   1.8G     0%    /var
/dev/raid1a   4.6G   2.0K   4.4G     0%    /mnt

# cat /etc/fstab
/dev/raid0a / ffs rw 1 1
/dev/raid0d /home ffs rw,nodev,nosuid 1 2
/dev/raid0e /tmp ffs rw,nodev,nosuid 1 2
/dev/raid0f /usr ffs rw,nodev 1 2
/dev/raid0g /var ffs rw,nodev,nosuid 1 2
/dev/raid1a /data ffs rw,nodev,nosuid 1 2

reboot

now it boots from the minimal install on sd0a

# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/sd0a     245M   116M   117M    50%    /


# dmesg
oting...
OpenBSD 3.4 (GENERIC) #0: Thu Jan 30 13:20:25 PST 2003
    root@challenger.sol:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Tualatin) ("GenuineIntel" 686-class) 737 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36
,MMX,FXSR,SIMD real mem  = 200900608 (196192K)
avail mem = 179658752 (175448K)
using 2478 buffers containing 10149888 bytes (9912K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(62) BIOS, date 03/28/03, BIOS32 rev. 0 @
0xfd880 apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev
0x00) pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1a00! 0xdc000/0x4000!
0xe4000/0x4000! pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, chan nel 1 configured to
compatibility atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <NECVMWar, VMware IDE CDR00, 1.00> SCSI0
5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x00: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x08 at pci0 dev 7 function 3 not
configured vga1 at pci0 dev 15 function 0 vendor "VMware", unknown
product 0x405 rev 0x00 wsdisplay0 at vga1: console (80x25, vt100
emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
bha3 at pci0 dev 16 function 0 "BusLogic MultiMaster" rev 0x01: irq 11,
BusLogic 9xxC SCSI bha3: model BT-958, firmware 5.07B
bha3: sync, parity
scsibus1 at bha3: 8 targets
sd0 at scsibus1 targ 0 lun 0: <VMware,, VMware Virtual S, 1.0> SCSI2
0/direct fixed sd0: 10240MB, 1441797 cyl, 25 head, 0 sec, 512 bytes/sec,
20971520 sec total sd1 at scsibus1 targ 1 lun 0: <VMware,, VMware
Virtual S, 1.0> SCSI2 0/direct fixed sd1: 10240MB, 1441797 cyl, 25 head,
0 sec, 512 bytes/sec, 20971520 sec total le1 at pci0 dev 17 function 0
"AMD 79c970 PCnet-PCI LANCE" rev 0x10: irq 10 le1: address
00:0c:29:71:25:13 le1: 8 receive buffers, 2 transmit buffers
eap0 at pci0 dev 18 function 0 "Ensoniq AudioPCI97" rev 0x02: irq 9
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
audio0 at eap0
isa0 at pcib0
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
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>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
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
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask 4a40 netmask 4e40 ttymask 5ec2
pctr: 686-class user-level performance counters enabled
mtrr: CPU supports MTRRs but not enabled
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition on opcode 0x0
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
raid0 (root): (RAID Level 1) total number of sectors is 10485632 (5119
MB) as root dkcsum: sd0 matched BIOS disk 80
dkcsum: sd1 matched BIOS disk 81
rootdev=0x1300 rrootdev=0x3600 rawdev=0x3602
raid1: Component /dev/sd0e being configured at row: 0 col: 0
         Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
         Version: 2 Serial Number: 101 Mod Counter: 82
         Clean: Yes Status: 0
raid1: Component /dev/sd1e being configured at row: 0 col: 1
         Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
         Version: 2 Serial Number: 101 Mod Counter: 82
         Clean: Yes Status: 0
raid1 (root)syncing disks... done
raid1 detached
raid0 detached
rebooting...
OpenBSD 3.4 (GENERIC) #0: Thu Jan 30 13:20:25 PST 2003
    root@challenger.sol:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Tualatin) ("GenuineIntel" 686-class) 735 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36
,MMX,FXSR,SIMD real mem  = 200900608 (196192K)
avail mem = 179658752 (175448K)
using 2478 buffers containing 10149888 bytes (9912K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(62) BIOS, date 03/28/03, BIOS32 rev. 0 @
0xfd880 apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev
0x00) pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1a00! 0xdc000/0x4000!
0xe4000/0x4000! pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, chan nel 1 configured to
compatibility atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <NECVMWar, VMware IDE CDR00, 1.00> SCSI0
5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x00: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x08 at pci0 dev 7 function 3 not
configured vga1 at pci0 dev 15 function 0 vendor "VMware", unknown
product 0x405 rev 0x00 wsdisplay0 at vga1: console (80x25, vt100
emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
bha3 at pci0 dev 16 function 0 "BusLogic MultiMaster" rev 0x01: irq 11,
BusLogic 9xxC SCSI bha3: model BT-958, firmware 5.07B
bha3: sync, parity
scsibus1 at bha3: 8 targets
sd0 at scsibus1 targ 0 lun 0: <VMware,, VMware Virtual S, 1.0> SCSI2
0/direct fixed sd0: 10240MB, 1441797 cyl, 25 head, 0 sec, 512 bytes/sec,
20971520 sec total sd1 at scsibus1 targ 1 lun 0: <VMware,, VMware
Virtual S, 1.0> SCSI2 0/direct fixed sd1: 10240MB, 1441797 cyl, 25 head,
0 sec, 512 bytes/sec, 20971520 sec total le1 at pci0 dev 17 function 0
"AMD 79c970 PCnet-PCI LANCE" rev 0x10: irq 10 le1: address
00:0c:29:71:25:13 le1: 8 receive buffers, 2 transmit buffers
eap0 at pci0 dev 18 function 0 "Ensoniq AudioPCI97" rev 0x02: irq 9
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
audio0 at eap0
isa0 at pcib0
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
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>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
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
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask 4a40 netmask 4e40 ttymask 5ec2
pctr: 686-class user-level performance counters enabled
mtrr: CPU supports MTRRs but not enabled
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition on opcode 0x0
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
raid0 (root): (RAID Level 1) total number of sectors is 10485632 (5119
MB) dkcsum: sd0 matched BIOS disk 80
dkcsum: sd1 matched BIOS disk 81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

now after boot I get again... 
# disklabel raid1 
disklabel: ioctl DIOCGDINFO: Device not configured


# disklabel raid0 
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 10239
total sectors: 10485632
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:  1024000        0    4.2BSD     2048 16384   323   # 
(Cyl.    0 -999)  
b:   524288  1024000      swap                        # 
(Cyl. 1000- 1511)  
c: 10485632        0    unused        0     0         # 
(Cyl.   0 - 10239*)  
d:  2097152  1548288    4.2BSD     2048 16384   323   #
(Cyl. 1512 - 3559)  
e:   614400  3645440    4.2BSD     2048 16384   323 
 # (Cyl. 3560 - 4159)  
f:  2097152  4259840    4.2BSD     2048 16384   323   # 
(Cyl. 4160 -
6207)  
g:  4128640  6356992    4.2BSD     2048 16384   323   # 
(Cyl.6208 - 10239*)