Ensure that the configuration of the current system is the same as the configuration of the system when the server was archived.
The system configuration includes disk paths, chunk file sizes, shared memory kernel parameters, and so on. The system configuration settings must be identical to or larger than the settings for the last Level 0 archive. For example, when restoring from tape to replace a bad disk, the new disk must use the same path to the chunk file dbspaces. Also, the directories must be at least the size they were for the archive.
Ensure that the configuration file currently in use is identical to the configuration file used to archive the server.
The configuration file, $CCM_HOME/informix/etc/servername, must be identical to the configuration file used to perform the Level 0 archive. A copy of this file is always saved when a Level 0 archive is performed.
Ensure that Level 0 archives reflect the current configuration file by performing a Level 0 archive immediately after you change the file.
root# su - informix Password: *****
If you did not set up CCM_HOME and PATH for user informix during installation, set these environment variables now. See Setting environment variables for UNIX.
$ ccmsrv offline
If you archived to tape, insert the most recent tape for the archive level you want to restore. If you are restoring incremental archives, the ccmsrv restore command prompts you for the other archive tapes.
You must perform these steps for each archive file you restore. If you are restoring incremental archives, you must perform these steps when prompted for the next level of "tapes."
$ cd $CCM_HOME/informix/etc
For example, choose to restore the Level 0 archive file called hydra1,level-0,10_19_99_09_20 from the /vol/hydra1/archive_data directory, as follows.
$ rm hydra1.tapedev
For example, link hydra1.tapedev to the Level 0 archive file, hydra1,level-0,10_19_99_09_20, as follows:
$ ln -s /vol/hydra1/archive_data/hydra1,level -0,10_19_99_09_20 \hydra1.tapedev
Specify the archive device (file) with the ccmsrv restore command, so that the correct archive file is found.
For example, restore the database server from the tape on /dev/rts8, as follows:
$ ccmsrv restore -device /dev/rst8
Or, restore the database server from the /vol/hydra1/archive_data directory, as follows:
$ ccmsrv restore -device $CCM_HOME/etc/informix/hydra1.tapedev
The ccmsrv restore command prompts you to mount a tape (or an archive file) for each archive level. If you are restoring only the Level 0 (full) archive, type n to subsequent prompts for Level 1 and Level 2 (incremental) archives.
$ ccmsrv online