btrfs-device
Manage devices in a btrfs filesystem. tldr-pages
On Linux
Linux
Add one or more devices to a btrfs filesystem
sudo btrfs [d [a path/to/block_device1 path/to/block_device2 ... path/to/btrfs_filesystemIdentifyRemove a device from a btrfs filesystem
sudo btrfs [d [rem path/to/device1|device_id1 path/to/device2|device_id2 ...IdentifyDisplay error statistics
sudo btrfs [d [st path/to/btrfs_filesystemIdentifyScan all disks and inform the kernel of all detected btrfs filesystems
sudo btrfs [d [sc --all-devicesIdentifyDisplay detailed per-disk allocation statistics
sudo btrfs [d [u path/to/btrfs_filesystemIdentify