beautypg.com

Adding a spare to an existing lun, Deleting luns, Basic command – HP StorageWorks 1000 Modular Smart Array User Manual

Page 29: Command options, Example command and response

background image

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=<#>

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.

This manual is related to the following products: