Bugzilla – Bug 1090789
btrfsmaintenance doens't work per default in transactional server role
Last modified: 2023-09-28 07:40:43 UTC
The default configuration for btrfsmainenance is to do scrub and balance on / . With transactional server profile, / is read-only and /var is read-write, thus maintenance fails and never runs. I'd suggest either changing the default to `auto` or making a read-write path the default ( /var).
(In reply to Spindel Ljungmark from comment #0) > I'd suggest either changing the default to `auto` or making a read-write > path the default ( /var). /var is a bad choice, depending on your installation this could also be read-only. We use /.snapshots as fallback, if / is read-only everywhere else.
issue is still present and it makes MicroOS and its derivative not running scrub operation by default, which is wrong (even if / is read-only). Since scrub can be run in RO mode (/etc/sysconfig/btrfsmaintenance can be configured this way) , it would be better to btrfs-scrub.sh to detect this automatically and run in RO mode if partition is mounted RO.