From bca386f4c5858ae9e0bda49480aceb785756569b Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 20 Aug 2024 22:08:51 +0300 Subject: [PATCH] bcachefs: add runtime replication examples (#13486) Co-authored-by: spageektti --- pages/linux/bcachefs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/linux/bcachefs.md b/pages/linux/bcachefs.md index 675b39cea..e81f3c414 100644 --- a/pages/linux/bcachefs.md +++ b/pages/linux/bcachefs.md @@ -23,6 +23,14 @@ `bcachefs fs usage --human-readable {{path/to/mountpoint}}` +- Set replicas after formatting and mounting: + +`sudo bcachefs set-fs-option --metadata_replicas={{2}} --data_replicas={{2}} {{path/to/partition}}` + +- Force `bcachefs` to ensure all files are replicated: + +`sudo bcachefs data rereplicate {{path/to/mountpoint}}` + - Display help: `bcachefs`