O BTRFS pode ser usado para gerenciar os discos físicos que ele usa, e os discos físicos são adicionados a um volume BTRFS. Em seguida, o BTRFS pode criar subvolumes a partir do volume no qual os arquivos podem ser armazenados.
Unlike traditional Linux filesystems, BTRFS filesystems will allocate storage on-demand from the underlying volume.
In the BTRFS world, the word volume corresponds to a storage pool (ZFS) or a volume group (LVM).
* ''devices'' -
one or multiple underlying physical volumes.* ''volume'' - one large storage pool comprised of all space of the devices and can support different redundancy levels* ''subvolumes'' - these are what get mounted and you store files in.* ''snapshots'' - a read-only copy of a subvolume at a given point in time and/ or read-write copy of a ''subvolume '' in time ( aka clone).
Creating a Volume ==
To create a basic BTRFS volume, you will need an extra empty disk. Perform the following steps:
# ##i## mkfs.btrfs /dev/sdxy
See http://btrfs.wiki.kernel.org for more information.
Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
should be an unused disk. You may need to use the following command if this disk contains any pre- existing data on it:
Now you can mount the created volume as you would mount any other linux filesystem.
To automatically mount this volume after reboot you need to add a simple fstab entry:
You should now be at the point where you can begin to use BTRFS for a variety of tasks. While there is a lot more to BTRFS than what is covered in this short introduction, you should now have a good understanding of the fundamental concepts on which BTRFS is based.