Failing Back to the Primary Companion and Resuming Normal Companion Mode

Failback moves the primary companion’s shared disks from the secondary node back to the primary node and starts the primary companion on the primary node. Failback is a planned event. To failback to the primary companion:

  1. Issue sp_companion command from the secondary companion to verify that it is in failover mode.

    NoteThe high availability subsystem automatically restarts the primary companion.

  2. Issue the following from the secondary companion:

    sp_companion primary_companion_name, prepare_failback
    

    Where primary_companion_name is the name of primary companion server.

    For example, to fail back the primary companion MONEY1, issue the following from the secondary companion PERSONEL1:

    sp_companion MONEY1, prepare_failback
    
  3. From the primary companion, issue:

    sp_companion secondary_companion_name, resume
    

    Where secondary_companion_name is the name of the secondary companion server. For example, to resume normal companion mode between primary companion MONEY1 and secondary companion PERSONEL1:

     sp_companion PERSONEL1, 'resume'
    
  4. Issue sp_companion with out any options from either companion to make sure you are in normal companion mode.

NoteYou cannot connect clients with the failover property (for example isql -Q) until you issue sp_companion resume. If you do try to reconnect them after issuing sp_companion prepare_failback, the client hangs until you issue sp_companion resume.