第9章 Restoring Satellite Server or Capsule Server from a Backup
You can restore Red Hat Satellite Server or Red Hat Capsule Server from the backup data that you create as part of 8章Backing Up Satellite Server and Capsule Server. This process outlines how to restore the backup on the same server that generated the backup, and all data covered by the backup is deleted on the target system. If the original system is unavailable, provision a system with the same configuration settings and host name.
9.1. Restoring from a Full Backup リンクのコピーリンクがクリップボードにコピーされました!
Use this procedure to restore Red Hat Satellite or Capsule Server from a full backup. When the restore process completes, all processes are online, and all databases and system configuration revert to the state at the time of the backup.
Prerequisites
- Ensure that you are restoring to the correct instance. The Red Hat Satellite instance must have the same host name, configuration, and be the same minor version (X.Y) as the original system.
- Ensure that you have an existing target directory. The target directory is read from the configuration files contained within the archive.
Ensure that you have enough space to store this data on the base system of Satellite Server or Capsule Server as well as enough space after the restoration to contain all the data in the
/etc/and/var/directories contained within the backup.To check the space used by a directory, enter the following command:
du -sh /var/backup_directory
# du -sh /var/backup_directoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow To check for free space, enter the following command:
df -h /var/backup_directory
# df -h /var/backup_directoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
--totaloption to get a total of the results from more than one directory.Ensure that all SELinux contexts are correct. Enter the following command to restore the correct SELinux contexts:
restorecon -Rv /
# restorecon -Rv /Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
Choose the appropriate method to install Satellite or Capsule:
- To install Satellite Server from a connected network, follow the procedures in Installing Satellite Server from a Connected Network.
- To install Satellite Server from a disconnected network, follow the procedures in Installing Satellite Server from a Disconnected Network.
- To install a Capsule Server, follow the procedures in the Installing Capsule Server.
-
Copy the backup data to Satellite Server’s local file system. Use
/var/or/var/tmp/. Run the restoration script.
satellite-maintain restore /var/backup_directory
# satellite-maintain restore /var/backup_directoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow Where backup_directory is the time-stamped directory or subdirectory containing the backed-up data.
The restore process can take a long time to complete, because of the amount of data to copy.
Additional Resources
-
For troubleshooting, you can check
/var/log/foreman/production.logand/var/log/messages.