Adding a MongoDB application server

To start protecting MongoDB resources, you must add the server that hosts your MongoDB instances, and set credentials for the instances. Repeat the procedure to add all the servers that host MongoDB resources.

About this task

To add a MongoDB application server to IBM Spectrum® Protect Plus, you must have the host address of the machine.

Procedure

  1. In the navigation pane, expand Manage Protection > Applications > MongoDB.
  2. In the MongoDB window, click Manage Application Servers, and click Add Application Server to add the host machine.
    Add Application Server
  3. In the Application Properties form, enter the host address.
  4. Choose to register the host with a user or an SSH key.
    If you select User, you can choose to enter a new user and password, or an existing user. If you select SSH Key, select the SSH key from the menu.
    Restriction: Any user that is specified must have sudo privileges set up.
    Figure 1. Adding a MongoDB agent
    Adding MongoDB application server
  5. Click Get Instances to detect and list the MongoDB instances that are available on the host server that you are adding.

    Each MongoDB instance is listed with its connection host address, status, and an indication of whether it is configured.

    Attention: If you register more than one application server for one replica set, the instance name that is displayed might change after each inventory, backup, or restore operation. The host name of the most recently added application server that belongs to the replica set is used as part of the instance name. An inventory operation is run as part of backup and restore operations.
  6. If you are using access control, configure an instance by setting credentials. Click Set Credential, and set the user ID, and password. Alternatively, you can select to use an existing user profile.
    For more information about access control, see Managing user access.

    When you set credentials, you assign MongoDB user roles for the backup and restore operations with access to role-protected MongoDB servers by using Salted Challenge Response Authentication Mechanism (SCRAM), or Challenge and response authentication. The MongoDB user that is assigned for the role-protected MongoDB server requires one of the following access levels to protect resources:

    • Host Manager: manages the database as the administrator. This role is required for taking and managing snapshots.
    • Cluster Administrator: retrieves configuration information and runs test mode restore operations of MongoDB replica sets. This role is required to reconfigure test mode restore operations of MongoDB replica sets for data queries.
    • Cluster Monitor: monitors the protection of MongoDB resources, and retrieves configuration information.
  7. Optional: Set the option Maximum concurrent databases by entering a number in the field.
  8. Save the form, and repeat the steps to add other MongoDB application servers to IBM Spectrum Protect Plus.

What to do next

After you add MongoDB application servers to IBM Spectrum Protect Plus, an inventory is automatically run on each application server to detect the relevant databases in those instances.

To verify that the databases are added, review the job log. Go to Jobs and Operations. Click the Running Jobs tab, and look for the latest Application Server Inventory log entry.

Completed jobs are shown on the Job History tab. You can use the Sort By list to sort jobs based on start time, type, status, job name, or duration. Use the Search by name field to search for jobs by name. You can use asterisks as a wildcard in the name.

Databases must be detected to ensure that they can be protected. For instructions about running a manual inventory, see Detecting MongoDB resources.