HP P2000 G3 MSA System CLI Reference Guide 181
set spares
Description
Creates or deletes spare disks for redundant (RAID 1, 3, 5, 6, 10, 50) vdisks.
A global spare is available to any redundant vdisk with the same disk type. The system can have
eight global spares. Each must have enough capacity to replace the smallest disk in any existing
vdisk.
A dedicated spare is assigned to a redundant vdisk with the same disk type. A vdisk can have four
spares. Each must have enough capacity to replace the smallest disk in that vdisk.
CAUTION:
When setting global spares, the existing set of global spares is completely replaced by
the newly specified set of disks. When setting dedicated spares, the existing set of dedicated spares
for the specified vdisk is completely replaced by the newly specified set of disks. So, for example, if
you want to add new global spares to the ones that already exist, you must specify all the existing
global spare disks as well as the new disks that you want to add.
Syntax
set spares
disks
disks
|none
[vdisk
vdisk
]
Parameters
disks
disks
|none
IDs of the disks to designate as spares, or
none
to delete all global spares if no vdisk is specified or
all dedicated spares for a specified vdisk. For disk syntax, see
Command syntax
on page 22.
vdisk
vdisk
Optional. Name or serial number of the vdisk to assign spares to. For vdisk syntax, see
Command
syntax
on page 22. If this parameter is omitted, the disks will be global spares.
Example
Designate disk 1.2 as a global spare:
# set spares disks 1.2
Info: Global spare disk 1.2 was added.
Success: Command completed successfully. (2012-01-20 15:00:36)
Designate disk 1.3 as a dedicated spare for vdisk
VD1
:
# set spares disks 1.3 vdisk VD1
Info: Vdisk spare disk 1.3 was added. (1.3)
Success: Command completed successfully. (2012-01-20 10:12:01)
Try to designate a disk of one type as a spare for a vdisk using a different disk type:
# set spares disk 2.1 vdisk VD1
Error: The specified spare cannot be used. - Disk 2.1 is not the same type as the
ones currently used by the vdisks. (2.1)
Error: Command failed. (2011-10-12 10:09:30)
Delete all global spares:
# set spares disks none
Info: Global spare disk 1.2 was deleted. (1.2)
Success: Command completed successfully. (2011-10-11 15:01:57)
Delete all dedicated spares for vdisk VD1:
# set spares disks none vdisk VD1
Info: Vdisk spare disk 1.3 was deleted. (1.3)
Success: Command completed successfully. (2011-10-12 10:12:54)
Summary of Contents for P2000 G3
Page 1: ...HP P2000 G3 MSA System CLI Reference Guide Part number 500912 009 First edition February 2014 ...
Page 14: ...14 About this guide ...
Page 30: ...30 Categorical list of commands ...
Page 199: ...HP P2000 G3 MSA System CLI Reference Guide 199 See also set cache parameters show volumes ...
Page 294: ...294 Alphabetical list of commands See also set volume set vdisk ...
Page 498: ...498 XML API basetype properties PROPERTY name mrc version type uint8 0 PROPERTY OBJECT ...
Page 524: ...524 Glossary ...
Page 532: ...532 Index ...