Bcachefs
Jump to navigation
Jump to search
Bcachefs is a next-generation CoW filesystem that aims to provide features from Btrfs and ZFS with a cleaner codebase, more stability, greater speed and a GPL-compatible license.
It is built upon Bcache and is mainly developed by Kent Overstreet.
Contents
Installation
Bcachefs is not in the upstream Kernel yet but the linux-bcachefs-gitAUR kernel can be installed from the AUR.
The Bcachefs userspace tools are available from bcachefs-tools-gitAUR.
Setup
Single drive
# bcachefs format /dev/sda1 # mount -t bcachefs /dev/sda1 /mnt
Multiple drives in RAID0/1
# bcachefs format /dev/sda1 /dev/sdb1 --data_replicas=n --metadata_replicas=n # mount -t bcachefs /dev/sda1:/dev/sdb1 /mnt
Using ssds as a caching layer
# bcachefs format \ --group=ssds /dev/sda1 /dev/sdb1 --group=hdds /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 --foreground_target=ssds \ --background_target=hdds \ --promote-target=ssds # mount -t bcachefs /dev/sda1:/dev/sdb1:/dev/sdc1:/dev/sdd1/dev/sde1:/dev/sdf1 /mnt
Tips and tricks
Documentation
Up-to-date documentation is only available via bcachefs --help
. The man page, for instance, includes the now-useless --tier
option.