-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joyce Fee <[email protected]>
- Loading branch information
Showing
7 changed files
with
278 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-cancel-mount.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
= rpk cluster storage cancel mount | ||
|
||
Cancels a mount/unmount operation on a topic. | ||
|
||
Use the migration ID that is emitted when the mount or unmount operation is executed. You can also get the migration ID by listing the mount/unmount operations. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage cancel-mount [MIGRATION ID] [flags] | ||
---- | ||
|
||
== Aliases | ||
|
||
[,bash] | ||
---- | ||
cancel-mount, cancel-unmount | ||
---- | ||
|
||
== Examples | ||
|
||
Cancel a mount/unmount operation: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage cancel-mount 123 | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|-h, --help |- |Help for cancel-mount. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
67 changes: 67 additions & 0 deletions
67
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-list-mount.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
= rpk cluster storage list mount | ||
|
||
List mount/unmount operations on a topic in the Redpanda cluster from glossterm:tiered-storage[]. | ||
|
||
You can also filter the list by state using the `--filter` flag. The possible states are: | ||
|
||
- `planned` | ||
- `prepared` | ||
- `executed` | ||
- `finished` | ||
If no filter is provided, all migrations are listed. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage list-mount [flags] | ||
---- | ||
|
||
== Aliases | ||
|
||
[,bash] | ||
---- | ||
list-mount, list-unmount | ||
---- | ||
|
||
|
||
|
||
== Examples | ||
|
||
Lists mount/unmount operations: | ||
[,bash] | ||
---- | ||
rpk cluster storage list-mount | ||
---- | ||
|
||
|
||
|
||
Use a filter to list only migrations in a specific state: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage list-mount --filter planned | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|-f, --filter |string |Filter the list of migrations by state. Only valid for text. | ||
|
||
|--format |string |Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
59 changes: 59 additions & 0 deletions
59
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-mount.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
= rpk cluster storage mount | ||
|
||
Mount a topic to the Redpanda cluster from glossterm:tiered-storage[]. | ||
|
||
This command mounts a topic in the Redpanda cluster using log segments stored in Tiered Storage. | ||
|
||
You can optionally rename the topic using the `--to` flag. | ||
|
||
Requirements: | ||
|
||
- xref:manage:tiered-storage.adoc#enable-tiered-storage[Tiered Storage must be enabled]. | ||
- Log segments for the topic must be available in Tiered Storage. | ||
- A topic with the same name must not already exist in the cluster. | ||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage mount [TOPIC] [flags] | ||
---- | ||
|
||
|
||
== Examples | ||
|
||
Mounts topic `<my-typic`> from Tiered Storage to the cluster in the my-namespace: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage mount <my-topic> | ||
---- | ||
|
||
|
||
Mount topic `<my-topic>` from Tiered Storage to the cluster in the `<my-namespace>` with `<my-new-topic>` as the new topic name: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage mount <my-namespace>/<my-topic> --to <my-namespace>/<my-new-topic> | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|--to |string |New namespace/topic name for the mounted topic (optional). | ||
|
||
|-h, --help |- |Help for mount. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
45 changes: 45 additions & 0 deletions
45
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-status-mount.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
= rpk cluster storage status mount | ||
|
||
Status of mount/unmount operation on topic in a Redpanda cluster from glossterm:tiered-storage[]. | ||
|
||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage status-mount [MIGRATION ID] [flags] | ||
---- | ||
|
||
== Aliases | ||
|
||
[,bash] | ||
---- | ||
status-mount, status-unmount | ||
---- | ||
|
||
== Examples | ||
|
||
Status for a mount/unmount operation: | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage status-mount 123 | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|--format |string |Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. | ||
|
||
|-h, --help |- |Help for status-mount. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
52 changes: 52 additions & 0 deletions
52
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-storage-unmount.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
= rpk cluster storage unmount | ||
|
||
Unmount a topic from the Redpanda cluster and secure it in glossterm:tiered-storage[]. | ||
|
||
This command performs an operation that: | ||
|
||
1. Rejects all writes to the topic. | ||
2. Flushes data to Tiered Storage. | ||
3. Removes the topic from the cluster. | ||
Key Points: | ||
|
||
- During unmounting, any attempted writes or reads will receive an `UNKNOWN_TOPIC_OR_PARTITION` error. | ||
- The unmount operation works independently of other topic configurations like `remote.delete=false`. | ||
- After unmounting, the topic can be remounted to this cluster or a different cluster if the log segments are moved to that cluster's Tiered Storage. | ||
== Usage | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage unmount [TOPIC] [flags] | ||
---- | ||
|
||
== Examples | ||
|
||
Unmount topic '<my-topic>' from the cluster in the '<my-namespace>': | ||
|
||
[,bash] | ||
---- | ||
rpk cluster storage unmount <my-namespace>/<my-topic> | ||
---- | ||
|
||
== Flags | ||
|
||
[cols="1m,1a,2a"] | ||
|=== | ||
|*Value* |*Type* |*Description* | ||
|
||
|-h, --help |- |Help for unmount. | ||
|
||
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. | ||
|
||
|-X, --config-opt |stringArray |Override `rpk` configuration settings. See xref:reference:rpk/rpk-x-options.adoc[`rpk -X`] or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. | ||
|
||
|--profile |string |Profile to use. See xref:reference:rpk/rpk-profile.adoc[`rpk profile`] for more details. | ||
|
||
|-v, --verbose |- |Enable verbose logging. | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters