One of the disks in this virtu

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 06:20 点击:

One of the disks in this virtual machine is already in use by a virtual machine or by a snapsho

这是在移动vmware disk 文件时候经常碰见的问题,如果是snapshot引起的话,那得把这个snapshot删除才能恢复正常。

直接引用了,懒得翻译:

If a Virtual Machine Has Two Disks with Identical File Names, Stored in Different Locations, You Cannot Delete a Snapshot of This Virtual Machine
Details
When I'm trying to delete a snapshot of a powered on virtual machine, this operation fails. The virtual machine has two disks with the same file names, and the disks are stored in different locations. Could this cause the failure?

Solution
Yes, having two disks stored in different locations but sharing the same file name (for example, "[storage1] vm/disk.vmdk" and "[storage2] vm/disk.vmdk") causes the snapshot delete operation to fail.

Because VMware Consolidated Backup uses the snapshot functionality, backing up this type of virtual machines will fail as well.

To avoid this problem, make sure the file names for virtual disks are unique.

If your virtual machine already has two disks with identical file names, follow this procedure to rename one of the disks:

Make sure no snapshots of the virtual machine exist.

Note: If your virtual machine already has a snapshot, power off the virtual machine and delete the snapshot. You can use the Snapshot Manager to delete snapshots. From the VI Client, choose Inventory > Virtual Machine > Snapshot > Snapshot Manager.

Power off the virtual machine.

Remove one of the two disks from the virtual machine, but do not delete the disk.

Log in to the ESX Server system and use the following command to rename the disk:
vmkfstools -E <old_name> <new_name>
For example, to rename the disk foo.vmdk to bar.vmdk, enter vmkfstools -E foo.vmdk bar.vmdk.

From VI Client, add the renamed disk back to the virtual machine.
Note: In the situation where there are several virtual disks, it will be more efficient to make all the changes from the ESX Server host console.
Power off the virtual machine.

Delete any snapshots.

Log in to the ESX Server host console.

Rename the disks:
vmkfstools -E <old_name> <new_name>

For example, to rename the disk foo.vmdk to bar.vmdk, enter vmkfstools -E foo.vmdk bar.vmdk.

Use a text editor (vi or nano) to update the file names for each disk.

Power on the virtual machine from the ESX Server host command line or the Virtual Infrastructure Client connected directly to the ESX Server host. If you start the virtual machine with the Virtual Infrastructur Client, the values cached in Virtual Center will be pushed back to the ESX Server host.

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • VMware View 5.0从菜鸟到高手系列 -连接虚拟桌面
      • kvm中的windows使用Vmware的显示驱动
      • VMware Linux使用Xshell登陆
      • 虚拟机安装MAC查看电脑CPU是否支持VT技术
      • VMWare NAT Centos6.2静态ip设置
      • vmware虚拟机浅析-虚拟网卡
      • VirtualBox打开虚拟硬盘失败的问题
      • Virtual Box下同时配置host-only和bridge
      • 给虚拟机提速的方法

      快速直达

      操作系统导航

      LinuxWindows虚拟机
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1