Rescuing a running virtual machine with dd when datastore metadata is inacces
2009-08-04 12:31
337 查看
Details This is an alternative Linux command to clone vmdks without powering off a virtual machine. Some possible situations for use include the following: Metadata is corrupted or lost
Part of the LUN has been over-written, for example, by an installation of ESX to incorrect LUN
This method may present some advantages over alternatives where the virtual machine is powered on: It is faster than Converter as data is transferred directly to SAN instead of over network
It is possible to restart the guest operating system if the procedure fails
vmkfstools -i is not an option where: The virtual machine is powered on and the vmdk is locked
You cannot create snapshot because you cannot risk an update to metadata
VMware Converter may not be an option where: The guest operating system is non-Windows, for example Linux (pre-VMware Converter 4.0), Netware, or Solaris
Insufficient diskspace on LUN for snapshots to continue to grow while the guest operating system is running
Solution To rescue a virtual machine with dd when metadata is inaccessible: Click Edit Settings > Add Hard Disk. Create a new hard drive of the same size on a different datastore.
Reboot within the guest operating system. Press F2 to enter the BIOS and change boot order to boot from CD.
From the virtual machine console toolbar, connect the live Linux boot CD ISO as a virtual CD-ROM. Press F10 to save the BIOS changes and exit.
Time how long it takes for this command to run:
dd if=/dev/sda of=/dev/sdb bs=16M conv=sync,noerror
The time to run is dependent on your data transfer rate.
Note: The virtual machine must not be powered off or reset during this process if the metadata may be corrupt. Note: Test your backup method to ensure it functions as expected in your environment.
Part of the LUN has been over-written, for example, by an installation of ESX to incorrect LUN
This method may present some advantages over alternatives where the virtual machine is powered on: It is faster than Converter as data is transferred directly to SAN instead of over network
It is possible to restart the guest operating system if the procedure fails
vmkfstools -i is not an option where: The virtual machine is powered on and the vmdk is locked
You cannot create snapshot because you cannot risk an update to metadata
VMware Converter may not be an option where: The guest operating system is non-Windows, for example Linux (pre-VMware Converter 4.0), Netware, or Solaris
Insufficient diskspace on LUN for snapshots to continue to grow while the guest operating system is running
Solution To rescue a virtual machine with dd when metadata is inaccessible: Click Edit Settings > Add Hard Disk. Create a new hard drive of the same size on a different datastore.
Reboot within the guest operating system. Press F2 to enter the BIOS and change boot order to boot from CD.
From the virtual machine console toolbar, connect the live Linux boot CD ISO as a virtual CD-ROM. Press F10 to save the BIOS changes and exit.
Time how long it takes for this command to run:
dd if=/dev/sda of=/dev/sdb bs=16M conv=sync,noerror
The time to run is dependent on your data transfer rate.
Note: The virtual machine must not be powered off or reset during this process if the metadata may be corrupt. Note: Test your backup method to ensure it functions as expected in your environment.
相关文章推荐
- Rescuing a running virtual machine with dd when datastore metadata is inacces
- FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException
- vmware virtual machine must be running in order to be migrated
- Only one expression can be specified in the select list when the subquery is not introduced with(求助)
- CoreDataErrorThe model used to open the store is incompatible with the one used to create the store
- 虚拟机the virtual machine is in use by an application on your host computer解决
- Live mode support -- running user data on a ramdisk (tmpfs) is broken in Android 7.0. Need a fix.
- valid states are 'starting running'. the machine is in the 'poweroff' state 的解决
- [zt]---What is the data in the VSTS load test results store
- vmware--This virtual machine is already in use
- linux in the virtual machine share folders with Windows
- [Javascript] Classify JSON text data with machine learning in Natural
- ORA-10567: Redo is inconsistent with data block
- 关于打开Eclipse时出现eclipse failed to create the java virtual machine与locking is not possible in the directory问题的解决
- How to know one virtual machine is in which host?
- the virtual machine is in use by an application on your host computer
- In machine learning, is more data always better than better algorithms?
- Typically this problem occurs when you are putting in a data that is too long for the column. In t
- Fixing the "There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
- FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: