Re: Restore Informix software & Database to another server
Posted in 2004
KW Foo wrote:
> We are trying to backup the server which includes the Informix 7.31
> application and the data and restore to another server.
>
> We are running the Informix in SUN Solaris 2.6, backup the server using
> "ufsdump" to the tape drive and restore using the "ufsrestore" to another
> server (with the same directory structure and hardware).
>
> We use "ufsdump" to backup the informix software and also all the Informix
> chunk directories after we shutdown the Informix using "onmode -ky".
>
> We also did an "ontape" level 0 backup to a tape.
>
> After we restore the application and the Informix chunk directory, when we
> try to start the Informix engine using "oninit", the server go into "FAST
> RECOVERY" mode, after few minutes, it display message "oninit: Fatal error
> in shared memory initialization".
>
>
> The following are the message recorded in the online.log:
>
> 13:41:32 Informix Dynamic Server Initialized -- Shared Memory Initialized.
> 13:41:32 Physical Recovery Started.
> 13:45:16 Physical Recovery Complete: 84946 Pages Restored.
> 13:45:16 Logical Recovery Started.
> 13:45:16 shmget: [ENOMEM][12]: key 52564806: out of shared memory, check> system
> max shared memory segment size
> 13:45:16 out of virtual shared memory
more available shared memory, but the engine want's to allocate more ...
Have you checked and adapted /etc/system, regarding shared memory and
semaphore parameters??
Look at the release notes...
>
> 13:45:16 Cannot Rollforward from Checkpoint.
> 13:45:17 Informix Dynamic Server Stopped.
> 13:45:18 mt_shm_remove: WARNING: may not have removed all/correct segments
check with ipcs if there are shared memory segements with owner / group
informix.
If yes, remove them with ipcrm -s (semaphores) / ipcrm -m (memory)
>
> After that, we check the "onstat -", and receive message "shared memory not
> initialized for INFORMIXSERVER 'informix'".
How could the onstat program run if the engine is not up and running ??
>
> Is this the way to do it and how can I get the Informix engine up to restore
> from the "ontape" backup ?
>
Do a cold restore, normally no problem at all..
> Regards,
> KW Foo
>
>
Johann
--
******************************************************
Tele Atlas Deutschland GmbH
Dept: ICT-DEU
Am Neuen Horizont 1
D-31177 Harsum
Tel: +49 5127 408-465
Fax: +49 5127 408-559
E-mail: Johann.Eggers@teleatlas.com
******************************************************
sending to informix-list