You can create an instant clone for MongoDB using the command line interface.
Procedure
-
Log on to the CommServe using the qlogin command.
-
Start the job using the following command:
qoperation execute -af "mongodb_instant_clone_template.xml" -clientName clientName -instanceName instanceNameThe command starts the clone MongoDB server on the master node of the instance.
Note
The command considers the source and destination instances to be the same.
What to Do Next
-
Stop the MongoDB cloned server on the master node of the cluster.
-
Log on to the CommServe using the qlogin command.
-
Download the nfs_remove_export_template.xml file.
-
Do the following:
-
On the MediaAgent computer, find the share ID using the following command:
df -h | grep -i share MediaAgent_name:/share_ID 128T 100M 128T 1% /opt/commvault/iDataAgent64/jobResults/2/1363/49340/MongoDb3dfsMount/share_nameFor example, the following command finds the share ID on the mediaagent-setup.testlab.firstcorp.com MediaAgent computer:
mediaagent-setup.testlab.firstcorp.com:/share49340 128T 100M 128T 1% /opt/commvault/iDataAgent64/jobResults/2/1363/49340/MongoDb3dfsMount/share1056 -
Delete the share using the following command:
qoperation execute -af nfs_remove_export_template.xml -maClientInfo/clientName MediaAgent_name -shareId Share_IDFor example, the following command deletes the share ID 1056 on the mongolinmacent MediaAgent client.
qoperation execute -af nfs_remove_export_template.xml -maClientInfo/clientName mongolinmacent -shareId 1056For more information about how to delete an NFS share, see Deleting an NFS or SMB Share from the Command Line.
-