Managing a Google cloud immutable storage using msdpcldutil tool
MSDP cloud admin tool /usr/openv/pdde/pdcr/bin/msdpcldutil is used to manage Google cloud immutable storage.
To manage a Google cloud immutable storage using msdpcldutil tool
- Set the following environment variables
# export MSDPC_REGION=<your region> # export MSDPC_PROVIDER=google # export MSDPC_ACCESS_KEY=<your storage account> # export MSDPC_SECRET_KEY=<your access key> # export MSDPC_ENDPOINT=https://storage.googleapis.com # export MSDPC_GCP_SAKEY=<Your Google service account key file path>
To get the service account key, see Create and manage service account keys
To get the ACESS_KEY and SECRET_KEY, see HMAC keys
- Create a Google cloud immutable storage.
# msdpcldutil bucket create --bucket bucketname --mode ENTERPRISE - period 2D
ENTERPRISE is unlocked policy and COMPLIANCE is locked policy in Google.
- List the Google cloud immutable storage.
#/usr/openv/pdde/pdcr/bin/msdpcldutil bucket list
- Get the Google cloud immutable storage information.
#/usr/openv/pdde/pdcr/bin/msdpcldutil bucket info - bucket bucketname
- Update the Google cloud immutable storage retention period.
#/usr/openv/pdde/pdcr/bin/msdpcldutil bucket update --bucket bucketname - mode ENTERPRISE - period 3D
- Update the Google cloud immutable storage retention mode.
#/usr/openv/pdde/pdcr/bin/msdpcldutil bucket update --bucket bucketname - mode COMPLIANCE - period 3D
- If you change the retention policy through Google WebUI, you must sync the MSDP configuration file.
#/usr/openv/pdde/pdcr/bin/msdpcldutil bucket sync - bucket bucketname