How do I enable or disable automatic database realignment?

CAUTION 

CAUTION

Service Disruption

This procedure requires a primary main server restart, which is service-affecting.

Ensure that you perform this procedure only during a scheduled maintenance period.

Note: This procedure applies only to redundant systems.

Steps
 

Perform Step 4 to Step 14 on the standby main server station.


Perform Step 4 to Step 14 on the primary main server station.

Note: When you stop the primary main server, a switchover to the standby main server occurs.


Go to Step 15.


Log in to the main server as the nsp user.


Stop the main server.

  1. Enter the following:

    bash$ cd /opt/nsp/nfmp/server/nms/bin ↵

  2. Enter the following:

    bash$ ./nmsserver.bash stop ↵

  3. Enter the following:

    bash$ ./nmsserver.bash appserver_status ↵

    The server status is displayed; the server is fully stopped if the status is the following:

    Application Server is stopped

    If the server is not fully stopped, wait five minutes and then repeat this step. Do not perform the next step until the server is fully stopped.


Enter the following to switch to the root user:

bash$ su - ↵


Enter the following:

samconfig -m main ↵

The following is displayed:

Start processing command line inputs...

<main> 


Perform one of the following:

  1. Enable database alignment; perform the following steps.

    1. Enter the following:

      <main> configure redundancy database alignment ↵

      Database alignment is enabled, and the prompt changes to <main configure redundancy database>.

    2. Enter the following:

      <main configure redundancy database> prefer-instance instance

      where instance is the database instance with which the main server is to align, typically the database instance on the same side of the management LAN

  2. Disable database alignment; perform the following steps.

    1. Enter the following:

      <main> configure redundancy database no alignment ↵

      Database alignment is disabled, and the prompt changes to <main configure redundancy database>.


Enter the following:

<main configure redundancy database> exit ↵

The prompt changes to <main>.


10 

Enter the following:

<main> apply ↵

The configuration change is applied.


11 

Enter the following:

<main> exit ↵

The samconfig utility closes.


12 

Enter the following to switch back to the nsp user:

exit ↵


13 

Start the main server.

  1. Enter the following:

    bash$ cd /opt/nsp/nfmp/server/nms/bin ↵

  2. Enter the following:

    bash$ ./nmsserver.bash start ↵

  3. Enter the following:

    bash$ ./nmsserver.bash appserver_status ↵

    The server status is displayed; the server is fully initialized if the status is the following:

    Application Server process is running.  See nms_status for more detail.

    If the server is not fully initialized, wait five minutes and then repeat this step. Do not perform the next step until the server is fully initialized.


14 

Log out of the main server station.


15 

If required, perform How do I perform a server activity switch? to perform a server activity switch to revert the primary and standby main servers to their initial roles.

End of steps