Restart if the primary server fails
The process for restarting an HDR or RS cluster after the primary server fails depends on whether a secondary server became the primary server, and the method by which the secondary server became the primary server.
The secondary database server was not changed to a standard database server
If you must restart an HDR or RS cluster after a failure of the primary database server if the secondary database server is not changed to standard, start the primary database server by using the oninit command.
The secondary database server was changed to a standard database server manually
Step | On the primary database server | On the secondary database server |
---|---|---|
1. | onmode -s This step takes the secondary database server (now standard) to quiescent mode. All clients that are connected to this database server must disconnect. Applications that perform updates must be redirected to the primary. |
|
2. | onmode -d secondary prim_name | |
3. | oninit If all the logical-log records that were written to the secondary database server are still on the secondary database server disk, the primary database server recovers these records from that disk when you issue the oninit command. If you have backed up and freed the logical-log files on the secondary, the records in these files are no longer on disk. In this case, you are prompted to recover these logical-log files from tape (step 4). For ontape users: If you want to read the logical-log records over the network, set the logical-log tape device to a device on the computer that is running the secondary database server. |
|
4. | If you are prompted to recover logical-log records
from tape, perform this step. ontape command ontape -l ON-Bar command onbar -r -l |
The secondary database server was changed to a standard database server automatically
Step | On the primary database server | On the secondary database server |
---|---|---|
1. | % oninit If DRAUTO = If DRAUTO
= If all the logical-log records that were written to the secondary database server are still on the secondary database server disk, the primary database server recovers these records from that disk when you issue the oninit command. If logical-log files that you have backed up and freed are on the secondary database server, the records in these files are no longer on disk. In this case, you are prompted to recover these logical-log files from tape (step 2). For ontape users:
|
If DRAUTO = If DRAUTO = |
2. | If you are prompted to recover logical-log records from tape, perform this step. ontape command % ontape -l ON-Bar command onbar -r -l |