You can add a MongoDB cluster.
Prerequisite (Commvault SaaS only)
A Database subscription is required to onboard MongoDB cluster.
To add a MongoDB cluster, follow these steps:
-
From the navigation pane, go to Service catalog.
-
On the Welcome page, in the Big Data tile, click Configure.
-
In the Configure Big Data App page, select MongoDB, and then click Next.
-
Install the MongoDB package on your cluster nodes using one of the following methods.
If already installed, from the existing nodes list, select a MongoDB master node.
-
Select Interactive installation.
-
To use backup gateway, enable the Backup gateway toggle key, and select an existing backup gateway or click the add button to add a new backup gateway.
-
Follow the on-screen instructions to download and install the MongoDB package on the nodes of the MongoDB cluster.
-
Click the refresh button, and then select the MongoDB master node
-
Click Next.
-
Select Push installation.
-
Click Add to add the MongoDB servers.
-
Enter the fully qualified host name (FQHN) of the MongoDB node.
-
Select the OS Type for the node.
-
Select the credentials or click the add button to add new credentials.
-
Enter the installation location path, and then click Install.
-
Click the refresh button, and then select the MongoDB master node
-
Click Next.
Note
-
If the selected master node is not available due to a network failure or any other reason and a backup is in progress, then the Commvault software does the following:
-
For the replica set environments, the software picks another node as master node from the replica set for backup operation.
-
For sharded cluster environments, the node with mongos (routing service) is picked as master node.
-
-
-
Select an existing backup plan or create a new backup plan.
-
Click Next.
-
Enter a name for the MongoDB cluster.
-
For Binary path, specify or browse the path to the folder that contains the mongod or mongos executable file.
The Commvault software uses mongo/mongosh, mongod, mongodump, and mongorestore for backup and restore operations. Keep the binaries in bin path and verify that the bin path is same across all the nodes in the cluster.
-
For OS user name, enter the OS user name to use for the MongoDB servers.
The Commvault software uses the OS user name to start the MongoDB servers after the restore operation.
Permissions for OS user
The OS user must have permissions to do the following:
-
Start/stop the MongoDB service.
-
Read/write access to the files in dbPath and log directories.
-
Execute permissions on MongoDB binaries.
-
Access to the configured network ports.
-
-
For Port number, enter the mongod or mongos port number, and then click Next.
-
From the Database credential list, select an existing credential or click the add button to create new credentials.
Need help creating credentials?
-
For Credential name, enter the credential name.
-
For Username, enter the user name of the MongoDB user account.
-
For Password, enter the password of the database user.
-
Enter a description, and then click Save.
Note
-
The MongoDB authentication user account must be associated with the admin database.
-
For sharded cluster environments, you must create the same database user on all the sharded servers and the config server.
-
-
From the SSL configuration list, select an existing credential or click the add button to create new credentials.
Need help creating credentials?
-
For Credential name, enter the credential name.
-
For SSL CA Certificate path, enter the full path to the Certificate Authority (CA) file that will be used with the mongo commands.
-
For SSL PEM key file box, enter the full path to the client pem key file that will be used with the mongo commands, to connect to the MongoDB server.
-
For SSL PEM key password, enter the password to decrypt the client certificate key file.
-
Enter a description, and then click Save.
Note
-
Verify that the parameters in the TLS/SSL CA certificate file and the TLS/SSL pem key file have the same names across all nodes of the cluster. The TLS/SSL pem key password value must be the same on all the nodes of the cluster.
-
If you have customized TLS/SSL CA certificate file and the TLS/SSL pem key files across nodes, then you can configure the bEnableMongoSSL, sMongoSSLClientCAFile, sMongoSSLClientPEMKeyFile and pMongoSSLClientPEMKeyPassword additional settings.
-
-
Click Next, and then complete the configuration wizard.
-
To run a manual backup, go to the cluster, and then in the upper-right area of the page, click Backup.