Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

ESX 3.x/4.x configuration backup and restore procedure (1000761)

Details

This article describes how to restore an ESX 3.x/4.x host to a previous configuration in the event of a failure or re-installation. For ESXi 4.x / 5.x, see Backing up and restoring ESXi configuration using the vSphere Command-Line Interface and vSphere PowerCLI (2042141).
 
Warning: This procedure is an unsupported workaround. This may lead to data loss or corruption if done incorrectly.

Solution

Backing up Procedure
 
Create backups of these items:

  • The /etc/passwd file
  • The /etc/shadow file
  • The contents of /home directory
  • The contents of /root directory
  • The contents of the /etc/vmware directory, excluding:
    •  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 Procedure, ESX Backup, Configuration Backup

This Article Replaces

1002279

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 19 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? (4000 or fewer characters)
  • 19 Ratings
Actions
KB: