Creating an Instant Clone for MongoDB

You can create an instant clone for MongoDB using the command line interface.

Procedure

  1. Log on to the CommServe using the qlogin command.

  2. Start the job using the following command:

    qoperation execute -af "mongodb_instant_clone_template.xml" -clientName clientName -instanceName instanceName

    The 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

  1. Stop the MongoDB cloned server on the master node of the cluster.

  2. Log on to the CommServe using the qlogin command.

  3. Download the nfs_remove_export_template.xml file.

  4. Do the following:

    1. 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_name

      For 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
    2. Delete the share using the following command:

      qoperation execute -af nfs_remove_export_template.xml -maClientInfo/clientName MediaAgent_name -shareId Share_ID

      For 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 1056

      For more information about how to delete an NFS share, see Deleting an NFS or SMB Share from the Command Line.

Page contents

×

Loading...