Re: Serial ATA RAID ctrl on PCI

2008-10-29 Thread Noah Pugsley
For example:

# bioctl arc0
Volume  Status   Size Device 
 arc0 0 Online  199336448 sd0 RAID6
  0 Online   500107862016 0:0.0   noencl ST3500320AS SD15
  1 Online   500107862016 0:1.0   noencl ST3500630AS 3.AAG
  2 Online   500107862016 0:2.0   noencl ST3500320AS SD15
  3 Online   500107862016 0:3.0   noencl ST3500320AS SD15
  4 Online   500107862016 0:4.0   noencl ST3500320AS SD15
  5 Online   500107862016 0:5.0   noencl ST3500320AS SD15

# sysctl hw.sensors.arc0
hw.sensors.arc0.drive0=online (sd0), OK

 From /etc/sensorsd.conf

drive:command=echo %t failed with status: %s %2 on %x | mail -s 
`hostname` sensorsd CRITICAL \(RAID\) alarm



Stuart Henderson wrote:
 On 2008-10-28, Don Jackson [EMAIL PROTECTED] wrote:
   
 On Oct 28, 2008, at 3:47 PM, Robert Franklin wrote:

 
 Did you read the man page for arc(4)? It says right there.
   
 I did, and I'm not seeing anything.
 

 ...
  arc supports alarm control and monitoring of volumes configured on the
  controllers via the bio(4) interface and the bioctl(8) utility.
 ...



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread J.C. Roberts
On Monday 27 October 2008, Mikolaj Kucharski wrote:
 Hi,

 I'm looking SATA controller with h/w RAID support which is working on
 OpenBSD and has:

 - minimum 4 SATA ports (internal preferably)
 - Built-in RAID 0, RAID 1, RAID 1+0, RAID 5
 - Hot swap (not a must)
 - PCI bus
 - large drives support (500GB)
 - use as RAID and non-RAID controller (not a must)

You didn't mention SATA 150 versus SATA 300 (aka SATA 2) ?

You didn't mention PCI width (32-bit versus 64-bit) ?

You didn't mention PCI speed (33, 66, 100, 133 MHz) ?

Attempting Hot-Swap with SATA drives is normally an invitation to 
disaster.

The following are listed as supported on: 
http://www.openbsd.org/i386.html

LSI MegaRAID SATA 150-4(four disk) PCI 64-bit/66 MHz 
LSI MegaRAID SATA 150-6(six disk)  PCI 64-bit/66 MHz 
LSI MegaRAID SATA 300-4X   (four disk) ?
LSI MegaRAID SATA 300-4XLP (four disk) ?
LSI MegaRAID SATA 300-8X   (eight disk) PCI-X 64-bit, 133/100/66 MHz
LSI MegaRAID SATA 300-8XLP (eight disk) ?

You can get more info on the above from here:
http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sata/index.html

For some strange reason LSI is no longer listing the plain 300-4X but 
it is still listing the 300-4XLP

If you have the wild idea of taking a four 500+GB drives and striping 
them together into a single partition of 2+TB size, realize the sane 
limit on OpenBSD 4.3 is only 1TB. I remember seeing Marco@ post 
something about building a 2TB partition, but he's a trained 
professional and licensed to do crazy stuff :-)

-JCR



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Claudio Jeker
On Mon, Oct 27, 2008 at 11:14:50PM +, Mikolaj Kucharski wrote:
 Hi,
 
 I'm looking SATA controller with h/w RAID support which is working on
 OpenBSD and has:
 
 - minimum 4 SATA ports (internal preferably)
 - Built-in RAID 0, RAID 1, RAID 1+0, RAID 5
 - Hot swap (not a must)
 - PCI bus
 - large drives support (500GB)
 - use as RAID and non-RAID controller (not a must)
 

Have a look at the man -k RAID output.

Especially arc(4) and ami(4) are great SATA RAID controllers on OpenBSD.
-- 
:wq Claudio



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Don Jackson

On Oct 28, 2008, at 5:46 AM, Claudio Jeker wrote:


Have a look at the man -k RAID output.

Especially arc(4) and ami(4) are great SATA RAID controllers on  
OpenBSD.


Does OpenBSD's  arc(4) driver support any method to report RAID status  
and/or failures?


If not, then how is an admin supposed to understand the health of arc  
supported RAID array?




Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Robert Franklin
Did you read the man page for arc(4)? It says right there.


On Tue, Oct 28, 2008 at 4:24 PM, Don Jackson [EMAIL PROTECTED] wrote:
 On Oct 28, 2008, at 5:46 AM, Claudio Jeker wrote:

 Have a look at the man -k RAID output.

 Especially arc(4) and ami(4) are great SATA RAID controllers on OpenBSD.

 Does OpenBSD's  arc(4) driver support any method to report RAID status
 and/or failures?

 If not, then how is an admin supposed to understand the health of arc
 supported RAID array?



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Don Jackson
On Oct 28, 2008, at 3:47 PM, Robert Franklin wrote:

 Did you read the man page for arc(4)? It says right there.

I did, and I'm not seeing anything.

It does talk about this:
   -a alarm-function
  Control the RAID card's alarm functionality, if supported.
  alarm-function may be one of:

  disable  Disable the alarm on the RAID controller.
  enable   Enable the alarm on the RAID controller.
  get  Retrieve the current alarm state (enabled or  
disabled).
  silence | quiet
   Silence the alarm if it is currently beeping.

  The alarm-function may be specified as given above, or  
by the
  first letter only (e.g. -a e).
But this all seems related to turning on/off the beeper, rather than  
giving me some textual indication of the health of the raid system.

If my server is in a colo miles away, the alarm buzzer is not going  
to be particularly useful to me.

Compare this to the ami driver, which states:
 Logical disk status is exposed under the hw.sensors sysctl(8) and  
can be
  monitored using sensorsd(8).  For example:

$ sysctl hw.sensors.ami0
hw.sensors.ami0.drive0=online (sd0), OK
hw.sensors.ami0.drive1=degraded (sd1), WARNING
hw.sensors.ami0.drive2=failed (sd2), CRITICAL
This exactly the kind of thing I am asking if arc supports, and if it  
doesn't (which is what I suspect), then IMHO, OpenBSD's support for  
Areca cards is not as awesome as its support for LSI Megaraid boards




 On Tue, Oct 28, 2008 at 4:24 PM, Don Jackson [EMAIL PROTECTED]  
 wrote:
 On Oct 28, 2008, at 5:46 AM, Claudio Jeker wrote:

 Have a look at the man -k RAID output.

 Especially arc(4) and ami(4) are great SATA RAID controllers on  
 OpenBSD.

 Does OpenBSD's  arc(4) driver support any method to report RAID  
 status
 and/or failures?

 If not, then how is an admin supposed to understand the health of arc
 supported RAID array?



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Jonathan Gray
On Tue, Oct 28, 2008 at 04:26:11PM -0700, Don Jackson wrote:
 On Oct 28, 2008, at 3:47 PM, Robert Franklin wrote:
 
  Did you read the man page for arc(4)? It says right there.
 
 I did, and I'm not seeing anything.
 
 It does talk about this:
-a alarm-function
   Control the RAID card's alarm functionality, if supported.
   alarm-function may be one of:
 
   disable  Disable the alarm on the RAID controller.
   enable   Enable the alarm on the RAID controller.
   get  Retrieve the current alarm state (enabled or  
 disabled).
   silence | quiet
Silence the alarm if it is currently beeping.
 
   The alarm-function may be specified as given above, or  
 by the
   first letter only (e.g. -a e).
 But this all seems related to turning on/off the beeper, rather than  
 giving me some textual indication of the health of the raid system.
 
 If my server is in a colo miles away, the alarm buzzer is not going  
 to be particularly useful to me.
 
 Compare this to the ami driver, which states:
  Logical disk status is exposed under the hw.sensors sysctl(8) and  
 can be
   monitored using sensorsd(8).  For example:
 
 $ sysctl hw.sensors.ami0
 hw.sensors.ami0.drive0=online (sd0), OK
 hw.sensors.ami0.drive1=degraded (sd1), WARNING
 hw.sensors.ami0.drive2=failed (sd2), CRITICAL
 This exactly the kind of thing I am asking if arc supports, and if it  
 doesn't (which is what I suspect), then IMHO, OpenBSD's support for  
 Areca cards is not as awesome as its support for LSI Megaraid boards

Yes, it should work the same as ami/mfi.

ie:

hw.sensors.arc0.drive0=online (sd0), OK
hw.sensors.arc0.drive1=online (sd1), OK
hw.sensors.arc0.drive2=online (sd2), OK
hw.sensors.arc0.drive3=online (sd3), OK
hw.sensors.arc0.drive4=online (sd4), OK
hw.sensors.arc0.drive5=online (sd5), OK
hw.sensors.arc0.drive6=online (sd6), OK
hw.sensors.arc0.drive7=online (sd7), OK
hw.sensors.arc0.drive8=online (sd8), OK
hw.sensors.arc0.drive9=online (sd9), OK
hw.sensors.arc0.drive10=online (sd10), OK

If you have an sgpio enabled controller you can toggle LEDs
on disk bays etc.



Re: Serial ATA RAID ctrl on PCI

2008-10-28 Thread Stuart Henderson
On 2008-10-28, Don Jackson [EMAIL PROTECTED] wrote:
 On Oct 28, 2008, at 3:47 PM, Robert Franklin wrote:

 Did you read the man page for arc(4)? It says right there.

 I did, and I'm not seeing anything.

...
 arc supports alarm control and monitoring of volumes configured on the
 controllers via the bio(4) interface and the bioctl(8) utility.
...



Serial ATA RAID ctrl on PCI

2008-10-27 Thread Mikolaj Kucharski
Hi,

I'm looking SATA controller with h/w RAID support which is working on
OpenBSD and has:

- minimum 4 SATA ports (internal preferably)
- Built-in RAID 0, RAID 1, RAID 1+0, RAID 5
- Hot swap (not a must)
- PCI bus
- large drives support (500GB)
- use as RAID and non-RAID controller (not a must)

-- 
best regards
q#