beautypg.com

2 missing drives commands, 3 set drive state commands – Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 23

background image

LSI Corporation

- 23 -

StorCLI Reference Manual

January 2013

Chapter 4: Working with the Storage Command Line Tool

Drive Commands

storcli /cx[/ex]/sx|sall show all

This command shows all information of a physical drive for the specified slot in the controller. If you use the all
option, the command shows information for all slots on the controller. x stands for a number, a list of numbers, a range
of numbers, or all numbers.

Input examples:

storcli /c0/e3/s0-3 show all

storcli /c0/e35/sall show all

4.3.2

Missing Drives Commands

The Storage Command Line Tool supports the following commands to mark and replace missing physical drives:

storcli /cx[/ex]/sx insert array=a row=b

storcli /cx[/ex]/sx set missing

storcli /cx[/ex]/sx set offline

storcli /cx/dall

The detailed description for each command follows.

storcli /cx[/ex]/sx insert array=a row=b

This command replaces the configured drive that is identified as missing, and then starts an automatic rebuild.

Input example:

storcli /c0/e25/s3 insert array=2 row=1

storcli /cx[/ex]/sx set missing

This command marks a drive as missing.

Input example:

storcli /c0/s4 set missing

storcli /cx/dall

This command is used to find the missing drives.

storcli /cx[/ex]/sx set offline

This command marks the drive in an array as offline.

4.3.3

Set Drive State Commands

The Storage Command Line Tool supports the following commands to set the status of physical drives:

storcli /cx[/ex]/sx set jbod

storcli /cx[/ex]/sx set good [force]

storcli /cx[/ex]/sx set offline

storcli /cx[/ex]/sx set online

NOTE The storcli /cx/sx show all command shows tape drives information.

NOTE To set a drive that is part of an array as missing, first set it as offline. After the drive is set to offline, you
can then set the drive to missing.