VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

ESX Server Configuration Backup and Restore procedure

Details

How do I restore an ESX host to a previous configuration in case of a failure/reinstallation.
 
Warning: This procedure is an unsupported workaround. This may lead to corruption if done incorrectly.

Solution

Backing up Procedure

Backup the entire /etc/vmware directory, excluding the following:

  • Any soft links
  • /etc/vmware/patchdb
  • /etc/vmware/ssl

Restoring Procedure

To restore configuration:

  1. Reinstall ESX to the same patch level as the failed one.
  2. Get the information on the currently configured core dump partition and copy and paste the output into a text editor:

    esxcfg-dumppart –l

  3. Get the information on the currently configured cos core file and copy and paste the output into a text editor:

    cat /etc/vmware/esx.conf |grep CosCorefile

  4. Restore /etc/vmware from a previous backup.
  5. Update the new configuration file with core dump partition information:

    esxcfg-dumppart –s vmhbaX:X:X:X

    Where  vmhbaX:X:X:X is the dump partition name noted from step 2.

  6. Edit /etc/vmware/esx.conf and update the CosCorefile information to match the path copied in step 3.
  7. Get the new UUID for the root partition:

    cat /boot/grub/menu.lst |grep UUID

    This generates at least 3 lines with root=UUID=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx where x is a hexadecimal number.

  8. Update the configuration with new root device UUID by executing following command

    esxcfg-boot –d “UUID=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"

  9. Reboot the ESX host.
     
    The ESX host reboots with the old profile.

Keywords

ESX recovery, ESX DR PRoceudre, ESX Backup, Configuration Backup

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (6 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (6 Ratings)   
Actions