Bug 1090789 - btrfsmaintenance doens't work per default in transactional server role
Summary: btrfsmaintenance doens't work per default in transactional server role
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: David Sterba
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 22:03 UTC by Spindel Ljungmark
Modified: 2023-09-28 07:40 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spindel Ljungmark 2018-04-24 22:03:58 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).
Comment 1 Thorsten Kukuk 2018-04-25 09:25:11 UTC
(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.
Comment 2 Frederic Crozat 2023-09-28 07:40:43 UTC
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.