For the complete documentation index, see llms.txt. This page is also available as Markdown.

weka replication

Manage cross-cluster replication links and filesystem replication pairs.

Set up and manage cross-cluster replication on this cluster: links to remote clusters, and the filesystem pairs replicated over them.

weka replication

weka replication fs-pair

List replication pairs with their current state and progress, both the pairs this cluster drives and the read-only mirrors of ones replicating into it.

weka replication fs-pair

Columns: id, uid, state, role, source, link, link-id, target, interval, snapshots-to-keep, apply, access, copy, copy-paths, last-replication, current-status, last-error, last-error-time

weka replication fs-pair add

Create a new replication pair between a local filesystem and a filesystem on a linked cluster.

weka replication fs-pair add --interval <duration> --source-filesystem <filesystem> --target-filesystem <filesystem> [--access-strategy <access-strategy>] [--apply-strategy <apply-strategy>] [--copy-path <path>…] [--link-id <cluster-link-id>] [--now] [--snapshots-to-keep <count>] [--target-total-capacity <capacity>]
Parameter
Description

--interval <duration>*

Replication interval (e.g. 5m, 1h). Range: 5 minutes to 30 days.

--source-filesystem <filesystem>*

Name of the local source filesystem.

--target-filesystem <filesystem>*

Name of the filesystem on the remote cluster.

--access-strategy <access-strategy>

When users see the target filesystem: INSTANT_ACCESS (default) exposes the snapshot immediately and fetches data lazily; COPY_FIRST blocks the apply until --copy-path data is local. Valid values: instant_access, copy_first.

--apply-strategy <apply-strategy>

When the snapshot becomes visible on the target. AUTOMATIC (the default, and the only value supported in this release) applies it as soon as the prerequisite phase finishes. Valid value: automatic.

--copy-path <path>…

Eager-copy path. Keywords: 'full', 'all' or '/' for full copy; 'none' or 'null' for no eager copy. Default: no eager copy. Multiple values may be supplied separated by commas, or the option may be repeated.

--link-id <cluster-link-id>

ID of the cluster link to replicate over, as shown by 'weka cluster link'.

--now

Trigger the first replication cycle immediately instead of waiting one full interval.

--snapshots-to-keep <count>

Number of snapshots to retain. Default: 3. Range: 2 to 25.

--target-total-capacity <capacity>

Total capacity for the target filesystem (default: same as the source filesystem). A smaller target is allowed for partial or no eager copy (--copy-path); full copy requires at least the source size.

weka replication fs-pair fetch

Asynchronously fetch a file's lazy-data blocks from the source cluster. The fetch runs in the background; use 'weka fs replication hydration status' to monitor progress. Accepts either a local mount path or --filesystem NAME with an FS-relative path.

Parameter
Description

path*

Path to fetch.

--filesystem <filesystem>

Filesystem name; the positional path is treated as FS-relative.

--snapshot <snapshot>

Snapshot name; resolve path within this snapshot view instead of the live root.

weka replication fs-pair hydration

Per-file replication hydration commands.

weka replication fs-pair hydration status

Show replication hydration status for a given file path: how much of the file is locally available and how much is still pending on the source cluster (lazy-data blocks not yet prefetched).

Parameter
Description

path*

Path to get replication hydration status for.

--filesystem <filesystem>

Filesystem name; the positional path is treated as FS-relative.

--snapshot <snapshot>

Snapshot name; resolve path within this snapshot view instead of the live root.

Columns: path, type, size, local, pending, progress, status

weka replication fs-pair pause

Pause an active replication pair.

Parameter
Description

id*

Replication pair ID.

weka replication fs-pair release

Asynchronously return a file's data blocks to lazy mode. The release runs in the background; use 'weka fs replication hydration status' to monitor progress.

weka replication fs-pair remove

Remove an existing replication pair.

Parameter
Description

id*

Replication pair ID.

-f, --force

Force action. Perform this action without further confirmation.

--local-only

Remove the pair on this cluster only, leaving the remote cluster untouched. Use when the remote cluster is unreachable or gone; it is also the only way to remove an incoming pair.

weka replication fs-pair resume

Resume a paused replication pair.

Parameter
Description

id*

Replication pair ID.

weka replication fs-pair update

Update an existing replication pair's configuration.

Parameter
Description

id*

Replication pair ID.

--access-strategy <access-strategy>

When users see the target filesystem: INSTANT_ACCESS or COPY_FIRST. Valid values: instant_access, copy_first.

--add-copy-path <path>…

Add a path to a PARTIAL copy set (repeatable). Multiple values may be supplied separated by commas, or the option may be repeated.

--apply-strategy <apply-strategy>

When the snapshot becomes visible on the target. AUTOMATIC is the only value supported in this release. Valid value: automatic.

--copy-path <path>…

Replace the entire copy set. Keywords: 'full', 'all' or '/' for full copy; 'none' or 'null' to clear. Mutually exclusive with --add-copy-path/--remove-copy-path. Multiple values may be supplied separated by commas, or the option may be repeated.

--interval <duration>

Replication interval (e.g. 5m, 1h). Range: 5 minutes to 30 days.

--remove-copy-path <path>…

Remove a path from a PARTIAL copy set (repeatable). Multiple values may be supplied separated by commas, or the option may be repeated.

--snapshots-to-keep <count>

Number of snapshots to retain. Default: 3. Range: 2 to 25.

List and manage links to remote clusters for cross-cluster replication. Both clusters need an S3 cluster configured. Per-filesystem replication pairs are managed under 'weka fs replication'.

Parameter
Description

--link-id <cluster-link-id>

Show only the cluster link with this ID.

--name <cluster-link>

Show only cluster links with this name. Names can repeat, so more than one link may match.

Columns: id, uid, name, peer_guid, connection_status, pairing_status, mgmtIps, data_ips, data_port

Link this cluster to a remote one for cross-cluster replication. Creates the link on both clusters, and may be run from either. Both must have an S3 cluster and a cluster name set — the link is named after the cluster at the other end.

Parameter
Description

--peer-host <hostname>*

Management hostname or IP of the cluster to link to.

--username <string>*

Cluster admin username on the peer cluster.

--auto-accept-peer-cert

Accept whatever TLS certificate the peer presents, without confirming its fingerprint. The certificate is still pinned and checked on every later connection.

--fingerprint <string>

Expected SHA256 fingerprint of the peer's TLS certificate (64 hex digits), shown by 'weka security tls status' on the peer cluster.

--password <string>

Password for --username. Alternatively use the WEKA_PEER_PASSWORD env variable or the interactive prompt.

--peer-port <port>

Management API port of the peer cluster (default 14000).

Refresh a cluster link: both clusters re-read each other's replication configuration.

Parameter
Description

link-id*

ID of the cluster link to refresh.

--peer-host <hostname>

Management hostname or IP to reach the peer on for this run, when its recorded addresses no longer do. Not stored.

--peer-port <port>

Management API port to reach the peer on for this run, when its recorded port no longer does. Not stored.

Remove a cluster link. Both clusters drop the link, so it need only be run from one of them. Per-filesystem replication pairs using the link must be removed first.

Parameter
Description

link-id*

ID of the cluster link to remove.

-f, --force

Force action. Perform this action without further confirmation.

--local-only

Remove only this cluster's link, leaving the peer's in place. Use it to clear a link left on one side by a failed add, or when the peer is unreachable.

Last updated