【VxVM Volume Snapshot 系列文章】
1.《VxVM Volume Snapshot Part One - 系列之卷快照的创建》
2.《VxVM Volume Snapshot Part Two - 卷快照的删除》
3.《VxVM Volume Snapshot Issue – 卷快照删除失败示例一》
【卷快照的删除】
本文简单描述VxVM space-optimized instant snapshot的删除操作流程,内容基于Veritas Offical DOC,若有不当之处,敬请指正!
/*
* Steps to delete a VxVM volume space-optimized instant snapshot
*/
1. Detach the snapshot volume
# vxsnap [-g diskgroup] dis [snapshot_volume]
2. Remove the snapshot volume
# vxedit [-g diskgroup] -rf rm [snapshot_volume]
3. Stop the cache object
# vxcache [-g diskgroup] -f stop [cache_object]
4. Remove the cache object
# vxedit [-g diskgroup] -rf rm [cache_object]
/*
* Note:
* Normally, the cache volume will be removed along with the cache object that is on the top of it.
* Unfortunately the remove action may fail due to cache volume is still in use or other reasons.
* So, we should add additional steps to make sure it was removed before the next backup operation to avoid cache volume's creation failure follow.
*/
5. Additionly step to check whether the cache volume still exists, if exist, will remove it forcely
# vxprint [-g diskgroup] | grep [cache_volume]
# vxedit [-g diskgroup] -rf rm [cache_volume]