HP MSA2324sa HP StorageWorks 2300 Family Modular Smart Array CLI reference gui - Page 110

set spares, Command syntax, show disks

Page 110 highlights

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: Existing spares not specified in this command are deleted and return to being available disks. 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. vdisk vdisk Optional. Name or serial number of the vdisk to assign spares to. For syntax, see Command syntax. 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: Command completed successfully. (1.2) - Global spare disk 1.2 was set. Success: Command completed successfully. Designate disk 1.3 as a dedicated spare for vdisk VD1: # set spares disks 1.3 vdisk VD1 Info: Command completed successfully. (1.3) - Vdisk spare disk 1.3 was set. Success: Command completed successfully. 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. (2.1) - Disk 2.1 is not the same type as the ones currently used by the vdisks. Error: Command failed. Delete all global spares: # set spares disks none Success: Command completed successfully. Delete all dedicated spares for vdisk VD1: # set spares disks none vdisk VD1 Success: Command completed successfully. See also • show disks • show vdisks 110

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

110
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:
Existing spares not specified in this command are deleted and return to being available
disks.
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
.
vdisk
vdisk
Optional. Name or serial number of the vdisk to assign spares to. For syntax, see
Command syntax
.
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: Command completed successfully. (1.2) - Global spare disk 1.2 was set.
Success: Command completed successfully.
Designate disk 1.3 as a dedicated spare for vdisk
VD1
:
# set spares disks 1.3 vdisk VD1
Info: Command completed successfully. (1.3) - Vdisk spare disk 1.3 was set.
Success: Command completed successfully.
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. (2.1) - Disk 2.1 is not the same type
as the ones currently used by the vdisks.
Error: Command failed.
Delete all global spares:
# set spares disks none
Success: Command completed successfully.
Delete all dedicated spares for vdisk VD1:
# set spares disks none vdisk VD1
Success: Command completed successfully.
See also
show disks
show vdisks