ssascripting
ssacli
HP ssacli not detecting a controller
To bring the offline controller back to running state run the following as root user:
echo running > /sys/class/scsi_device/1\:0\:0\:0/device/state
This has been done on 115-223 and the second controller is now showing up in ssacli.
Create RAID-1
ssacli ctrl slot=0 create type=ld drives=1I:1:7,1I:1:8 raid=1
ssacli commands
ssacli ctrl slot=0 show config
Save raid settings to be replayed
ssascripting -c outfile.ini
ssacli ctrl all show config
ssacli ctrl slot=0 pd all show status
Create RAID 1 array with 2 drives.
ssacli ctrl slot=0 create type=ld drives=1I:1:13,1I:1:14 raid=1
Create RAID 0 array with 1 drive.
ssacli ctrl slot=0 create type=ld drives=1I:1:15 raid=0
Delete Array (L not 1)
ssacli ctrl slot=0 ld 16 delete
Delete whole config
ssacli ctrl slot=0 delete
Determine HP Array to /dev/sdX map
ls -ld /sys/block/sd*/devicecat /proc/scsi/scsi
ls /dev/disk/by-path -al
udevadm info -n /dev/sdd -a
some ways I know to find the SCSI device name
dmesg | egrep “sd[a-z]”
lsblk —scsi (from package util-linux >= v2.22)
lshw -C disk
Saving configuration
[root@inf-105-13-fongtest ~]# ssascripting -c int-controllers.ini -internal
[root@inf-105-13-fongtest ~]# ssascripting -c ext-controllers.ini -external
[root@inf-105-13-fongtest ~]# ssascripting -c all-controllers.ini
Was this page helpful?