mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-08 08:06:01 +02:00
743 B
743 B
btrfs device
Manage devices in a btrfs filesystem. More information: https://btrfs.readthedocs.io/en/latest/btrfs-device.html.
- 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/device1|device_id1 path/to/device2|device_id2 ...}}
- 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 {{[-d|--all-devices]}}
- Display detailed per-disk allocation statistics:
sudo btrfs device usage {{path/to/btrfs_filesystem}}