Removing a snapshot volume
If a snapshot volume is no longer needed, you can remove it and free up the disk space for other uses by using the vxedit rm command.
Prerequisites
|
You must be logged in as root.
If the volume is on a mounted file system, you must unmount it before removing the volume.
|
To remove a snapplan and snapshot volume
-
To remove the snapshot and free up the storage used by it:
If the snapshot has been taken:
If the snapshot has not been taken and the snapshot plex (mirror) exists:
-
Remove the DCO and DCO volume:
# vxsnap -g diskgroup unprepare volume
-
Remove the snapplan:
# /opt/VRTS/bin/db2ed_vmchecksnap -D db -f snapplan -o remove
For example, the following commands will remove a snapshot volume from disk group PRODdg:
# vxsnap -g PRODdg dis snap_v1
# vxvol -g PRODdg stop snap_v1
# vxedit -g PRODdg -rf rm snap_v1