hsy75的个人空间 https://blog.eetop.cn/vivilife [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

[o]vmware 因为磁盘空间不够,导致Snapshot Manager没有删除干净的镜像问题

已有 4477 次阅读| 2013-2-26 16:54 |个人分类:practic_linux

问题描述:

在vmware中使用linux时,为了保证自己编译的结果,用了很多的snapshot,忽然发现有一天空间不够用了,直接导致编译错误退出,然后想着删除,结果删除sanpshot也遇到磁盘空间不够,最奇葩的是,vm明明没有删除那个对应的snapshot,却在snapshot的路径树上删除了,然后进入vmware的工作目录,想去删除,结果发现几乎所有的snapshot都是最近改动的,而且都在运行,疯掉了吧,怎么办,


找了很久:有如下的方法,依据是vmware的snapshort是有继承依赖关系的,所以,当你删除了一个snapshort,其实系统会把对应的那些依赖的无用的东西也删除。

那么好,我们要做的其实比较简单了,就是,首先在这个盘上搞出足够的空间,然后

在你的snapshort的每个分支路径上,新建一个temp的snapshort,然后再删除这个snapshort.

这样以前那些想删除,也就是snapshort列表上没有出现的snapshort也会同时被删除的

Resolution

Confirm that the virtual machine is not pointing to the base disk. Open the virtual machine configuration file (.vmx) or edit the settings of the virtual machine and see if any of the virtual disks are using a -00000X.vmdk file. If no disks are using-00000X.vmdk, this virtual machine is not using any of these files. Although unlikely, it is possible that another virtual machine is storing its snapshots in this directory. Check the other virtual machines. If none of them refer to these files, they can be safely erased.

Typically, the file is in use by the virtual machine. When a snapshot is deleted, any additional files in the hierarchy that are not identified by the Snapshot Manager are included in the commit process. Creating a new snapshot and deleting it clears the entire hierarchy. This means that all snapshot files on the virtual machine are committed, then deleted

A small amount of free space is required to create the new snapshots. If the virtual machine needs to remain running, more space must be allowed for because the new snapshot grows (accepting new changes to the virtual disks) as the older snapshots commit.


ref:

1 http://www.petri.co.il/forums/showthread.php?t=62203

2 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002310

 


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 2

    粉丝
  • 1

    好友
  • 2

    获赞
  • 14

    评论
  • 3241

    访问数
关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-20 18:07 , Processed in 0.013030 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部