beautypg.com

12 hot spare drive commands – Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 29

background image

LSI Corporation

- 29 -

StorCLI Reference Manual

January 2013

Chapter 4: Working with the Storage Command Line Tool

Drive Commands

storcli /cx[/ex]/sx stop copyback

This command stops a copyback operation. You can run this command only on drives that have the copyback
operation running.

Input example:

storcli /c0/e25/s4 stop copyback

4.3.12

Hot Spare Drive Commands

The following commands create and delete hot spare drives:

storcli /cx[/ex]/sx add hotsparedrive

{dgs=}[enclaffinity][nonrevertible]

storcli /cx/[ex]/sx delete hotsparedrive

The detailed description for each command follows.

storcli /cx[/ex]/sx add hotsparedrive [{dgs=<n|0,1,2...>}] [enclaffinity][nonrevertible]

This command creates a hot spare drive. You can use the following options to create a hot spare drive::

Input example:

storcli /c0/e3/s4,5 add hotsparedrive

This command sets the drives /c0/e3/s4,5 as Global Hot spare.

Input example:

storcli /c0/e3/s6,8 add hotsparedrive dgs=0,1

This command sets /c0/e3/s6,8 as Dedicated Hot spare for disk groups 0,1.

NOTE A stopped rebuild process cannot be resumed.

NOTE If enclosures are used to connect the physical drives to the controller, specify the enclosure ID in
the command.

Table 12 Add Hotsparedrive Input Options

Option

Value Range

Description

dgs

Valid drive group number

Specifies the drive group to which the hot spare drive is
dedicated.

enclaffinity

Valid enclosure number

Specifies the enclosure with which the hot spare is
associated. If this option is specified, affinity is set; if it is
not specified, there is no affinity.

NOTE Affinity cannot be removed after it is set for a hot
spare drive.

nonrevertible

Sets the drive as a nonrevertible hot spare.