cockroach debug ballast command is still available but deprecated. For more information about how automatic ballast file creation works, see automatic ballast files.
The cockroach debug ballast command creates a large, unused file that you can place in a node’s storage directory. In the case that a node runs out of disk space and shuts down, you can delete the ballast file to free up enough space to be able to restart the node.
- Do not run
cockroach debug ballastwith a unixrootuser. Doing so brings the risk of mistakenly affecting system directories or files. cockroach debug ballastnow refuses to overwrite the target ballast file if it already exists. This change is intended to prevent mistaken uses of theballastcommand. Consider adding anrmcommand to scripts that integratecockroach debug ballast, or provide a new file name every time and then remove the old file.- In addition to placing a ballast file in each node’s storage directory, it is important to actively monitor remaining disk space.
- Ballast files may be created in many ways, including the standard
ddcommand.cockroach debug ballastuses thefallocatesystem call when available, so it will be faster thandd.
Subcommands
While thecockroach debug command has a few subcommands, users are expected to use only the zip, encryption-active-key, merge-logs, list-files, tsdump, and ballast subcommands.
We recommend using the encryption-decrypt and job-trace subcommands only when directed by the Cockroach Labs support team.
The other debug subcommands are useful only to Cockroach Labs. Output of debug commands may contain sensitive or secret information.

