general:linux:btrfs
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| general:linux:btrfs [2022/05/11 15:06] – created sunkan | general:linux:btrfs [2022/05/11 16:33] (current) – sunkan | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Use RAID1 and choose stronger checksum XXHASH64 | Use RAID1 and choose stronger checksum XXHASH64 | ||
| < | < | ||
| - | root@lotr: | + | root@lotr: |
| </ | </ | ||
| + | fstab like so | ||
| + | < | ||
| + | UUID=< | ||
| + | </ | ||
| + | Installed btrfsmaintenance package and edited / | ||
| + | < | ||
| + | BTRFS_BALANCE_MOUNTPOINTS="/ | ||
| + | BTRFS_SCRUB_MOUNTPOINTS="/ | ||
| + | BTRFS_TRIM_MOUNTPOINTS="/ | ||
| + | </ | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | Verified that timers were added to systemd | ||
| + | < | ||
| + | root@lotr: | ||
| + | UNIT LOAD | ||
| + | btrfs-balance.timer loaded active waiting Balance block groups on a btrfs filesystem | ||
| + | btrfs-scrub.timer | ||
| + | </ | ||
| + | |||
| + | Create subvolume for imagelib | ||
| + | < | ||
| + | btrfs su create / | ||
| + | </ | ||
| + | |||
| + | Setup fstab to mount subvolume separate from btrfs_root | ||
| + | < | ||
| + | UUID=< | ||
| + | </ | ||
general/linux/btrfs.1652281580.txt.gz · Last modified: 2022/05/11 15:06 by sunkan