Skip to content

chalkctl storage reset

chalkctl storage reset <node> <volume> [flags]

Wipes one volume of a node and creates it again, empty, the way the node's config defines it. Its data is lost. A volume the config encrypts is sealed to the TPM again and, unless the node's fallback is none, gets the second keyslot back: the node's recovery key or its password. A volume the config leaves unencrypted is created without encryption. The command needs the inventory, which defines the volume, and an admin client file or the secrets file. A node whose fallback is its recovery key needs the secrets file, from which the key is derived.

Flags

Flag Type Default Description
--address list of [NODE=]ADDR each node's address in the inventory Address of a node's chalkd: host or host:port for the node the command names, or NODE=ADDR for any node; may be repeated.
--config string $CHALKOSCONFIG, else ~/.config/chalkos/config, unless --secrets is given Client file to authenticate with instead of the secrets file.
--identity list of string ~/.config/chalkos/age.key, ~/.ssh/id_ed25519, ~/.ssh/id_rsa File holding an age identity to decrypt the secrets with; may be repeated.
--inventory string $CHALKOSINVENTORY, else chalkos.yaml in the current directory, when it exists Inventory naming the cluster's nodes, their addresses and their config files.
--password-file string — File holding the password of a node whose fallback is a password.
--secrets string — Cluster secrets path (.age, .enc.*, or plaintext), provider URI, or - for standard input.

Examples

# Recreate the data volume of w1.
chalkctl storage reset w1 data --secrets secrets.age

See also