Packetwatch.net

Adaptec Storage Manager in Red Hat Enterprise Linux



Last modified: Jul. 20, 2010

Contents
1 - Summary
2 - Dependencies
3 - Adaptec Storage Manager installation
4 - Service configuration
5 - Arcconf example
6 - Example script


1 - Summary

This guide will show you how to install Adaptec Storage Manager in Red Hat
Enterprise Linux. Adaptec Storage Manager is used manage and monitor Adaptec
RAID controller cards. In this example, we are using it for a Dell CERC SATA
1.5/6ch card which is actually an Adaptec 2610SA card. This has been tested in
Red Hat Enterprise Linux 4.


2 - Dependencies

Download the msmtp RPM package from the ScopServer mirror and then install it.
Msmtp is an SMTP client used to sent email. We will use it to send email
notifications.
# wget http://mirrors.scopserv.com/dist/packages/msmtp/msmtp-$ver.$dist.scopserv.$arch.rpm
# sudo rpm -ivh msmtp-*
Password: 
# rm -f msmtp-*

You can find out some information about controller card by typing the
following.
# dmesg | grep -iE '(cerc|raid)'
Adaptec aacraid driver (1.1-5[2412])
aacraid0: kernel 4.1-0[7419]
aacraid0: monitor 4.1-0[7419]
aacraid0: bios 4.1-0[7419]
aacraid0: serial 420b9
scsi1 : aacraid
  Vendor: CERC      Model: DATA 1            Rev: V1.0
md: Autodetecting RAID arrays.


3 - Adaptec Storage Manager installation

Adaptec Storage Manager can be downloaded at http://www.adaptec.com/. Download
and install the Red Hat RPM package.
# cd ~
# wget http://www.adaptec.com/.../asm_linux_v$rel.rpm
# sudo rpm -ivh asm_linux_v$rel.rpm
Password:


4 - Service configuration

Disable the stor_agent service so that it won't start when the system starts
up. I disable the service as I don't install java which is a requirement to
use the GUI interface. I rely on a nightly cron job that checks the status.
# sudo /sbin/chkconfig stor_agent off
Password:
# sudo /sbin/chkconfig --list stor_agent
stor_agent      0:off   1:off   2:off   3:off   4:off   5:off   6:off


5 - Arcconf example

Before we try to use arcconf, add the path where arcconf is stored. Add the
following to /etc/profile.
  pathmunge /usr/StorMan after
# rpm -ql StorMan-* | grep arcconf
/usr/StorMan/arcconf
# sudo cp /etc/profile /etc/profile.original
Password:
# sudo vi /etc/profile
Password:

This command prints the adapter information, logical device information and
the physical device information.
# sudo /usr/StorMan/arcconf GETCONFIG 1 AL
Password:
Controllers found: 1

----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                   : Optimal
   Channel description                 : SATA
   Controller Model                    : CERC SATA1.5/6ch
   Controller Serial Number            : 420B9
   Physical Slot                       : Unknown
   Installed memory                    : 64 MB
   Copyback                            : Disabled
   Background consistency check        : Disabled
   Defunct disk drive count            : 0
   Logical devices/Failed/Degraded     : 1/0/0
   ---------------------------------------------------
   Controller Version Information
   ---------------------------------------------------
   BIOS                                : 4.1-0 (7419)
   Firmware                            : 4.1-0 (7419)
   Driver                              : 1.1-5 (2412)
   Boot Flash                          : 0.0-0 (0)
   ---------------------------------------------------
   Controller Battery Information
   ---------------------------------------------------
   Status                              : Not Installed

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 1
   Logical device name                 : DATA 1
   RAID level                          : 5
   Status of logical device            : Optimal
   Size                                : 1430720 MB
   Read-cache mode                     : Enabled
   Write-cache mode                    : Disabled (write-through)
   Write-cache setting                 : Disabled (write-through)
   Partitioned                         : Yes
   Number of chunks                    : 4
   Stripe-unit size                    : 64 KB
   Stripe order (Channel,Device)       : 0,0 0,1 0,2 0,3
   Bad stripes                         : No

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Channel #0:
      Transfer Speed                   : SATA 1.5 Gb/s
      Device #0
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,0
         Vendor                        : HDS72505
         Model                         : 0KLA360
         Firmware                      : K2AO
         Size                          : 476940 MB
         Write Cache                   : Unknown
         FRU                           : None
         S.M.A.R.T.                    : No
      Device #1
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,1
         Vendor                        : HDS72505
         Model                         : 0KLA360
         Firmware                      : K2AO
         Size                          : 476940 MB
         Write Cache                   : Unknown
         FRU                           : None
         S.M.A.R.T.                    : No
      Device #2
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,2
         Vendor                        : HDS72505
         Model                         : 0KLA360
         Firmware                      : K2AO
         Size                          : 476940 MB
         Write Cache                   : Unknown
         FRU                           : None
         S.M.A.R.T.                    : No
      Device #3
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,3
         Vendor                        : HDS72505
         Model                         : 0KLA360
         Firmware                      : K2AO
         Size                          : 476940 MB
         Write Cache                   : Unknown
         FRU                           : None
         S.M.A.R.T.                    : No


Command completed successfully.

6 - Example script

Here is an example script that I use to check the status of the adapter,
logical devices and physical devices. The script is run as a cron job every
night. It checks to see if things are optimal or online. If something reports
a value that isn't optimal or online email notifications are sent.

- Red Hat Enterprise Linux 4 - Adaptec Storage Manager 4.30-00
  Adaptec Storage Manager status script - adaptec_raid_status.sh
  Email configuration for msmtp - msmtprc


Last modified: Thu Jan 1 00:00:00 1970 UTC
Packetwatch Research 2002-2024.