User Tools

Site Tools


general:linux:btrfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
general:linux:btrfs [2022/05/11 15:17] – [btrfs on lotr] sunkangeneral:linux:btrfs [2022/05/11 16:22] sunkan
Line 7: Line 7:
 </code> </code>
  
 +fstab like so
 +<code>
 +UUID=<the_uuid> /btrfs_root btrfs defaults,noatime 0       0
 +</code>
  
 +Installed btrfsmaintenance package and edited /etc/default/btrfsmaintenance since we are not mounted at /
 +<code>
 +BTRFS_BALANCE_MOUNTPOINTS="/btrfs_root"
 +BTRFS_SCRUB_MOUNTPOINTS="/btrfs_root"
 +BTRFS_TRIM_MOUNTPOINTS="/btrfs_root"
 +</code>
 +
 +Enabled these timers
 +<code>
 +systemctl enable btrfs-balance.timer
 +systemctl enable btrfs-scrub.timer
 +</code>
 +
 +And refreshed the configuration (unsure if it is needed or a reboot does the same)
 +<code>
 +systemctl restart btrfsmaintenance-refresh.service
 +</code>
 +
 +Verified that timers were added to systemd
 +<code>
 +root@lotr:~# systemctl -t timer list-units 'btrfs*'
 +  UNIT                LOAD   ACTIVE SUB     DESCRIPTION
 +  btrfs-balance.timer loaded active waiting Balance block groups on a btrfs filesystem
 +  btrfs-scrub.timer   loaded active waiting Scrub btrfs filesystem, verify block checksums
 +</code>
general/linux/btrfs.txt · Last modified: 2022/05/11 16:33 by sunkan

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