Pierre Riteau wrote: [re: ami(4) RAID card]
I've never used such hardware, but isn't sensorsd a good tool to monitor the drives attached? ami(4) tells me that disk status is exposed under hw.sensors.
Draw your own conclusions: ~ $ sysctl hw.sensors hw.sensors.ami0.drive0=online (sd0), OK hw.sensors.ami0.drive1=online (sd1), OK Dell PowerEdge 2800, seems to be a bit lean on detected sensors, sadly, but ami(4) does let its state be known. Compare with: ~ $ sudo bioctl ami0 Password: Volume Status Size Device ami0 0 Online 73274490880 sd0 RAID1 0 Online 73403465728 0:1.0 noencl <SEAGATE ST373307LC 6D01> 1 Online 73403465728 0:0.0 noencl <SEAGATE ST373307LC 6D01> ami0 1 Online 439646945280 sd1 RAID5 0 Online 73403465728 1:0.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 1 Online 73403465728 1:1.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 2 Online 73403465728 1:2.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 3 Online 73403465728 1:3.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 4 Online 73403465728 1:4.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 5 Online 73403465728 1:5.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> 6 Online 73403465728 1:8.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> ami0 2 Hot spare 73403465728 1:9.0 noencl <MAXTOR ATLAS15K2_73SCA JNZM> The simplicity of the hw.sensors.ami output is attractive, but I like detail. I'm not going to try to convince anyone of one way or the other. I'm a hardware guy. Maybe you just want to know there are two "drives" there and that neither is in distress. I want to see the individual elements. If a drive goes into distress, you will either go to the machine or use bioctl anyway, so I'd just rather have the whole thing there. Fully dmesg follows for the curious. Well, that, and I get my hands on a cutting-edge three-year-old computer relatively rarely, so I gotta gloat, even if your new laptop has more processor and RAM. :) Nick. OpenBSD 4.2-current (GENERIC.MP) #1532: Tue Jan 1 15:12:49 MST 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3220570112 (3071MB) avail mem = 3111923712 (2967MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf9a10 (87 entries) bios0: vendor Dell Computer Corporation version "A02" date 01/19/2005 bios0: Dell Computer Corporation PowerEdge 2800 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC SPCR HPET MCFG acpi0: wakeup devices PCI0(S5) PALO(S5) PBLO(S5) VPR0(S5) PBHI(S5) VPR1(S5) PICH(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Xeon(TM) CPU 3.00GHz, 2993.11 MHz cpu0: FPU,VME,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,CNXT-ID,CX16,xTPR,NXE,LONG cpu0: 2MB 64b/line 8-way L2 cache cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(TM) CPU 3.00GHz, 2992.70 MHz cpu1: FPU,VME,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,CNXT-ID,CX16,xTPR,NXE,LONG cpu1: 2MB 64b/line 8-way L2 cache cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Xeon(TM) CPU 3.00GHz, 2992.70 MHz cpu2: FPU,VME,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,CNXT-ID,CX16,xTPR,NXE,LONG cpu2: 2MB 64b/line 8-way L2 cache cpu3 at mainbus0: apid 7 (application processor) cpu3: Intel(R) Xeon(TM) CPU 3.00GHz, 2992.70 MHz cpu3: FPU,VME,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,CNXT-ID,CX16,xTPR,NXE,LONG cpu3: 2MB 64b/line 8-way L2 cache ioapic0 at mainbus0 apid 8 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 8 ioapic1 at mainbus0 apid 9 pa 0xfec80000, version 20, 24 pins ioapic1: misconfigured as apic 0, remapped to apid 9 ioapic2 at mainbus0 apid 10 pa 0xfec83000, version 20, 24 pins ioapic2: misconfigured as apic 0, remapped to apid 10 ioapic3 at mainbus0 apid 11 pa 0xfec81000, version 20, 24 pins ioapic3: misconfigured as apic 0, remapped to apid 11 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PALO) acpiprt2 at acpi0: bus 2 (DOBA) acpiprt3 at acpi0: bus 3 (DOBB) acpiprt4 at acpi0: bus 7 (PBLO) acpiprt5 at acpi0: bus 13 (VPR0) acpiprt6 at acpi0: bus 10 (PBHI) acpiprt7 at acpi0: bus 11 (PXB1) acpiprt8 at acpi0: bus 12 (PXB2) acpiprt9 at acpi0: bus 4 (VPR1) acpiprt10 at acpi0: bus 5 (PXC1) acpiprt11 at acpi0: bus 6 (PXC2) acpiprt12 at acpi0: bus 16 (PICH) acpicpu0 at acpi0 acpicpu1 at acpi0 acpicpu2 at acpi0 acpicpu3 at acpi0 ipmi at mainbus0 not configured pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 "Intel E7520 MCH" rev 0x09 ppb0 at pci0 dev 2 function 0 "Intel MCH PCIE" rev 0x09 pci1 at ppb0 bus 1 ppb1 at pci1 dev 0 function 0 "Intel IOP332 PCIE-PCIX" rev 0x06 pci2 at ppb1 bus 2 ami0 at pci2 dev 14 function 0 "Dell PERC 4e/Di" rev 0x06: apic 9 int 14 (irq 7) ami0: Dell 16e, 32b, FW 521S, BIOS vH430, 256MB RAM ami0: 2 channels, 0 FC loops, 2 logical drives scsibus0 at ami0: 40 targets sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec total sd1 at scsibus0 targ 1 lun 0: <AMI, Host drive #01, > SCSI2 0/direct fixed sd1: 419280MB, 53450 cyl, 255 head, 63 sec, 512 bytes/sec, 858685440 sec total scsibus1 at ami0: 16 targets safte0 at scsibus1 targ 6 lun 0: <PE/PV, 1x2 SCSI BP, 1.0> SCSI2 3/processor fixed scsibus2 at ami0: 16 targets safte1 at scsibus2 targ 6 lun 0: <PE/PV, 1x8 SCSI BP, 1.0> SCSI2 3/processor fixed ppb2 at pci1 dev 0 function 2 "Intel IOP332 PCIE-PCIX" rev 0x06 pci3 at ppb2 bus 3 ppb3 at pci0 dev 3 function 0 "Intel MCH PCIE" rev 0x09 pci4 at ppb3 bus 4 ppb4 at pci4 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09 pci5 at ppb4 bus 5 ppb5 at pci4 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09 pci6 at ppb5 bus 6 ppb6 at pci0 dev 4 function 0 "Intel MCH PCIE" rev 0x09: apic 8 int 16 (irq 0) pci7 at ppb6 bus 7 ppb7 at pci0 dev 5 function 0 "Intel MCH PCIE" rev 0x09 pci8 at ppb7 bus 10 ppb8 at pci8 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09 pci9 at ppb8 bus 11 em0 at pci9 dev 7 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: apic 10 int 0 (irq 11), address 00:14:22:15:9e:be ppb9 at pci8 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09 pci10 at ppb9 bus 12 em1 at pci10 dev 8 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: apic 10 int 1 (irq 11), address 00:14:22:15:9e:bf ppb10 at pci0 dev 6 function 0 "Intel MCH PCIE" rev 0x09: apic 8 int 16 (irq 0) pci11 at ppb10 bus 13 uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 8 int 16 (irq 11) uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 8 int 19 (irq 10) uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 8 int 18 (irq 7) ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 8 int 23 (irq 3) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb11 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2 pci12 at ppb11 bus 16 "Dell DRAC 4" rev 0x00 at pci12 dev 5 function 0 not configured "Dell DRAC 4 Virtual UART" rev 0x00 at pci12 dev 5 function 1 not configured "Dell DRAC 4 SMIC" rev 0x00 at pci12 dev 5 function 2 not configured pciide0 at pci12 dev 6 function 0 "CMD Technology PCI0680" rev 0x02 pciide0: bus-master DMA support present pciide0: channel 0 wired to native-PCI mode pciide0: using apic 8 int 23 (irq 3) for native-PCI interrupt atapiscsi0 at pciide0 channel 0 drive 0 scsibus3 at atapiscsi0: 2 targets sd2 at scsibus3 targ 0 lun 0: <DELL, VSF, 0123> SCSI0 0/direct removable sd2: drive offline atapiscsi1 at pciide0 channel 0 drive 1 scsibus4 at atapiscsi1: 2 targets cd0 at scsibus4 targ 0 lun 0: <DELL, VCD, 0133> SCSI0 5/cdrom removable sd2(pciide0:0:0): using PIO mode 3 cd0(pciide0:0:1): using PIO mode 3 pciide0: channel 1 wired to native-PCI mode vga1 at pci12 dev 13 function 0 "ATI Radeon VE QY" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02 pciide1 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi2 at pciide1 channel 0 drive 0 scsibus5 at atapiscsi2: 2 targets cd1 at scsibus5 targ 0 lun 0: <HL-DT-ST, CDRW/DVD GCC4244, B101> SCSI0 5/cdrom removable cd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide1: channel 1 disabled (no drives) usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console 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 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec uhub4 at uhub0 port 3 "Dell product 0xa001" rev 2.00/0.00 addr 2 umass0 at uhub4 port 2 configuration 1 interface 0 "Western Digital External HDD" rev 2.00/1.06 addr 3 umass0: using SCSI over Bulk-Only scsibus6 at umass0: 2 targets sd3 at scsibus6 targ 1 lun 0: <WD, 5000AAK External, 1.06> SCSI0 0/direct fixed sd3: 476940MB, 60801 cyl, 255 head, 63 sec, 512 bytes/sec, 976773168 sec total uhidev0 at uhub1 port 1 configuration 1 interface 0 "Dell DRAC4" rev 1.10/0.00 addr 2 uhidev0: 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 "Dell DRAC4" rev 1.10/0.00 addr 2 uhidev1: iclass 3/1 ums0 at uhidev1 ums0: X report 0x0002 not supported softraid0 at root root on sd0a swap on sd0b dump on sd0b