Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: How to free up space from daily updates

  1. #1
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default How to free up space from daily updates

    I've been using Tumbleweed for a week now and enjoy it very much. But I've noticed that after daily updates that my ssd 120 gb hard drive is filling up fast. It's gone from 16-23% filled in a week? How can I free up space so my hhd doesn't fill up in a month of updates?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: How to free up space from daily updates

    Hi
    You need to configure snapper first, edit the /etc/snapper/configs/root and set the number snapshots to something like;
    Code:
    # limit for number cleanup
    NUMBER_MIN_AGE="1800"
    NUMBER_LIMIT="4"
    NUMBER_LIMIT_IMPORTANT="2"
    Then run the daily cleanup cronjob and the btrfs-balance;
    Code:
    /etc/cron.daily/suse.de-snapper
    /etc/cron.weekly/btrfs-balance.sh
    That should clean things up, on tumbleweed if the latest updates are running ok, then manually run those two commands to help keep things clean.
    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
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to free up space from daily updates

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You need to configure snapper first, edit the /etc/snapper/configs/root and set the number snapshots to something like;
    Code:
    # limit for number cleanup
    NUMBER_MIN_AGE="1800"
    NUMBER_LIMIT="4"
    NUMBER_LIMIT_IMPORTANT="2"
    Then run the daily cleanup cronjob and the btrfs-balance;
    Code:
    /etc/cron.daily/suse.de-snapper
    /etc/cron.weekly/btrfs-balance.sh
    That should clean things up, on tumbleweed if the latest updates are running ok, then manually run those two commands to help keep things clean.
    I made the changes to snapper, then after saving do I reboot? and the

    Then run the daily cleanup cronjob and the btrfs-balance;
    Code:
    /etc/cron.daily/suse.de-snapper
    /etc/cron.weekly/btrfs-balance.sh
    just add command to terminal and press enter? How do you run daily cleanup cronjob? What is in front of the paths you gave me?

  4. #4
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to free up space from daily updates

    Here's the results:

    [code]
    davek@linux-6kvw:~> su
    Password:
    linux-6kvw:/home/davek # /etc/cron.daily/suse.de-snapper
    linux-6kvw:/home/davek # /etc/cron.weekly/btrfs-balance.sh
    bash: /etc/cron.weekly/btrfs-balance.sh: No such file or directory
    linux-6kvw:/home/davek #
    [code]

  5. #5
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to free up space from daily updates

    Rebooted and now after running df it shows 20% used instead of 23%. If I learn to run the cronjob maybe I can lower that percentage?

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,747

    Default Re: How to free up space from daily updates

    The cron will run daily and weekly respectively. They are scheduled. Changing the limit will reduce the number of snapshots.

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: How to free up space from daily updates

    Quote Originally Posted by vinoman2 View Post
    Here's the results:

    [code]
    davek@linux-6kvw:~> su
    Password:
    linux-6kvw:/home/davek # /etc/cron.daily/suse.de-snapper
    linux-6kvw:/home/davek # /etc/cron.weekly/btrfs-balance.sh
    bash: /etc/cron.weekly/btrfs-balance.sh: No such file or directory
    linux-6kvw:/home/davek #
    [code]
    Hi
    Ok, so looks like the softlink is not created for the balance, as root user create;

    Code:
    cd /etc/cron.weekly
    ln -s /usr/share/btrfsmaintenance/btrfs-balance.sh
    /etc/cron.weekly/btrfs-balance.sh
    If you run the command;

    Code:
    snapper list
    It should show a reduced number, once the balance job runs that should clean up btrfs usage some more, you can check the status via;

    Code:
    btrfs fi usage /
    With tumbleweed if it's a big update, then it will create a bigger snapshot, or if you doing multiple changes, adding packages etc, snapshots can build up before the daily or weekly cronjob is run. For example there have been 4 tumbleweed releases this week, if the weekly job hasn't run, then more space will be consumed.
    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!

  8. #8
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to free up space from daily updates

    Thank you!

  9. #9
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Post Re: How to free up space from daily updates

    Haven't used tumbleweed for a few days and had 578 updates and filled the hdd to 27%! What can I do to cut this in half?

    I really like using Tumbleweed but if it fills up with updates so fast I won't be able to use this OS on a regular basis.

    Do others must have this problem too?

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: How to free up space from daily updates

    Quote Originally Posted by vinoman2 View Post
    Haven't used tumbleweed for a few days and had 578 updates and filled the hdd to 27%! What can I do to cut this in half?

    I really like using Tumbleweed but if it fills up with updates so fast I won't be able to use this OS on a regular basis.

    Do others must have this problem too?
    Hi
    Configure snapper and clean up manually (see the previous posts).
    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!

Page 1 of 3 123 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
  •