- 论坛徽章:
- 13
|
You can restore the ESXi configuration locally from the state.tgz backup file.
To restore the ESXi configuration locally:
1.Run the auto-backup.sh script to confirm you have an up-to-date host configuration saved in the /bootbank/state.tgz file.
The Bootbank/state.tgz file is updated and contains the host configuration.
Note: The ESXi configuration can be saved locally via the auto-backup.sh script. For more information, see the Saving State Locally section in the Additional Information section of this article.
2.Copy the /bootbank/state.tgz file to a safe location (for example, a shared datastore or use WinSCP to copy to another location).
3.Reinstall ESXi 5.1.
4.After the reinstallation completes and the ESXi host boots, copy the saved state.tgz file to the system (for example, to the /tmp directory).
5.Extract the local.tgz file from the state.tgz archive by running these commands:
# cd /tmp
# tar -xvzf state.tgz
6.Verify there is not already a local.tgz file under / (the root directory) and then copy the newly extracted local.tgz file to the / directory by running these commands:
# cd /
# mv local.tgz local.tgz.old
# cp /tmp/local.tgz .
7.Extract the contents of the local.tgz file by running the command:
# tar -xzvf local.tgz
Note: This overwrites all files in their original locations (for example, /etc/vmware/esx.conf, etc).
8.Run auto-backup.sh again, so that it collect all these new files and properly updates the /bootbank/state.tgz file.
9.Reboot the host.
The host now reboots with the previous configuration.
|
|