For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Add a backup target

Follow the steps below to add a new backup target.

6.2 changes the dynamic backup-target flow. Trilio for OpenStack 6.2 deploys a single Dynamic Mount Service server per host (one on the controller, one on each compute node) and removes the per-backup-target triliovault-object-store-<bt-name> pods used in 6.1. As a result, adding a new backup target in 6.2 no longer requires a per-BT control-plane CR or a per-BT data-plane container deployment — only the Trilio DB record needs to be created (with a Barbican secret_ref for S3 targets), and DMS handles mount/unmount on demand.

1] Create the Trilio DB record for the new backup target

Identify the Trilio WLM API container or unit and connect to it. All commands below run in that shell.

RHOSO18

oc get pods -n trilio-openstack | grep wlm-api
oc exec -n trilio-openstack -it <trilio-wlm-api-pod-name> bash
source <admin rc file>

Kolla

docker exec -it triliovault_wlm_api bash
source <admin rc file>

Canonical

juju ssh trilio-wlm/leader
source <openrc file>

NFS options : nolock,soft,timeo=600,intr,lookupcache=none,nfsvers=3,retrans=10

Helm and MOSK

1.1] NFS backup target

For NFS, no Barbican secret is required. Create the backup target record directly:

Sample command:

1.2] S3 backup target

In 6.2, S3 credentials are stored in an OpenStack Barbican secret and the backup target record holds a secret_ref URL pointing at that secret. Both trilio-dms-cli and the openstack CLI are available inside the WLM API pod, so all of the following commands run there.

Step 1.2.1 — Build the secret payload using trilio-dms-cli secret-payload create.

The exact flags depend on the S3 endpoint. Two key rules apply across all examples below:

  • --endpoint-url is optional for AWS S3 (leave it unset to use the default AWS endpoint) and required for any non-AWS S3-compatible endpoint (Ceph RGW, MinIO, Wasabi, etc.).

  • --filesystem-export takes a different form per target type:

    • AWS S3 — <bucket_name> only (e.g. my-bucket).

    • Other S3 — <s3_domain_name>/<bucket_name> (e.g. s3.example.com/my-bucket).

    • NFS — <nfs_server_ip>:<export_path> (e.g. 192.168.0.53:/home/rhosp2).

The five common S3 cases:

Validate the payload before storing it in Barbican:

Step 1.2.2 — Store the payload in Barbican.

Capture the value of Secret href from the output — that URL is the secret_ref you pass to workloadmgr in the next step.

Cloud admin must have read access to the secret payload. The DMS server fetches the secret at mount time using the requesting job's Keystone token. The cloud admin user (or whichever role is configured to run backup jobs) must have secret:get permission on the Barbican secret you just stored.

Step 1.2.3 — Create the backup target record.

For a non-object-locked S3 backup target:

For an object-lock-enabled S3 backup target:

Sample (object-locked):

2] Verify

The backup target should now appear in the output of the following command:

No additional control-plane or data-plane deployment is required. The DMS server pods deployed during the initial 6.2 install (one triliovault-dms-* on each controller and one triliovault-dms on each compute node) handle the new target automatically. You can spot-check that they are running:

RHOSO18

Kolla

Canonical

Helm and MOSK

The first time a snapshot or restore runs against the new backup target, DMS will mount it on the relevant node on demand and unmount it when the last job finishes.


Deprecated (6.1) — adding a backup target with per-BT secret + per-BT object-store containers

In Trilio for OpenStack 6.1 and earlier, adding a dynamic backup target required deploying a per-BT object-store container on the control plane and on every compute node. The flow below is preserved for reference; do not use it on 6.2 or later.

1] Mount Backup target on Trilio Control Plane

Navigate to the trilio ctlplane-scripts directory:

T4O 6.1 supported two types of backup targets — nfs and s3.

For NFS:

For S3, copy the secret template and base64-encode the access/secret keys:

Edit the copied file:

Set:

Apply:

Apply the appropriate tvo-backup-target-cr-*.yaml for AWS S3 or other S3:

A per-BT pod named triliovault-object-store-<bt-name>-* would then appear in the trilio-openstack namespace.

2] Mount Backup target on Trilio Data Plane

This produced a per-BT edpm_triliovault-object-store-<BT_NAME>.service on every compute node.

3] Add Backup Target Records

In 6.1 the WLM record was created with inline S3 endpoint + bucket (no secret_ref):


In 6.2 the per-BT secret YAML, the tvo-backup-target-cr-*.yaml CRs, the create-templates.sh step, and the trilio-add-backup-target-{service,deployment}.yaml data-plane resources are all replaced by the Barbican secret_ref flow documented above.

Last updated

Was this helpful?