From 3e1ff6c3e2b12c9971b05384ab14e7af744f4c97 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:46:03 +0300 Subject: [PATCH] bcachefs: update header; bcachefs-device: add page (#13770) --- pages/linux/bcachefs-device.md | 16 ++++++++++++++++ pages/linux/bcachefs.md | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pages/linux/bcachefs-device.md diff --git a/pages/linux/bcachefs-device.md b/pages/linux/bcachefs-device.md new file mode 100644 index 0000000000..58b033e98f --- /dev/null +++ b/pages/linux/bcachefs-device.md @@ -0,0 +1,16 @@ +# bcachefs device + +> Manage devices within a running `bcachefs` filesystem. +> More information: . + +- Format and add a new device to an existing filesystem.: + +`sudo bcachefs device add --label={{group}}.{{name}} {{path/to/mountpoint}} {{path/to/device}}` + +- Migrate data off a device to prepare for removal: + +`bcachefs device evacuate {{path/to/device}}` + +- Permanently remove a device from a filesystem: + +`bcachefs device remove {{path/to/device}}` diff --git a/pages/linux/bcachefs.md b/pages/linux/bcachefs.md index e81f3c4146..87920264cf 100644 --- a/pages/linux/bcachefs.md +++ b/pages/linux/bcachefs.md @@ -1,7 +1,8 @@ # bcachefs > Manage `bcachefs` filesystems/devices. -> More information: . +> Some subcommands such as `device` have their own usage documentation. +> More information: . - Format a partition with `bcachefs`: