Yugabyte provisioning operations
Provision operations via CLI
To create a VDB via CLI, you must first create a dSource. For more information on creating a dSource, refer to Link operation via CLI section.
To create a VDB and perform operations via CLI, log in to the Delphix Continuous Data Engine using the admin user account.
ssh admin@dlpx-engine.delphix.com
Provision
Run the below commands to provision a VDB. The below example uses testdb
dSource.
Example -
database provision
set type=AppDataProvisionParameters
set container.name=testvdb
set container.group=Untitled
set source.allowAutoVDBRestartOnHostReboot=true
set sourceConfig.repository="yb-load-tgt2.delphix.com/delphix_os vFiles (15.2)"
set timeflowPointParameters.container=testdb
set sourceConfig.name=testscfgv
set source.parameters="{ \
\"vdb_name\":\"testvdb\", \
\"run_restore\":false, \
\"database_name\":\"yb_demo\", \
\"mount_path\":\"/mnt/provision/testvdb\", \
\"enable_authentication\":true, \
\"authentication_details.password\":\"delphixpwd\", \
\"num_nodes\":1, \
\"server_config\": [ \
{ \
\"node_id\":\"master1\", \
\"node_details.server_type\":\"Master\", \
\"node_details.host_ref\":\"yb-load-tgt2\", \
\"node_details.user_ref\":\"yb-load-tgt2/delphix_os\", \
\"node_details.master_ip\":
\"yb-load-tgt2.dcol2.delphix.com\", \
\"node_details.hostname\":\"0.0.0.0\", \
\"node_details.port_list.master_rpc_port\":7100, \
\"node_details.tuning_params\": [ \
{ \
\"parameter_name\":
\"default_memory_limit_to_ram_ratio\", \
\"parameter_value\":\"0.8\" \
} \
] \
}, \
{ \
\"node_id\":\"tserver1\", \
\"node_details.server_type\":\"TServer\", \
\"node_details.host_ref\":\"yb-load-tgt2\", \
\"node_details.user_ref\":\"yb-load-tgt2/delphix_os\", \
\"node_details.hostname\":\"0.0.0.0\", \
\"node_details.port_list.tserver_rpc_port\":9100, \
\"node_details.port_list.tserver_pgsql_port\":5433, \
\"node_details.port_list.tserver_csql_port\":9042, \
\"node_details.tuning_params\": [ \
{ \
\"parameter_name\":
\"default_memory_limit_to_ram_ratio\", \
\"parameter_value\":\"0.8\" \
} \
] \
} \
}"
commit
Disable
Run the below commands to disable a dSource. You must select the same sourceConfig name that was given during VDB creation.
Example -
source
select testscfgv
disable
commit
Enable
Run the below command to enable a dSource.
Example -
source
select testscfgv
enable
commit
Stop
Run the below command to stop a dSource.
Example -
source
select testscfgv
stop
commit
Start
Run the below command to start a dSource.
Example -
source
select testscfgv
start
commit