rpk cluster partitions unsafe-recover

Recover unsafely from partitions that have lost majority.

This command allows you to unsafely recover all data adversely affected by the loss of the nodes specified in the --from-nodes flag. This operation is unsafe because it allows you to bulk move all partitions that have lost majority when nodes are gone and irrecoverable; this may result in data loss.

You can perform a dry run and verify the partitions that will be recovered by using the --dry flag.

This operation is unsafe because it allows the forced leader election of the partitions that have lost majority when nodes are gone and irrecoverable; this may result in data loss.

Usage

rpk cluster partitions unsafe-recover [flags]

Flags

Value Type Description

--dry

bool

Dry run: print the partition movement plan. Does not execute it.

--format

string

Output format (json,yaml,text,wide,help).

--from-nodes

intSlice

Comma-separated list of node IDs from which to recover the partitions.

--no-confirm

bool

Disable confirmation prompt.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.