HP MSA 2040 CLI Reference Guide

150
set disk
Description Performs a secure erase on a specified disk. This is called repurposing the disk, and only applies to
a disk that is capable of Full Disk Encryption.
This command can only be run on disks whose status is either AVAIL or UNUSABLE. AVAIL disks
have had all vdisk information removed from them. Secure erasing such disks is an extra step to
make all data on the disk irretrievable. UNUSABLE disks have a foreign lock key. UNUSABLE disks
can be imported by using the set fde-import-key command.
NOTE: If you want to repurpose more than one disk and the drive spin down (DSD) feature is
enabled, disable DSD before repurposing the disks. You can re-enable it after the disks are
repurposed. For information about disabling and enabling DSD for available disks, see information
about the set advanced-settings command’s spin-down parameter.
Syntax
set disk
disk
repurpose
[noprompt]
Parameters
disk
ID of the disk to be repurposed. Only one disk may be repurposed at a time. For disk syntax, see
"Command syntax" (page 20).
repurpose
Specifies to secure erase the specified disk.
noprompt
Optional in console format; required for XML API format. Suppresses the confirmation prompt that
appears for UNUSABLE disks only. Specifying this parameter allows the command to proceed
without user interaction.
Example Perform a secure erase of all data on UNUSABLE disk 1.2.
# set disk 1.2 repurpose
Disk 1.2 was used on another system, and its contents are unknown. The contents
will be erased. Do you want to continue? (y/n) yes
Success: Command completed successfully. (2014-03-04 14:42:12)
See also set fde-lock-key
set fde-state
show disks (with the fde parameter)
show fde-state