psm dhcs add-storage

Extend storage volumes of an Oracle Data Hub Cloud Service cluster.

Syntax

psm dhcs add-storage -s|--service-name cluster-name
	-c|--config-payload path-to-json-payload
	[-of|--output-format short|json|html]
	[-wc|--wait-until-complete true|false]

Parameters

Parameter Description

-s|--service-name cluster-name

Specifies the name of the Oracle Data Hub Cloud Service cluster.

-c|—config-payload

Specifies the path to a JSON file containing the information necessary to add storage. The format of this file is the same as the request body you provide when adding storage by using the REST API. For information about this format, see the “Body Parameter” section of Add Storage to an Existing or New Volume in REST API for Oracle Data Hub Cloud Service.

-of|--output-format short|json|html

(Optional) Specifies the output format of the command’s response:

  • short— output is formatted as a brief summary.

  • json— output is formatted as a JSON array.

  • html— output is formatted as HTML

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

–wc|--wait-until-complete true|false

(Optional) If set to true, the command behaves synchronously. That is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:

Waiting for the job to complete... (it cannot be cancelled)

The default value is false.

Examples

The following example increases the data storage volume to 200 GB, the commit log storage volume to 60 GB, and the backup storage volume to 200 GB in all the nodes associated with the cluster1 cluster.

$ psm dhcs add-storage -s cluster1 -c add-storage-payload.json
{
    "details":{
        "message":"Submitted job to add storage for service [cluster1] in domain [beta].",
        "jobId":"7126179"
    }
}
Job ID : 7126179

Note:

You can track the progress of this command by using the psm dhcs operation-status command.

The payload for this command is similar to the following:

{
    "allServiceHosts":true,
    "components":{
        "CASSANDRA":{
            "dataStorage":"200",
            "commitLogStorage":"60",
            "backupStorage":"200"
        }
    }
}