Re: Getting info on hardware RAID

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



DELL had 2 main family of RAID hardware using 2 different drivers.
Once is aacraid, and I manage them using afacli (command line tool)

Here is a getting started :-)

[root@max ~]# ls -l /dev/afa0
crw-r--r--  1 root root 254, 0 Aug 27 13:30 /dev/afa0
[root@max ~]# afacli
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DELL PowerEdge Expandable RAID Controller 2 Command Line Interface
Copyright 1998-2004 Adaptec, Inc. All rights reserved
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CLI > open afa0
Executing: open "afa0"

AFA0> container list
Executing: container list
Num          Total  Oth Chunk          Scsi   Partition
Label Type   Size   Ctr Size   Usage   B:ID:L Offset:Size
----- ------ ------ --- ------ ------- ------ -------------
 0    RAID-5 1.09TB       64KB Valid   0:00:0 64.0KB: 279GB
 /dev/sda             RAID5_5x300      0:01:0 64.0KB: 279GB
                                       0:05:0 64.0KB: 279GB
                                       0:03:0 64.0KB: 279GB
                                       0:04:0 64.0KB: 279GB

 1    Volume  279GB            Valid   0:02:0 64.0KB: 279GB
 /dev/sdb             VOLUME_1X300


AFA0> disk show space
Executing: disk show space

Scsi B:ID:L Usage      Size
----------- ---------- -------------
  0:00:0     Container 64.0KB: 279GB
  0:00:0     Free       279GB: 149MB
  0:01:0     Container 64.0KB: 279GB
  0:01:0     Free       279GB: 149MB
  0:02:0     Container 64.0KB: 279GB
  0:02:0     Free       279GB: 405MB
  0:03:0     Container 64.0KB: 279GB
  0:03:0     Free       279GB: 149MB
  0:04:0     Container 64.0KB: 279GB
  0:04:0     Free       279GB: 149MB
  0:05:0     Container 64.0KB: 279GB
  0:05:0     Free       279GB: 149MB

AFA0> help
Executing: help
close - Closes the currently opened controller when all access is completed.
exit - Closes the currently opened controller and exits the CLI.
open - Opens a controller for use in the CLI. The open command prepares a particular controller for access by the CLI.
history_size - Set size of history buffer.
reset_window - Reset the window.
container - Container operation commands.
    container add_level - Creates a multilevel volume container which will contain the specified container as its only element.
    container create - Creates various containers and items.
        container create mirror - Creates a mirror set from a single entry volume set.
        container create mmirror - Creates a multilevel container of mirror sets from a multilevel container of single entry volume sets.
.....


Manage RAID 5 is more than verify the container is ok !
You need to be active by checking the disk often for bad block and replace them.
One I got bad block on 3 of a 4disk array another time it was 3disk on an array of 5 and this time
I got lot of corrupted files (with bloc of 4k filled with random value).
Now a check all my disk every month.
Hope this help

Here all my own management script. You can run all these script when the system is running. Of course the disk verify will slow down
the system :-)

# for file in *.afa *.sh ; do echo ======= $file =========== ; cat $file ; done
======= check.afa ===========
open afa0
disk verify 0
disk verify 1
disk verify 2
disk verify 3
disk verify 4
disk verify 5
task list
close
exit

======= history.afa ===========
open afa0
diagnostic show history
close
exit
======= status.afa ===========
open afa0
disk list
disk show space
container list
close
exit
======= task.afa ===========
open afa0
task list
close
exit
======= verify.afa ===========
open afa0
task list
diagnostic show history
close
exit
======= history.sh ===========

afacli @history.afa

======= start_check.sh ===========
afacli @check.afa

echo "run verify.sh later (use task.sh to know if the task are done)"

======= status.sh ===========

afacli @status.afa

======= task.sh ===========

afacli @task.afa

======= verify.sh ===========

afacli @verify.afa | egrep "media_scan|ID\(0:0.:0\)|Periodic Time Display"






On 8/27/07, Matt Arnilo S. Baluyos (Mailing Lists) <matt.baluyos.lists@xxxxxxxxx > wrote:
On 8/27/07, Mezei Zoltán <mezei.zoltan@xxxxxxxxxx > wrote:
> Matt Arnilo S. Baluyos (Mailing Lists) wrote:
> >
> > I'm doing an audit of all our servers here (there aren't that many
> > maybe around 5-10) and one of the things I'm doing is taking note of
> > each server's hardware specs (processor, memory, etc).
> >
> As a first task for your audit I'd recommend counting your servers :-p

Haha. Was too lazy to look at my notes. We currently have 8 servers.


> Hardware RAID cards are usually managed by third-party add-on programs.
> E.g. HP provides the tool called hpacucli which can determine everything
> regarding your RAID controller and discs.
>
> What kind of hardware RAID solution do you have? If you can't determine,
> the output of lspci might help.

It's a Dell 2550 PowerEdge server.

Below is the result of lspci:

00: 00.0 Host bridge: Broadcom CNB20HE Host Bridge (rev 23)
00:00.1 Host bridge: Broadcom CNB20HE Host Bridge (rev 01)
00:00.2 Host bridge: Broadcom CNB20HE Host Bridge (rev 01)
00:00.3 Host bridge: Broadcom CNB20HE Host Bridge (rev 01)
00:0e.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:0f.0 ISA bridge: Broadcom OSB4 South Bridge (rev 50)
00:0f.1 IDE interface: Broadcom OSB4 IDE Controller
00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 04)
01:08.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5700
Gigabit Ethernet (rev 10)
02:02.0 PCI bridge: Intel Corporation 80960RM [i960RM Bridge] (rev 01)
02:02.1 RAID bus controller: Dell PowerEdge Expandable RAID Controller
3/Di (rev 01)
02:04.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro
100] (rev 08)


--
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Alain Spineux
aspineux gmail com
May the sources be with you
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux