Creating and Mounting a Btrfs File System
Use the mkfs.btrfs
command to create a Btrfs file system that's laid
out across one or more block devices.
Btrfs can be used on a single block device, or you can use the built-in RAID functionality to format the file system across more than one block device.
When formatting more than one block device, Btrfs defaults to mirror the file system metadata across the devices. If you specify a single device, the metadata is duplicated on that device, unless you specify to use only one copy of the metadata.
The devices can be whole block device(s), disk partitions, files, loopback devices, multipath devices, or LUNs that implement RAID in hardware.
See the mkfs.btrfs(8)
manual page for more detailed information about the
mkfs.btrfs
command the various Btrfs configurations that you can
create.