Proliant SSA Command Examples: Difference between revisions

From WilliamsNet Wiki
Jump to navigation Jump to search
(added cheat sheet for SSA commands)
 
(No difference)

Latest revision as of 10:18, 7 February 2024

Basics[edit]

  1. All commands must be run as root
  2. Once you use a wildcard in the target, you can't add any other target selectors (e.g. you can't show all drives on all controllers)

Getting Help[edit]

The built-in help is very useful, if challenging to navigate. The basic help command is simply

ssacli help

There is help for each subcommand and area ... the complete list is at the end of the top level help text.

Show commands[edit]

Show all controllers in the system -- useful to get the slot numbers of any additional controllers (the slot numbers aren't necessarily sequential from '0'.

ssacli ctrl all show

Show all drives on a single controller

ssacli ctrl slot=0 pd all show

Show details on a single drive

ssacli ctrl slot=0 pd 1I:1:1 show

Create Logical Drives[edit]

This command will take all unnasigned drives and create RAID 0 logical drives for each of them

ssacli ctrl slot=0 create type=arrayr0 drives=allunassigned

To create a single logical drive, use this command

ssacli ctrl slot=0 create type=ld drives=1I:1:1

NOTE the order of the logical drives in the HP SSA output will determine the ordering for the SCSI device numbers in Linux, and will affect the drive letters assigned. Deleting logical drives will shift all the subsequent drive assignments up, so be careful. Using UUID tags instead of drive letters when specifying mounts is preferred for this reason. Storage systems that directly manage drives should already use a drive serial to identify and order its disks, but if strange stuff happens, you have been warned.

You will need to get the drive numbers from the show command above.