• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • Backup
    • Vembu BDR
    • Veeam
    • Nakivo
    • Azure Backup
    • Altaro VMBackup
    • Spinbackup
  • Tutorials
    • Openstack Tutorial
    • Openstack Beginner’s Guide
    • VXVM-Training
    • ZFS-Tutorials
    • NetApp cDot
    • LVM
    • Cisco UCS
    • LDOM
    • Oracle VM for x86
  • Linux
    • How to Articles
    • Q&A
    • Networking
    • RHEL7
  • DevOps Instructor-led Training
  • Contact

VxVM – vxdiskunsetup Command Syntax with Examples

April 2, 2017 By Cloud_Devops Leave a Comment

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

Filed Under: Veritas, VXVM, VxVM Commands Tagged With: VXVM

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2025 · UnixArena ·

Go to mobile version