User Tools

Site Tools


general:linux:btrfs

This is an old revision of the document!


btrfs

btrfs on lotr

Use RAID1 and choose stronger checksum XXHASH64

root@lotr:~# mkfs.btrfs -d raid1 -L btrfs_lotr --checksum xxhash /dev/sda /dev/sdb

fstab like so

UUID=<the_uuid> /btrfs_root btrfs defaults,noatime 0       0

Installed btrfsmaintenance package and edited /etc/default/btrfsmaintenance since we are not mounted at /

BTRFS_BALANCE_MOUNTPOINTS="/btrfs_root"
BTRFS_SCRUB_MOUNTPOINTS="/btrfs_root"
BTRFS_TRIM_MOUNTPOINTS="/btrfs_root"

Enabled these timers

systemctl enable btrfs-balance.timer
systemctl enable btrfs-scrub.timer

And refreshed the configuration (unsure if it is needed or a reboot does the same)

systemctl restart btrfsmaintenance-refresh.service
general/linux/btrfs.1652286060.txt.gz · Last modified: 2022/05/11 16:21 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki