test veritas logo


vxdiskunsetup(1M)

NAME

vxdiskunsetup - remove the Veritas Volume Manager configuration

SYNOPSIS

/etc/vx/bin/vxdiskunsetup [-Cf] [-o shred=[1|3|7]] disk_address...

DESCRIPTION

The vxdiskunsetup command removes the Veritas Volume Manager (VxVM) configuration from one or more disks. The vxdiskunsetup command reverses the configuration done by the vxdisksetup command. This operation makes the disks unusable by VxVM. The vxdiskunsetup command can be applied only to VxVM-initialized disks that are not in use within an imported disk group.

The disk_address argument passed to vxdiskunsetup directs the command to the device that corresponds to the disk being operated upon. The name must reference a valid disk with partition devices under the /dev/vx/rdmp directory.

The vxdiskunsetup command operates by removing the public and private regions that were created by the last invocation of vxdisksetup on the specified disks. After this operation, those disks are converted from the online to the online invalid (as displayed by vxdisk list).

OPTIONS

-C By default, the vxdiskunsetup command does not operate on disks that appear to be imported by some other host (for example, a host that shares access to the disk and has the disk group imported or ungracefully deported). In this case, specify the -C option to remove the host locks that were detected by vxdiskunsetup.
-f Specify the -f option to force a disk to be deconfigured if it belongs to a deported disk group, or to forcefully unsetup a disk from another node if the disk belongs to a disk group.
By default, the vxdiskunsetup command does not shred Solid-State Drive (SSD) disks. Specify the -f option to force a shred operation on an SSD disk.
-o shred[=1|3|7]
  The shred operation overwrites the data on the disk with a digital pattern in one or more passes. Specify the number of passes as 1, 3, or 7. The default is 1 pass.

EXAMPLES

Force deconfiguration of a VxVM-initialized disk, enc3_5, which belongs to a disk group that is cleanly deported from another node:

/etc/vx/bin/vxdiskunsetup -f enc3_5

Force deconfiguration of a VxVM-initialized disk, enc3_6, which belongs to a disk group that is imported, or ungracefully deported from another node:

/etc/vx/bin/vxdiskunsetup -C -f enc3_6

Shred a VxVM-initialized disk, hds9970v0_14, with 3 passes.

/etc/vx/bin/vxdiskunsetup -o shred=3 hds9970v0_14

SEE ALSO

vxdisksetup(1M).


VxVM 7.3.1 vxdiskunsetup(1M)