...
Log in.
Using the
root
password, log in either remotely or at thesulogin
prompt.Run the repository restore command:
Code Block # /lib/svc/bin/restore_repository
Running this command takes you through the necessary steps to restore a non-corrupt backup. SMF automatically takes backups of the repository as described in Repository Backups.
SMF maintains persistent and non-persistent configuration data. See Service Configuration Repository for descriptions of these two repositories. The
restore_repository
command only restores the persistent repository. Therestore_repository
command also reboots the system, which destroys the non-persistent configuration data. The non-persistent data is runtime data that is not needed across system reboot.When started, the
/lib/svc/bin/restore_repository
command displays a message similar to the following:Code Block See http://support.oracle.com/msg/SMF-8000-MY for more information on the use of this script to restore backup copies of the smf(5) repository. If there are any problems which need human intervention, this script will give instructions and then exit back to your shell.
After the
root
(/
) file system is mounted with write permissions, or if the system is a local zone, you are prompted to select the repository backup to restore:Code Block The following backups of /etc/svc/repository.db exists, from oldest to newest: ... list of backups ...
Backups are given names, based on type and the time the backup was taken. Backups beginning with
boot
are completed before the first change is made to the repository after system boot. Backups beginning withmanifest_import
are completed aftersvc:/system/manifest-import:default
finishes its process. The time of the backup is given in YYYYMMDD_HHMMSS format.Enter the appropriate response.
Typically, the most recent backup option is selected.
Code Block Please enter either a specific backup repository from the above list to restore it, or one of the following choices: CHOICE ACTION ---------------- ---------------------------------------------- boot restore the most recent post-boot backup manifest_import restore the most recent manifest_import backup -seed- restore the initial starting repository (All customizations will be lost, including those made by the install/upgrade process.) -quit- cancel script and quit Enter response [boot]:
If you press Enter without specifying a backup to restore, the default response, enclosed in
[]
is selected. Selecting-quit-
exits therestore_repository
script, returning you to your shell prompt.
...