Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to fix btrfsmaintenance

  1. #1
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default How to fix btrfsmaintenance

    On boot version 0.4.2 runs btrfsmaintenance-refresh.service during processing of /etc/fstab. This results in systemd unmounting already mounted partitions.

    https://en.opensuse.org/SDB:Fix_btrf...enance-refresh
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,368

    Question Re: How to fix btrfsmaintenance

    Seems to be OK.

    Which/what “boot version 0.4.2” is meant here?

  3. #3
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default Re: How to fix btrfsmaintenance

    Quote Originally Posted by dcurtisfra View Post
    Seems to be OK.

    Which/what “boot version 0.4.2” is meant here?
    On boot [btrfsmaintenance] version 0.4.2 runs btrfsmaintenance-refresh.service during processing of /etc/fstab.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  4. #4
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    208

    Default Re: How to fix btrfsmaintenance

    Found on https://en.opensuse.org/SDB:Fix_btrf...enance-refresh that the way to check this is checking the journal so I did so:
    Code:
    > sudo journalctl -b -u btrfs* -o short-monotonic
    [    6.231133] systemd[1]: Started Watch /etc/sysconfig/btrfsmaintenance.
    [    6.240089] systemd[1]: Starting Update cron periods from /etc/sysconfig/btrfsmaintenance...
    [    6.329473] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-scrub.sh for uninstall
    [    6.329473] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-defrag.sh for uninstall
    [    6.332106] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-balance.sh for uninstall
    [    6.339249] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-trim.sh for uninstall
    [    6.349608] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-scrub for monthly
    [    6.948747] systemd[1]: Started Balance block groups on a btrfs filesystem.
    [    6.948880] systemd[1]: Started Scrub btrfs filesystem, verify block checksums.
    [    6.950764] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-defrag for none
    [    7.258546] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-balance for weekly
    [    7.588677] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-trim for none
    [    7.873002] systemd[1]: btrfsmaintenance-refresh.service: Succeeded.
    [    7.873784] systemd[1]: Started Update cron periods from /etc/sysconfig/btrfsmaintenance.
    So, btrfsmaintenance-refresh.service is running during the boot (one but last line)

    Good to know how to fix this, but isn't it better to create a bug report so that it can be fixed for everybody with an new update.

  5. #5
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default Re: How to fix btrfsmaintenance

    Quote Originally Posted by marel View Post
    Found on https://en.opensuse.org/SDB:Fix_btrf...enance-refresh that the way to check this is checking the journal so I did so:
    Code:
    > sudo journalctl -b -u btrfs* -o short-monotonic
    [    6.231133] systemd[1]: Started Watch /etc/sysconfig/btrfsmaintenance.
    [    6.240089] systemd[1]: Starting Update cron periods from /etc/sysconfig/btrfsmaintenance...
    [    6.329473] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-scrub.sh for uninstall
    [    6.329473] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-defrag.sh for uninstall
    [    6.332106] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-balance.sh for uninstall
    [    6.339249] btrfsmaintenance-refresh-cron.sh[1135]: Refresh script btrfs-trim.sh for uninstall
    [    6.349608] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-scrub for monthly
    [    6.948747] systemd[1]: Started Balance block groups on a btrfs filesystem.
    [    6.948880] systemd[1]: Started Scrub btrfs filesystem, verify block checksums.
    [    6.950764] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-defrag for none
    [    7.258546] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-balance for weekly
    [    7.588677] btrfsmaintenance-refresh-cron.sh[1135]: Refresh timer btrfs-trim for none
    [    7.873002] systemd[1]: btrfsmaintenance-refresh.service: Succeeded.
    [    7.873784] systemd[1]: Started Update cron periods from /etc/sysconfig/btrfsmaintenance.
    So, btrfsmaintenance-refresh.service is running during the boot (one but last line)

    Good to know how to fix this, but isn't it better to create a bug report so that it can be fixed for everybody with an new update.
    I am trying hard:

    https://bugzilla.suse.com/show_bug.cgi?id=1165780
    https://bugzilla.suse.com/show_bug.cgi?id=1145650
    https://bugzilla.suse.com/show_bug.cgi?id=1124823
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  6. #6
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    208

    Default Re: How to fix btrfsmaintenance

    Thanks, quite some effort spend already to get a patch in, but no traction yet it seems.

  7. #7
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default Re: How to fix btrfsmaintenance

    Quote Originally Posted by marel View Post
    Thanks, quite some effort spend already to get a patch in, but no traction yet it seems.
    There is a problem with conceptions how units btrfsmaintenance-refresh.path and btrfsmaintenance-refresh.service should work. So I added more detail to https://en.opensuse.org/SDB:Fix_btrf..._correct_state

    See also: https://github.com/kdave/btrfsmaintenance/pull/80
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  8. #8
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default Re: How to fix btrfsmaintenance

    Users affected by failing mounts are kindly asked to give feedback here and to report to the maintainers: https://bugzilla.suse.com/show_bug.cgi?id=1165780#c25
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  9. #9
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    208

    Default Re: How to fix btrfsmaintenance

    Sorry for asking but what kind of feedback is "needed".

    I just updated and see basically the same output of "sudo journalctl -b -u btrfs* -o short-monotonic" as above, is that what can help the maintainers?

  10. #10
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,903
    Blog Entries
    1

    Default Re: How to fix btrfsmaintenance

    Quote Originally Posted by marel View Post
    Sorry for asking but what kind of feedback is "needed".

    I just updated and see basically the same output of "sudo journalctl -b -u btrfs* -o short-monotonic" as above, is that what can help the maintainers?
    If you experience systemd unmounting partitions report at: https://bugzilla.suse.com/show_bug.cgi?id=1165780

    Presumably you have btrfsmaintenance-refresh.service enabled and the unit runs during boot without /etc/sysconfig/btrfsmaintenance being changed. Follow https://en.opensuse.org/SDB:Fix_btrf..._correct_state and double check. Feedback welcome here.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •