To uninstall a distributed main server or main database

Description
CAUTION 

CAUTION

Service Disruption

This procedure requires that you stop the NFM-P main server and database software, which is service-affecting.

Perform this procedure only during a scheduled maintenance period.

The following steps describe how to remove the main server or main database software that is installed on a station in a standalone or redundant NFM-P deployment.

Note: You require root user privileges on the station.

Note: A leading # character in a command line represents the root user prompt, and is not to be included in a typed command.

Distributed component uninstallation in a redundant deployment

To avoid a server activity switch in a redundant deployment, you must perform the procedure on the standby components first.

If you need to uninstall only the primary main server or database, for example, to address a hardware problem, the server or database must first assume the standby role. A role change may involve one or more server activity switch or database switchover operations, depending on whether automatic database realignment is enabled.

See “Disaster recovery for NSP components” in the NSP System Administrator Guide for information about the following:

  • determining a component role

  • automatic database realignment

  • main server activity switches

  • database switchovers

Steps
 

Log in to the station as the root or NSP admin user.


Open a console window.


If you are uninstalling a main server, perform the following steps.

  1. Back up any custom configuration files in the /opt/nsp/nfmp/server file path that you want to keep.

  2. Enter the following:

    /opt/nsp/Uninstaller/uninstall.sh ↵

    The following is displayed:

    WARNING: This will remove all the nsp software from the system. The nsp user will NOT be removed.

    The following prompt is displayed:

    Do you want to continue? [Yes/No]:

  3. Enter Yes ↵.

    The following, and uninstallation task messages, are displayed as the uninstallation begins.

    Stopping NFM-P Main Server...

    Welcome to the NSP uninstaller

    Verifying prerequisites...

    Starting uninstall ...

    When the uninstallation is complete, a line similar to the following is displayed:

    PLAY RECAP **************************************************************

    *******

    n.n.n.n                  : ok=nn   changed=n    unreachable=n    failed

    =n    skipped=n    rescued=n    ignored=n

  4. If the failed= value is not zero, one or more package removal operations has failed. Contact technical support for assistance, and provide any error messages that the uninstallation displays; do not proceed to the next step until recommended by technical support.


If you are uninstalling a main database, perform the following steps.

  1. Copy and paste, or enter the following commands in sequence:

    dnf remove nsp-nfmp-main-db

    dnf remove nsp-nfmp-oracle

    dnf remove nsp-nfmp-config

    dnf remove nsp-nfmp-jre

    dnf remove nsp-nfmp-nodeexporter

    The following prompt is displayed for each package:

    Do you want to continue? [Yes/No]:

  2. Enter y. The following is displayed:

    Downloading Packages:

    Running transaction check

    Transaction check succeeded.

    Running transaction test

    Transaction test succeeded.

    Running transaction

    Uninstalling the NFM-P package...

    As each package removal completes, the following is displayed:

    Complete!

  3. Repeat substep 2 as required to remove the next package in the sequence.


Enter the following to reboot the station:

systemctl reboot ↵

The station reboots.


If you are uninstalling a main server, remove the /opt/nsp/nfmp/server directory.


If you are uninstalling a main database, remove the /opt/nsp/nfmp/oracle19 and database directories.

End of steps