Contents
How much space does Btrfs use?
Chunk allocation: BTRFS allocates space for your data in chunks. Multiple devices: BTRFS supports multiple devices working together, RAID-style. That means there’s extra information to store for every file. For example, RAID-1 stores two copies of every file, so a 50MB file takes 100MB of space.
How do I resize btrfs filesystem?
Expanding the file system by adding a new disk
- add a new disk.
- rescan the SCSI bus using. rescan-scsi-bus.sh -a.
- Add the newly added device to the root btrfs filesystem. btrfs device add /dev/sdX /
- At this point the metadata is only stored on the first disk, to distribute (balance) it across the devices run:
Is the Btrfs filesystem suitable for production use?
BTRFS is still considered unstable and thus not suitable for production environments. However, the filesystem comes with many useful features and capabilities that are worth exploring. One such is the ability to create snapshots of your system. Let me elaborate. Snapshots are time-dependent system states.
What do you need to know about BtrFS snapshots?
BTRFS is supposed to provide an answer to all software-level needs for disk and file management, for which purpose you would normally need additional tools.
Can a root file be formatted with Btrfs?
You can use BTRFS for your root filesystem, excluding the /boot, which needs to be formatted with a traditional journaling filesystem. For the sake of simplicity, in this tutorial, we will work on a separate device, named /dev/sdb1, formatted with BTRFS and used on demand.
Can you switch top view to subvolumes in Btrfs?
Well, BTRFS lets you switch top view to any one of subvolumes. So basically, using subvolumes and snapshotting back and forth means simply switching view to a different data tree. No need to delete files, overwrite or anything.