Hello all
We are implementing HADR followed as recommended by INFROMIX :
1:- Take the 0 level backup of primary instance
2:- Execute on primary instance this command “ommode –d primary sec_ser_name” while secondary server is down.
3:- Restore the backup on secondary server using ontape –p command
4:- After completion of restoring execute this command “ommode –d secondary prim_ser_name”
Replication should be started but practically there are very less chances that replication starts just performing these steps.
If one fails then it is must to restart from step 1?
Or one can re-start the process from step3?
Is it necessary one take every time 0 level backup if answer is then why it is require?
Is there any alternative?
I found an alternative but it some time work some time not i.e. the following
If HADR not established after applying all steps then
1 down the primary server
2 down the secondary server
3 bring up the secondary server
4 bring up the primary server
Note:- Do not bring up the primary server until secondary server writes in log files following lines
DR: Cannot connect to primary server
DR: Turned off on secondary server
In this way primary can connect to the secondary server and replication would be started. Once I established HADR this way.
Now I'm trying again I’m facing problems while I’m bringing up secondary server it writes following lines in log file:
02:33:59 Event alarms enabled. ALARMPROG = '/u/informix/etc/log_full.sh'
02:34:04 DR: DRAUTO is 0 (Off)
02:34:04 Requested shared memory segment size rounded from 1104KB to 4096KB
02:34:04 Informix Dynamic Server Version 7.31.UC5 Software Serial Number AAC#J909566
02:34:04 Assert Failed: chunk failed sanity check
02:34:04 Informix Dynamic Server Version 7.31.UC5
02:34:04 Who: Session(1, root@posaetp1, 0, 285728788)
Thread(10, main_loop(), 11056014, 3)
File: rspartn.c Line: 7355
02:34:04 Results: Chunk 4 is being taken OFFLINE.
02:34:04 Action: Restore chunk from archive. If this is a temporary dbspace
chunk, drop and add the dbspace to enable it.
02:34:04 See Also: /tmp/af.3f23bec
02:34:05 I/O error, Primary Chunk '/u/informix/dbs/dbs_temp' -- Offline (sanity)
02:34:05 Informix Dynamic Server Initialized -- Shared Memory Initialized.
02:34:05 DR: Logs will be cleared during logical recovery
02:34:05 DR: Trying to connect to primary server ...
02:36:05 DR: Cannot connect to primary server
02:36:05 DR: Turned off on secondary server
02:36:06 Physical Recovery Started.
02:36:06 Physical Recovery Complete: 0 Pages Restored.
02:36:06 Dataskip is now OFF for all dbspaces
02:36:06 Recovery Mode
02:36:42 DR: Secondary server connected
02:36:48 DR: Failure recovery from disk in progress ...
02:36:49 DR: Failure during start of logical restore (1)
02:36:49 DR: Failure recovery error (6)
02:36:50 DR: Turned off on secondary server
while primary server writes following lines in its log files
02:52:11 DR: Sending log 132 (current), size 40000 pages, 0.00 percent used
02:52:11 DR: Receive error
02:52:11 DR: Failure recovery error (14)
02:52:13 DR: Turned off on primary server
any comments, suggestion, recmendation are welcome
Look forward to hear soon
Best regards
Wicky