One of the disks in this virtual machine is already in use B

Source: Internet
Author: User

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

This is a problem that occurs frequently when moving vmware disk files. If it is caused by snapshot, You have to delete this snapshot to restore the normal state.

Directly referenced, too lazy to translate:

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. cocould 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 extends lidated 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 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.