Skip to main content
Skip table of contents

MongoDB provision operations

To create a VDB via CLI, you must first create a dSource. For more information on creating a dSource, refer to the MongoDB link operations.

To create a VDB and perform operations via CLI, login to the Delphix Continuous Data Engine using the admin user account.

CODE
ssh admin@<CONTINUOUS-DATA-FQDN-or-IP>

Provision

Run the commands below to provision a VDB. The example below uses testdb dSource.

CODE
database provision
set type=AppDataProvisionParameters
set container.name=testvdb
set container.group=Untitled
set sourceConfig.repository=APPDATA_REPOSITORY-15
set timeflowPointParameters.type=TimeflowPointSnapshot
set timeflowPointParameters.snapshot=APPDATA_SNAPSHOT-253
set sourceConfig.name=testscfgv
set source.allowAutoVDBRestartOnHostReboot=false
set source.parameters="{\"vdb_details\":[{\"mount_path\":\"\/mnt\/provision\/test_vdb\",\"bind_ip\":\"0.0.0.0\",\"start_portpool\":47701,\"make_shards_replicaset\":false}],\"vdb_sharded_details\":[],\"vdb_tuning_details\":[],\"enable_authentication\":true,\"vdb_auth_details\":[{\"mongo_db_password\":\"delphix\",\"cluster_auth_mode\":\"keyFile\",\"keyfile_path\":\"\/home\/delphix\/keyfile\/keyfile\"}],\"additional_nodes\":[],\"enable_ssl_tls\":false,\"ssl_tls_params\":[],\"client_tls_cert\":\"\",\"client_tls_cacert\":\"\",\"enable_ldap\":false,\"ldap_params\":[],\"encryption_params\":[]}"

commit

Disable

Run the commands below to disable a dSource. You must select the same sourceConfig name that was given during VDB creation.

CODE
source
select testscfgv
disable
commit

Enable

Run the command below to enable a dSource.

CODE
source
select testscfgv
enable
commit

Stop

Run the command below to stop a dSource.

CODE
source
select testscfgv
stop
commit

Start

Run the command below to start a dSource.

CODE
source
select testscfgv
start
commit
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.