Hello,
I'm not a computer expert, so I will try to explain it as best as possible.
Here some details:

I'm using i386 current.

I've a LSI Megaraid 8x controller on which 3  physical drives are connected. 
>From these 3 physical drives I have configured 3 logical drives:
$ sudo bioctl ami0
Volume  Status               Size Device
 ami0 0 Online       104857600000 sd0     RAID5
      0 Online       400016015360 0:0.0   noencl <        ST3400833NS     3.AE>
      1 Online       400016015360 0:1.0   noencl <        ST3400833NS     3.AE>
      2 Online       400016015360 0:2.0   noencl <        ST3400833NS     3.AE>
 ami0 1 Online        52426702848 sd1     RAID0
      0 Online       400016015360 0:0.0   noencl <        ST3400833NS     3.AE>
      1 Online       400016015360 0:1.0   noencl <        ST3400833NS     3.AE>
      2 Online       400016015360 0:2.0   noencl <        ST3400833NS     3.AE>
 ami0 2 Online       660189741056 sd2     RAID5
      0 Online       400016015360 0:0.0   noencl <        ST3400833NS     3.AE>
      1 Online       400016015360 0:1.0   noencl <        ST3400833NS     3.AE>
      2 Online       400016015360 0:2.0   noencl <        ST3400833NS     3.AE>

Here is my /etc/fstab:
/dev/sd0a / ffs rw 1 1
/dev/sd2a /altroot ffs xx 0 0
/dev/sd1a /tmp ffs rw,nodev,nosuid 1 2
/dev/sd0e /usr ffs rw,nodev,softdep 1 2
/dev/sd1d /usr/obj ffs rw,nodev,nosuid,softdep 1 2
/dev/sd0d /var ffs rw,softdep 1 2
/dev/sd2d /home ffs rw,nodev,nosuid,softdep 1 2
/dev/sd1e /home/sources ffs rw,nodev,nosuid,softdep 1 2

Sometimes when I boot sd2 is not mountable as the disklabels have disappeared 
on the sd2 disk.
Here is a "disklabel sd2", when in single user mode and when the disklabels 
have disappeared.
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: Host drive  #02
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 629606
total sectors: 1289433088
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:    1289425032            63  unused      0     0      # Cyl     0*-629602*
  c:    1289433088             0  unused      0     0      # Cyl     0 -629605

Here is the disklabel when everything is ok:
# Inside MBR partition 3: type A6 start 63 size 1289425032
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: Host drive
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 629606
total sectors: 1289433088
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:       4194304             0  4.2BSD   2048 16384  323 # Cyl     0 -  2047
  c:    1289433088             0  unused      0     0      # Cyl     0 -629605
  d:    1285238784       4194304  4.2BSD   2048 16384  323 # Cyl  2048 -629605

I'm able to restore the labels with:
disklabel -R sd2 /var/backups/disklabel.sd2.current
But this is pretty scary ... as you see in fstab, one of those partitions is my 
/home directory

When I shutdown the workstation, everything looks fine, it does not show me any 
problems. 
>From time to time at random intervals this problems appears.

I would really appreciate if someone could give me some ideas or help on how to 
solve this problem.

Here is my dmesg:
OpenBSD 4.0-current (GENERIC.MP) #1149: Tue Jan 30 02:17:13 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz ("GenuineIntel" 686-class) 2.67 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16
real mem  = 3220271104 (3144796K)
avail mem = 2943844352 (2874848K)
using 4256 buffers containing 161136640 bytes (157360K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 10/30/06, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.4 @ 0xf0690 (74 entries)
bios0: stem manufacturer P5WDG2 WS PRO
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 3.0 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf71a0/320 (18 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GB LPC" rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc0000/0xd000 0xcd000/0x2200
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP APIC OEMB HPET MCFG
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
LAPIC: acpi_proc_id 1, apic_id 0, flags 0x1
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266 MHz
LAPIC: acpi_proc_id 2, apic_id 1, flags 0x1
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz ("GenuineIntel" 686-class) 2.67 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16
LAPIC: acpi_proc_id 3, apic_id 82, flags 0x0
LAPIC: acpi_proc_id 4, apic_id 83, flags 0x0
IOAPIC: acpi_ioapic_id 2, address 0xfec00000, global_int_base 0x0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
IOAPIC: acpi_ioapic_id 3, address 0xfec10000, global_int_base 0x18
ioapic1 at mainbus0: apid 3 pa 0xfec10000, version 20, 24 pins
OVERRIDE: bus 0, source 0, global_int 2, flags 0
OVERRIDE: bus 0, source 9, global_int 9, flags d
OVERRIDE: bus 0, source 0, global_int 2, flags 0
OVERRIDE: bus 0, source 9, global_int 9, flags d
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 6 (P0P1)
acpiprt2 at acpi0: bus 0 (P0P2)
acpiprt3 at acpi0: bus 1 (P0P3)
acpiprt4 at acpi0: bus 2 (P0P8)
acpiprt5 at acpi0: bus 0 (P0P9)
acpiprt6 at acpi0: bus 3 (P0P4)
acpiprt7 at acpi0: bus 4 (PXHA)
acpibtn at acpi0 not configured
acpibtn at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82975X MCH" rev 0xc0
ppb0 at pci0 dev 1 function 0 "Intel 82975X PCIE" rev 0xc0
pci1 at ppb0 bus 6
vga1 at pci1 dev 0 function 0 "ATI Radeon X300" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X300 Sec" rev 0x00 at pci1 dev 0 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 2 int 
19 (irq 11)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x11d4 (rev. 2.0), HDA version 1.0
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci2 at ppb1 bus 3
ppb2 at pci2 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 4
ppb3 at pci3 dev 2 function 0 "Intel IOP331 PCIX-PCIX" rev 0x0a
pci4 at ppb3 bus 5
ami0 at pci4 dev 14 function 0 "Symbios Logic MegaRAID SATA 4x/8x" rev 0x0a: 
apic 3 int 4 (irq 10)
ami0: LSI 3008, 32b, FW 814D, BIOS vH431, 128MB RAM
ami0: 1 channels, 0 FC loops, 3 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 100000MB, 100000 cyl, 64 head, 32 sec, 512 bytes/sec, 204800000 sec total
sd1 at scsibus0 targ 1 lun 0: <AMI, Host drive #01, > SCSI2 0/direct fixed
sd1: 49998MB, 49998 cyl, 64 head, 32 sec, 512 bytes/sec, 102395904 sec total
sd2 at scsibus0 targ 2 lun 0: <AMI, Host drive #02, > SCSI2 0/direct fixed
sd2: 629606MB, 629606 cyl, 64 head, 32 sec, 512 bytes/sec, 1289433088 sec total
scsibus1 at ami0: 16 targets
ppb4 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01
pci5 at ppb4 bus 2
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8052" rev 0x21, Yukon-2 EC 
rev. A3 (0x2): apic 2 int 16 (irq 10)
msk0 at mskc0 port A, address 00:18:f3:29:a2:53
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 20 
(irq 5)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 17 
(irq 7)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 18 
(irq 3)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 19 
(irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int 20 
(irq 5)
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb5 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xe1
pci6 at ppb5 bus 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <_NEC, DVD_RW ND-4571A, 1-01> SCSI0 5/cdrom 
removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus3 at atapiscsi1: 2 targets
cd1 at scsibus3 targ 0 lun 0: <TSSTcorp, DVD-ROM SH-D162C, TS04> SCSI0 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 23 (irq 10) for native-PCI interrupt
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 23 
(irq 0)
iic0 at ichiic0
isa0 at ichpcib0
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
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0xc1)
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
ioapic0: pin 19 shares different IPL interrupts (40..90), degraded performance
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
apm0: disconnected
uhub5 at uhub4 port 2
uhub5: NEC Corporation USB2.0 Hub Controller, rev 2.00/1.00, addr 2
uhub5: 4 ports with 4 removable, self powered, single transaction translator
umass0 at uhub5 port 1 configuration 1 interface 0
umass0: USB2.0 External Mass Storage Device, rev 2.00/0.01, addr 3
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets
cd2 at scsibus4 targ 1 lun 0: <Slimtype, DVDRW SOSW-852S, PSX3> SCSI0 5/cdrom 
removable
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73, addr 2, 
iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1
uhidev1: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73, addr 2, 
iclass 3/0
uhidev1: 1 report ids
uhid0 at uhidev1 reportid 1: input=7, output=0, feature=0
uhidev2 at uhub1 port 2 configuration 1 interface 0
uhidev2: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), rev 1.10/3.00, 
addr 3, iclass 3/1
ums0 at uhidev2: 5 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: sd0 matches BIOS drive 0x80
dkcsum: sd1 matches BIOS drive 0x81
dkcsum: sd2 matches BIOS drive 0x82
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

Reply via email to