cleandisk command

Purpose

Removes any storage pool or cluster signatures that are on the physical volume.

Syntax

cleandisk -r hdiskX

cleandisk -s hdiskX

Description

The cleandisk command removes any storage pool or cluster signatures that were detected on the physical volume. The physical volume specified by the -s flag has the storage pool signature removed. The physical volume specified by the -r flag has the cluster signature removed. Both the -s and -r flags are destructive to any data that exists on the physical volume.

Notes:
  • Ensure that you pass the correct hdisk. Commands are destructive to the data on the hdisk.
  • You must not use the cleandisk command on disks that belong to a Shared Storage Pool (SSP) cluster. You can find all disks in use by the Shared Storage Pool (including names of disks, as seen from all nodes), by using the lscluster -d command. If a cluster node is active at the time of running the cleandisk command, it might result in unexpected behavior, possible system crash, failures in starting the Shared Storage Pool cluster, or an unstable cluster. Using the cleandisk command on an inactive Shared Storage Pool disk can also result in the destruction of the Shared Storage Pool.

Flags

Flag name Description
-r hdiskX Specifies the logical device to be cleared of any cluster signature.
-s hdiskX Specifies the logical device to be cleared of any storage pool signature.
-help Displays the help text for this command and exit program.

Examples

  1. To clear the cluster signature from hdisk5 and to use it as a paging space device by a shared memory partition, type the command as follows:
     cleandisk -r hdisk5 
  2. To clear the storage pool signature from hdisk6 and to use it as a paging space device by a shared memory partition, type the command as follows:
     cleandisk -s hdisk6 
  3. To display the help text for the cleandisk command, type the command as follows:
     cleandisk -help 



Last updated: Wed, November 18, 2020