mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:26:01 +02:00
btrfs-device: add page (#5170)
This commit is contained in:
parent
81c139c072
commit
caa82706af
1 changed files with 24 additions and 0 deletions
24
pages/linux/btrfs-device.md
Normal file
24
pages/linux/btrfs-device.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# btrfs device
|
||||
|
||||
> Manage devices in a btrfs filesystem.
|
||||
> More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-device>.
|
||||
|
||||
- Add one or more devices to a btrfs filesystem:
|
||||
|
||||
`sudo btrfs device add {{path/to/block_device1}} [{{path/to/block_device2}}] {{path/to/btrfs_filesystem}}`
|
||||
|
||||
- Remove a device from a btrfs filesystem:
|
||||
|
||||
`sudo btrfs device remove {{path/to/device|device_id}} [{{...}}]`
|
||||
|
||||
- Display error statistics:
|
||||
|
||||
`sudo btrfs device stats {{path/to/btrfs_filesystem}}`
|
||||
|
||||
- Scan all disks and inform the kernel of all detected btrfs filesystems:
|
||||
|
||||
`sudo btrfs device scan --all-devices`
|
||||
|
||||
- Display detailed per-disk allocation statistics:
|
||||
|
||||
`sudo btrfs device usage {{path/to/btrfs_filesystem}}`
|
Loading…
Add table
Reference in a new issue