mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 14:00:02 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/bcachefs-device
Normal file
21
tldr/linux/bcachefs-device
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bcachefs device
|
||||
|
||||
> Manage devices within a running `bcachefs` filesystem.
|
||||
> More information: <https://bcachefs-docs.readthedocs.io/en/latest/mgmt-devicemanagement.html>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user