|
Sun xVM Ops Center 1.1 Home Administration |
The satadm command enables you to back up and restore the satellite server, but it does not back up or restore the proxy. The back up command temporarily shuts down the satellite functionality before backing up the data, saves the back up data in a tar file, and then restarts the satellite. You can specify the name and location of the back up file and the log file. For information about the supported flags and other information about the satadm command, see the satadm man page.
To Back Up a Sun xVM Ops Center Satellite Server
This procedure describes the steps required to back up the Sun xVM Ops Center satellite server. The back up cannot be used to migrate a satellite to a new configuration.
By default, the server data is saved in a backup-file in the /var/tmp directory with a file name that includes a date and time stamp. You can define the file name and location during the back up, as shown in the example below. To use additional options, see the satadm man page.
- Change to the directory where the satadm file is located on your system.
- On Solaris systems, go to the /opt/SUNWxvmoc/bin/ directory.
- On RHEL 5.0 systems, go to the /opt/sun/xvmoc/bin/ directory.
- Type the satadm back up command to back up the satellite. The -o flag and directory location are required to create the back up file.
./satadm backup -o /var/tmp/backup-file-name.tar
Example - Creating a Back Up File for a Satellite Server Running on a Solaris OS
In this example, the back up command includes flags to set the back up in verbose mode (-v), and to create a back up log (-l) for debugging purposes. The output (-o) is saved in a tar file in the directory that you specify.
# /opt/SUNWxvmoc/bin/satadm backup -v -o /var/tmp/xVM/server1/backup-May28-2008.tar -l /var/tmp/xVM/server1/logfile-May28-2008.log
To Restore a Sun xVM Ops Center Satellite Server
This procedure describes the steps required to restore the data from the back up file, which is the archive created by the satadm back up operation.
- The restore can only be performed on a freshly installed satellite prior to configuration.
- If you are restoring the back up on a new system, then the IP address, host name, and satellite server software version of the restored system must match with that of the backed up system.
- If you are restoring the back up on the same system, uninstall and reinstall the satellite software before running the restore command. Change directory to where the installer script resides, and run the uninstall command. The Solaris SPARC, Solaris x86, and Linux installation archives place the installer script in the SunOS_sparc/Product/installer, SunOS_i386/Product/installer, and Linux_i686/Product/installer directories, respectively. Each archive only contains the script that is appropriate for its intended OS and platform. For example, type the following to run the Solaris OS SPARC uninstall script:
# cd /var/tmp/xVMSunOS_sparc/Product/installer # ./install -e
- Install the satellite server software. Do not configure the server. The restore command will restore your configuration settings.
Note: The satellite server software version must match the version that was backed up. - Change to the directory where the satadm file is located on your system.
- On Solaris systems, go to the /opt/SUNWxvmoc/bin/ directory.
- On RHEL 5.0 systems, go to the /opt/sun/xvmoc/bin/ directory.
- Type the satadm restore command. The -i flag is required to restore the data from the back up file. To use additional options, see the satadm man page.
./satadm restore -i backup-directory-location/file-name
- For a satellite with a co-located proxy environment, use the Custom Discovery method to rediscover the system after running the restore command. You do not need to reregister the gear.
Note: After restoring the satellite, the gear details might take several minutes to display completely in the user interface.
Example - Restoring a Back Up File for a Satellite Server Running on a Solaris OS
In this example, the restore command includes flags to set the restore in verbose mode (-v), and to create a restore log (-l) for debugging purposes. The input (-i) specifies the back up file location.
# /opt/SUNWxvmoc/bin/satadm restore -v -i /var/tmp/xVM/server1/backup-May28-2008.tar -l /var/tmp/xVM/server1/logfile-restore-May28-2008.log


