Results 1 to 7 of 7

Thread: order of btrfsmaintenance scripts

  1. #1
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default order of btrfsmaintenance scripts

    I've disabled the btrfsmaintenance cron jobs
    and manually run btrfs-trim, btrfs-balance and btrfs-scrub in
    /usr/share/btrfsmaintenance

    Is there any reason to run one before the others?
    Is a specific order beneficial in some way?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,203
    Blog Entries
    15

    Default Re: order of btrfsmaintenance scripts

    Quote Originally Posted by ravas View Post
    I've disabled the btrfsmaintenance cron jobs
    and manually run btrfs-trim, btrfs-balance and btrfs-scrub in
    /usr/share/btrfsmaintenance

    Is there any reason to run one before the others?
    Is a specific order beneficial in some way?
    Hi
    The btrfs-balance can be run anytime, the other two I would only use once per month..
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: order of btrfsmaintenance scripts

    Thanks.
    It's a new month and I will run all of them,
    hence my question.

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,203
    Blog Entries
    15

    Default Re: order of btrfsmaintenance scripts

    Quote Originally Posted by ravas View Post
    Thanks.
    It's a new month and I will run all of them,
    hence my question.
    Hi
    If I were to choose, balance, scrub, then trim.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: order of btrfsmaintenance scripts

    Thanks again.
    What is your reasoning for that order?

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,203
    Blog Entries
    15

    Default Re: order of btrfsmaintenance scripts

    Quote Originally Posted by ravas View Post
    Thanks again.
    What is your reasoning for that order?
    Hi
    Clean up space (balance), verify and check (scrub), then final clean up on the disk with fstrim...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: order of btrfsmaintenance scripts

    After further research and contemplation, I'm inclined toward: scrub, trim, and then balance.

    Scrub first, because we want to know about and deal with corruption ASAP.
    Trim second, because it optimizes writing.
    Balance third, because it can perform (re)writing.

    That said, I don't use the btrfsmaintenance scripts, now that I understand what they are equivalent to.
    https://en.opensuse.org/SDB:Disable_btrfsmaintenance
    Tumbleweed, Xfce, Firefox, uBlock Origin

Posting Permissions

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