VxVM Volume Snapshot Part Two - 卷快照的删除

【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]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值