Search This Blog

Thursday, July 24, 2014

Removing Volume in VxVM

Removing a Volume:

  • Before Removing Volume:
    • Application must be stopped
    • File System must be unmounted
  • When a volume is removed, volume disk space is freed

VEA

·          Select the volume that you want to remove
·          Select Actions - > Delete Volume

Removing Volume using vxassist command


1.  Umount the file system# umount /dev/vx/dsk / volume_name
2.  If the volume is listed in /etc/fstab, remove its entry
3.  Make sure volume is stopped with the command.

# vxvol stop volume_name
# vxassit -g <diskgroup> remove volume <volume_name>

Example:
# vxassist -g testdg remove volume testvol
# vxprint -th testvol
VxVM vxprint ERROR V-5-1-924 Record testvol not found

Remove the volume using vxedit

# vxedit -g <diskgroup> -rf rm <volume_name>

-r recursive removal of all plexes associated with volume and all subdisk associate with those plexes

-f forces removal


No comments:

Post a Comment