Home / Syntax / vxdiskunsetup Syntax with Examples

vxdiskunsetup Syntax with Examples

vxdiskunsetup  – UnixArena’s Manual Page

/opt/VRTS/bin/vxdiskunsetup – Remove the VERITAS Volume Manager configuration

  • This command removes the VERITAS Volume Manager configuration from one or more disks.
  •  This command reverses the configuration done by the vxdisksetup command. This operation makes the disks unusable by VxVM.
  • This command can be applied only to VxVM-initialized disks that are not in use within an imported disk group.
  • This 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.
Options Usage
-C Force de-configuration of the disk, effectively removing the host locks that were detected by vxdiskunsetup.
-f 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.

All Disk’s in Use by VxVM

	DEVICE       TYPE            DISK         GROUP        STATUS
	c1t0d0s2     auto:sliced     rootdisk01   rootdg       online
	c2t0d0s2     auto:sliced     rootdisk02   rootdg       online
	c3t1d0s2     auto:cdsdisk    -            -            online
	c3t2d0s2     auto:simple     -            -            online
	c3t3d0s2     auto:sliced     -            -            online
	c4t9d0s2     auto:cdsdisk    -            (testdg)     online
	c4t10d0s2    auto:cdsdisk    -            (testdg)     online

Force de-configuration of a VxVM-initialized disk’s:

  # vxdiskunsetup -C c3t1d0 c3t2d0 c3t3d0 c4t9d0 c4t10d0

  	DEVICE       TYPE            DISK         GROUP        STATUS
  	c1t0d0s2     auto:sliced     rootdisk01   rootdg       online
	c2t0d0s2     auto:sliced     rootdisk02   rootdg       online
	c3t1d0s2     auto:none       -            -            online invalid
	c3t2d0s2     auto:none       -            -            online invalid
	c3t3d0s2     auto:none       -            -            online invalid
	c4t9d0s2     auto:none       -            -            online invalid
	c4t10d0s2    auto:none       -            -            online invalid

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

  # vxdiskunsetup -o shred=3 hds9970v0_14
VMTURBO-CLOUD-CAPACITY

Leave a Reply

Your email address will not be published. Required fields are marked *