Brief cheat sheet for Adaptec arcconf CLI
Most commands allow
noprompt
to force a command
- show adapter information
-
arcconf getconfig 1 ad
- show logical device information
-
arcconf getconfig 1 ld
- show physical disk information
-
arcconf getconfig 1 pd
- show all information
-
arcconf getconfig 1 al
- get all device ids for SSDs
-
arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /SSD/ && $3 ~ /Yes/) {print pos}}' | cut -d\( -f1
- get all device ids for non-SSDs
-
arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /SSD/ && $3 ~ /No/) {print pos}}' | cut -d\( -f1
- get all device ids for WDC disks
-
arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /Vendor/ && $3 ~ /WDC/) {print pos}}' | cut -d\( -f1
- get available logical device numbers
-
arcconf getconfig 1 ld | awk '/^Logical device number/ {print $NF}'
- short list of all physical disks
-
arcconf getconfig 1 pd|egrep "Device #|State\>|Reported Location|Reported Channel|S.M.A.R.T. warnings|Serial"
Manipulate arrays
- delete logical device
-
arcconf delete 1 logicaldrive all
- create RAID6 volume with default stripe size on devices all non-SSD devices
-
arcconf create 1 logicaldrive name data method build rcache ron wcache wb max 6 $(arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /SSD/ && $3 ~ /No/) {print pos}}' | cut -d\( -f1)
- create JBOD on two devices
-
arcconf create 1 jbod 0,22 0,23
FAI approach
software raid
arcconf delete 1 logicaldrive all noprompt
# first for HDD
arcconf create 1 jbod $(arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /SSD/ && $3 ~ /No/) {print pos}}' | cut -d\( -f1)
# then for SSD (no real reason, but to keep them separated for now
arcconf create 1 jbod $(arcconf getconfig 1 pd | awk '{ if ( $2 ~ /Channel,Device/ ) {pos=$NF}; if ( $1 ~ /SSD/ && $3 ~ /Yes/) {print pos}}' | cut -d\( -f1)
--
CarstenAulbert - 06 Mar 2014