<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <meta name="keywords" content="Storage Tips" />
<link rel="shortcut icon" href="/favicon.ico" />
                <title>Storage Tips - Wikidocs</title>
                <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/wikidocs/skins/monobook/main.css?7"; /*]]>*/</style>
                <link rel="stylesheet" type="text/css" media="print" href="/wikidocs/skins/common/commonPrint.css" />
                <!--[if lt IE 5.5000]><style type="text/css">@import "/wikidocs/skins/monobook/IE50Fixes.css";</style><![endif]-->
                <!--[if IE 5.5000]><style type="text/css">@import "/wikidocs/skins/monobook/IE55Fixes.css";</style><![endif]-->
                <!--[if IE 6]><style type="text/css">@import "/wikidocs/skins/monobook/IE60Fixes.css";</style><![endif]-->
                <!--[if IE 7]><style type="text/css">@import "/wikidocs/skins/monobook/IE70Fixes.css?1";</style><![endif]-->
                <!--[if lt IE 7]><script type="text/javascript" src="/wikidocs/skins/common/IEFixes.js"></script>
                <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
                <script type="text/javascript">var skin = 'monobook';var stylepath = '/wikidocs/skins';</script>
                <script type="text/javascript" src="/wikidocs/skins/common/wikibits.js"><!-- wikibits js --></script>
                <script type="text/javascript" src="/wikidocs/index.php?title=-&action=raw&smaxage=0&gen=js"><!-- site js --></script>
                <style type="text/css">/*<![CDATA[*/
@import "/wikidocs/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css&smaxage=18000";
@import "/wikidocs/index.php?title=MediaWiki:Monobook.css&action=raw&ctype=text/css&smaxage=18000";
@import "/wikidocs/index.php?title=-&action=raw&gen=css&maxage=18000";
/*]]>*/</style>
                <!-- Head Scripts -->
                        </head>
<body  class="ns-0 ltr">
        <div id="globalWrapper">
                <div id="column-content">
        <div id="content">
                <a name="top" id="top"></a>
                                <h1 class="firstHeading">Storage Tips</h1>
                <div id="bodyContent">
                        <h3 id="siteSub">From Wikidocs</h3>
                        <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class='toclevel-1'><a href="#Dell_PowerEdge_1650.2F2650"><span class="tocnumber">1</span> <span class="toctext">Dell PowerEdge 1650/2650</span></a>
<ul>
<li class='toclevel-2'><a href="#Installing_afacli"><span class="tocnumber">1.1</span> <span class="toctext">Installing afacli</span></a></li>
<li class='toclevel-2'><a href="#Using_afacli"><span class="tocnumber">1.2</span> <span class="toctext">Using afacli</span></a></li>
</ul>
</li>
<p><br />
</p>
<a name="Dell_PowerEdge_1650.2F2650"></a><h2>Dell PowerEdge 1650/2650</h2>
<p>To check the status and configuration of RAID arrays on Dell PowerEdge 1650 and 2650 servers using AACRAID based controllers, also knows as PERC3/Di, use the "afacli" utility. 
</p><p>See <a href="http://linux.dell.com/storage.shtml#aacraid" class='external text' title="http://linux.dell.com/storage.shtml#aacraid" rel="nofollow">Dell Linux Community Web > RAID & Storage</a>
</p><p>Further documentation on afacli, the Dellâ„¢ Command Line Interface Reference, is available directly from the Dell website <a href="http://support.dell.com/support/edocs/storage/57kgr/cli/en/index.htm" class='external text' title="http://support.dell.com/support/edocs/storage/57kgr/cli/en/index.htm" rel="nofollow">here</a>.
</p>
<a name="Installing_afacli"></a><h3>Installing afacli</h3>
<pre>[root@mailstore1b ~]# <b>cd ~</b>
[root@mailstore1b ~]# <b>wget <a href="ftp://ftp.us.dell.com/scsi-raid/afa-apps-snmp.2807420-A04.tar.gz" class='external free' title="ftp://ftp.us.dell.com/scsi-raid/afa-apps-snmp.2807420-A04.tar.gz" rel="nofollow">ftp://ftp.us.dell.com/scsi-raid/afa-apps-snmp.2807420-A04.tar.gz</a></b>
[root@mailstore1b ~]# <b>tar xzf afa-apps-snmp.2807420-A04.tar.gz</b>
[root@mailstore1b ~]# <b>yum -y install "compat-libstdc++-296"</b>
[root@mailstore1b ~]# <b>rpm -ivh afaapps-4.1-0.i386.rpm</b>
[root@mailstore1b ~]# <b>/dev/MAKEDEV.afa afa0</b>
</pre>
<p><br />
If the <b>afacli</b> command errors as follows:
</p>
<pre>FASTCMD> open afa0
Executing: open "afa0"
Command Error: <The requested controller does not exist.>
</pre>
<p>Try to re-run the command <b>/dev/MAKEDEV.afa afa0</b> then re-reun the <b>afacli</b> command. If this doesn't work because the <b>/dev/MAKEDEV.afa</b> script isn't present just reinstall the rpm and re-run the command. 
</p><p>I think the <b>udev</b> system may be removing the <b>/dev/MAKEDEV.afa</b> script. <b>udev</b> dynamically builds the list of devices present in the system at init.
</p>
<a name="Using_afacli"></a><h3>Using afacli</h3>
<p><br />
</p>
<pre>[root@kebab sdadmin]# afacli
------------------------------------------------------------------------

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


FASTCMD>
FASTCMD> open afa0
Executing: open "afa0"

AFA0> controller details
Executing: controller details
Controller Information
----------------------
         Remote Computer: .
             Device Name: AFA0
         Controller Type: PERC 3/Di
             Access Mode: READ-WRITE
Controller Serial Number: Last Six Digits = 0430D3
         Number of Buses: 2
         Devices per Bus: 15
          Controller CPU: i960 R series
    Controller CPU Speed: 100 Mhz
       Controller Memory: 128 Mbytes
           Battery State: Ok

Component Revisions
-------------------
                CLI: 2.7-1 (Build #4944)
                API: 2.7-1 (Build #4944)
    Miniport Driver: 1.1-0 Beta (Build #9999)
Controller Software: 2.8-0 (Build #6082)
    Controller BIOS: 2.8-0 (Build #6082)
Controller Firmware: (Build #6082)

AFA0>
AFA0> container list /all /full
Executing: container list /all=TRUE /full=TRUE
Num          Total  Oth Chunk          Scsi   Partition                                      Creation        System
Label Type   Size   Ctr Size   Usage   B:ID:L Offset:Size   State   RO Lk Task    Done%  Ent Date   Time      Files
----- ------ ------ --- ------ ------- ------ ------------- ------- -- -- ------- ------ --- ------ -------- ------
 0    RAID-5  273GB       32KB Valid   0:00:0 64.0KB: 136GB                               0  051904 15:12:04
 /dev/sda             nas              0:01:0 64.0KB: 136GB                               1  051904 15:12:04
                                      0:02:0 64.0KB: 136GB                               2  051904 15:12:04


AFA0> close
Executing: close

FASTCMD> exit
</pre>
<p>Other useful commands include...
</p>
<pre>open afa0
task list
diagnostic show history /old=TRUE
container show failover
container list /full
disk list /full=TRUE
disk show smart
disk show defects /full (0,0,0)
disk show defects /full (0,1,0)
</pre>
</body></html>