Installing adaptec storage manager(asm) on linux (ubuntu/debian)

to manage your raid controller on your linux server cli follow the steps below. In this scenario, we are using adaptec 5805 raid controller.

STEP 1 – first download necessary files to install and untar them

root@lnx:/home# wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v7_31_18856.tgz
--2013-07-15 11:08:05-- http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v7_31_18856.tgz
Resolving download.adaptec.com (download.adaptec.com)... 93.184.221.133
Connecting to download.adaptec.com (download.adaptec.com)|93.184.221.133|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 116573943 (111M) [application/x-tgz]
Saving to: `asm_linux_x64_v7_31_18856.tgz'
100%[===================================================>] 116,573,943 12.3M/s in 16s
2013-07-15 11:08:22 (6.79 MB/s) - `asm_linux_x64_v7_31_18856.tgz' saved [116573943/116573943]


root@lnx:/home/# tar zxf asm_linux_x64_v7_31_18856.tgz
root@lnx:/home/#cd manager

STEP 2 – Install necessary packages
root@lnx:/home/manager# apt-get install alien dpkg-dev debhelper build-essential libstdc++5

STEP 3 – Now we are ready to generate deb package.
root@lnx:/home/manager# alien StorMan-7.31.x86_64.rpm
Warning: Skipping conversion of scripts in package StorMan: postinst postrm preinst
Warning: Use the --scripts parameter to include the scripts.
storman_7.31-18857_amd64.deb generated
root@lnx:/home/manager# ll
total 170620
drwxrwxrwx 2 root root 4096 Jul 15 11:10 ./
drwxr-xr-x 5 root root 4096 Jul 15 11:08 ../
-rw-r--r-- 1 root root 58712914 Jul 15 11:10 storman_7.31-18857_amd64.deb
-rwxrwxrwx 1 root root 57279587 May 10 2012 StorMan-7.31.esx86_64.rpm*
-rwxrwxrwx 1 root root 58705528 May 11 2012 StorMan-7.31.x86_64.rpm*

root@lnx:/home/manager# dpkg -i storman_7.31-18857_amd64.deb
Selecting previously unselected package storman.
(Reading database ... 55120 files and directories currently installed.)
Unpacking storman (from storman_7.31-18857_amd64.deb) ...
Setting up storman (7.31-18857) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@lnx:/home/manager#

STEP 4 – make adaptec cli utility executeable and try to query configuration

root@lnx:cd /usr/StorMan
root@lnx:/usr/StorMan# chmod +x arcconf
root@lnx:/usr/StorMan# ./arcconf GETCONFIG 1

Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Optimal
Channel description : SAS/SATA
Controller Model : Adaptec 5805
Controller Serial Number : XXXXXXXXXX
Physical Slot : 6
Temperature : 68 C/ 154 F (Normal)
Installed memory : 512 MB
Copyback : Disabled
Background consistency check : Disabled
Automatic Failover : Enabled
Global task priority : High
Performance Mode : Default/Dynamic
Stayawake period : Disabled
Spinup limit internal drives : 0
Spinup limit external drives : 0
Defunct disk drive count : 0
Logical devices/Failed/Degraded : 2/0/0
SSDs assigned to MaxCache pool : 0
Maximum SSDs allowed in MaxCache pool : 8
MaxCache Read Cache Pool Size : 0.000 GB
MaxCache flush and fetch rate : 0
MaxCache Read, Write Balance Factor : 3,1
NCQ status : Enabled
Statistics data collection mode : Enabled
--------------------------------------------------------
Controller Version Information
--------------------------------------------------------
BIOS : 5.2-0 (18252)
Firmware : 5.2-0 (18252)
Driver : 1.2-0 (28900)
Boot Flash : 5.2-0 (18252)
--------------------------------------------------------
Controller Battery Information
--------------------------------------------------------
Status : Not Installed

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
Logical device name : OSraid1
RAID level : 1
Status of logical device : Optimal
Size : 380918 MB
Read-cache mode : Enabled
MaxCache preferred read cache setting : Disabled
MaxCache read cache setting : Disabled
Write-cache mode : Disabled (write-through)
Write-cache setting : Disabled (write-through)
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (Controller:1,Enclosure:0,Slot:0) 3PM05QDC
Segment 1 : Present (Controller:1,Enclosure:0,Slot:1) 3PM04HBY

Logical device number 1
Logical device name : raid6stor
RAID level : 6 Reed-Solomon
Status of logical device : Optimal
Size : 22855670 MB
Stripe-unit size : 64 KB
Read-cache mode : Enabled
MaxCache preferred read cache setting : Disabled
MaxCache read cache setting : Disabled
Write-cache mode : Disabled (write-through)
Write-cache setting : Disabled (write-through)
Partitioned : No
Protected by Hot-Spare : No
Bootable : No
Failed stripes : No
Power settings : Disabled

STEP 5 – Optionally you may assign an alias to adaptec utiliy

root@lnx:/# cd ~
root@lnx:~# vi .bashrc

add the following lines
alias asm=’/usr/StorMan/arcconf’
after reboot your new alias can be used. or type alias asm=’/usr/StorMan/arcconf’ directly on prompt.

root@lnx:~# asm --help
| UCLI | Adaptec by PMC uniform command line interface
| UCLI | Version 7.31 (B18856)
| UCLI | (C) Adaptec by PMC 2003-2011
| UCLI | All Rights Reserved
ATAPASSWORD | Setting password on a physical drive
COPYBACK | toggles controller copy back mode
CREATE | creates a logical device
DATASCRUB | toggles the controller background consistency check mode
DELETE | deletes one or more logical devices
FAILOVER | toggles the controller automatic failover mode
GETCONFIG | prints controller information
GETLOGS | gets controller log information
GETSMARTSTATS | gets the SMART statistics
GETSTATUS | displays the status of running tasks
GETVERSION | prints version information for all controllers
IDENTIFY | blinks LEDS on device(s) connected to a controller
IMAGEUPDATE | update physical device firmware
KEY | installs a Feature Key onto a controller
MODIFY | performs RAID Level Migration or Online Capacity Expansion
RESCAN | checks for new or removed drives
RESETSTATISTICSCOUNTERS | resets the controller statistics counters
ROMUPDATE | updates controller firmware
SAVESUPPORTARCHIVE | saves the support archive
SETALARM | controls the controller alarm, if present
SETCACHE | adjusts physical or logical device cache mode
SETCONFIG | restores the default configuration
SETMAXCACHE | adjusts MaxCache settings for physical or logical device
SETNAME | renames a logical device given its logical device number
SETNCQ | toggles the controller NCQ status
SETPERFORM | changes adapter settings based on application
SETPOWER | power settings for controller or logical device
SETPRIORITY | changes specific or global task priority
SETSTATE | manually sets the state of a physical or logical device
SETSTATSDATACOLLECTION | toggles the controller statistics data collection modes
TASK | performs a task such as build/verify on a physical or logical device

Thats all..Have optimal status days :)

1 thought on “Installing adaptec storage manager(asm) on linux (ubuntu/debian)”

Leave a Reply