HP StorageWorks Modular Smart Array 1000 HP StorageWorks 1000/1500 Modular Sma - Page 29

Adding a spare to an existing LUN, Deleting LUNs, Basic command, Command options

Page 29 highlights

Adding a spare to an existing LUN Basic command add spare unit= Command options #-the unit to assign the spare to. This is the same number that was given to the unit when it was created with the add unit command. diskrange-indicates the drives to assign as the spare to the LUN. Disks are identified by box number and bay number. Example command and response CLI> add spare unit=2 disk112 Available write cache lines: 0x37FD (592458:592420) Available read cache lines: 0x37EE Using write cache lines 0x0 to 0x1BFD Hiding write cache lines 0x1BFE to 0x37FC Using read cache lines 0x37FD to 0x53F3 Hiding read cache lines 0x53F4 to 0x6FEA Spare drive(s) has been added. Use 'show unit 0' to confirm. Deleting LUNs NOTE: A LUN cannot be deleted if there are other LUNs after it. For example, if LUNs 0-3 are configured, LUN 1 cannot be deleted without also deleting LUNs 2 and 3. After a LUN is deleted, its unit number goes unused until manually assigned to a new LUN. Unit numbers are not automatically reassigned when a LUN is deleted. Basic command delete unit [-y] Command options #-the unit or range of units to delete. This is the same number that was given to the unit when it was created with the add unit command. -y-(optional) no user confirmation is required before the deletion is made. Example command and response CLI> delete unit 4 Data will be lost after the unit is deleted. Do you still want to DELETE unit 4 (Y/N)? Y Please wait while unit 4 is being deleted... Unit 4 is deleted successfully. HP StorageWorks 1000/1500 Modular Smart Array Command Line Interface user guide 29

  • 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

HP StorageWorks 1000/1500 Modular Smart Array Command Line Interface user guide
29
Adding a spare to an existing LUN
Basic command
add spare unit=<#> <diskrange>
Command options
#—the unit to assign the spare to. This is the same number that was given to the unit when it was
created with the
add unit
command.
diskrange
—indicates the drives to assign as the spare to the LUN. Disks are identified by box
number and bay number.
Example command and response
CLI> add spare unit=2 disk112
Available write cache lines: 0x37FD (592458:592420)
Available read cache lines: 0x37EE
Using write cache lines 0x0 to 0x1BFD
Hiding write cache lines 0x1BFE to 0x37FC
Using read cache lines 0x37FD to 0x53F3
Hiding read cache lines 0x53F4 to 0x6FEA
Spare drive(s) has been added. Use 'show unit 0' to confirm.
Deleting LUNs
NOTE:
A LUN cannot be deleted if there are other LUNs after it. For example, if LUNs 0-3 are configured,
LUN 1 cannot be deleted without also deleting LUNs 2 and 3.
After a LUN is deleted, its unit number goes unused until manually assigned to a new LUN. Unit numbers
are not automatically reassigned when a LUN is deleted.
Basic command
delete unit <#> [-y]
Command options
#—the unit or range of units to delete. This is the same number that was given to the unit when it was
created with the
add unit
command.
-y
—(optional) no user confirmation is required before the deletion is made.
Example command and response
CLI> delete unit 4
Data will be lost after the unit is deleted.
Do you still want to DELETE unit 4 (Y/N)? Y
Please wait while unit 4 is being deleted…
Unit 4 is deleted successfully.