Removing a cache
You can remove a cache completely, including the cache object, its cache volume and all space-optimized snapshots that use the cache.
To remove a cache completely, including the cache object, its cache volume and all space-optimized snapshots that use the cache
-
Use the following command to find out the names of the top-level snapshot volumes that are configured on the cache object:
# vxprint -g diskgroup -vne \
"v_plex.pl_subdisk.sd_dm_name ~ /cache_object/"
where cache_object is the name of the cache object.
-
Remove all the top-level snapshots and their dependent snapshots.
This can be done with the following single command:
# vxedit -g diskgroup -r rm snapvol ...
where snapvol is the name of a top-level snapshot volume.
-
Stop the cache object, with the following command:
# vxcache -g diskgroup stop cache_object
-
Remove the cache object and its cache volume, with the following command:
# vxedit -g diskgroup -r rm cache_object