Site icon UnixArena

VxVM – vxdiskunsetup Command Syntax with Examples

vxdiskunsetup  – UnixArena’s Manual Page

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

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
Exit mobile version