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

Thread: A btrfs voiume is clogged with snapshots

  1. #1

    Default A btrfs voiume is clogged with snapshots

    opensuse 13.1
    linux 3.11.10-21-desktop x86_64

    I apparently formatted the root volume as btrfs. It has been taking snapshots ever since. Now the volume is chock full of snapshots. It seems like a stupid default to have infinite snapshots.

    How do I delete the snapshots?
    How do I limit the number of snapshots?

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

    Default Re: A btrfs voiume is clogged with snapshots

    On Fri 19 Sep 2014 12:26:01 AM CDT, jimoe666 wrote:


    opensuse 13.1
    linux 3.11.10-21-desktop x86_64

    I apparently formatted the root volume as btrfs. It has been taking
    snapshots ever since. Now the volume is chock full of snapshots. It
    seems like a stupid default to have infinite snapshots.

    How do I delete the snapshots?
    How do I limit the number of snapshots?


    Hi
    Configure /etc/snapper/configs/root and then run
    suse.de-snapper in /etc/cron.hourly and /etc/cron.daily

    I keep mine at 4 and 2 for number, then 4,2,1 and 1 for timeline.

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop
    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

    Default Re: A btrfs voiume is clogged with snapshots

    Quote Originally Posted by malcolmlewis View Post
    I keep mine at 4 and 2 for number, then 4,2,1 and 1 for timeline.
    What are the units for the values? Seconds, minutes, or days?

    I have five "timeline" entries:
    Code:
    TIMELINE_MIN_AGE="1800"
    TIMELINE_LIMIT_HOURLY="10"
    TIMELINE_LIMIT_DAILY="10"
    TIMELINE_LIMIT_MONTHLY="10"
    TIMELINE_LIMIT_YEARLY="10"
    Should they be 4, 2, 1, 1, 1?

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,302
    Blog Entries
    15

    Default Re: A btrfs voiume is clogged with snapshots

    On Fri 19 Sep 2014 03:26:01 AM CDT, jimoe666 wrote:


    malcolmlewis;2665222 Wrote:
    >
    > I keep mine at 4 and 2 for number, then 4,2,1 and 1 for timeline.
    >


    What are the units for the values? Seconds, minutes, or days?

    I have five "timeline" entries:

    Code:
    --------------------
    TIMELINE_MIN_AGE="1800"
    TIMELINE_LIMIT_HOURLY="10"
    TIMELINE_LIMIT_DAILY="10"
    TIMELINE_LIMIT_MONTHLY="10"
    TIMELINE_LIMIT_YEARLY="10"
    --------------------

    Should they be 4, 2, 1, 1, 1?


    Hi
    Just these ones;
    Code:
    TIMELINE_LIMIT_HOURLY="4"
    TIMELINE_LIMIT_DAILY="2"
    TIMELINE_LIMIT_MONTHLY="1"
    TIMELINE_LIMIT_YEARLY="1"
    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop
    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

    Default Re: A btrfs voiume is clogged with snapshots

    Quote Originally Posted by malcolmlewis View Post
    and then run
    suse.de-snapper in /etc/cron.hourly and /etc/cron.daily
    What is "suse.de-snapper"?

    suse.de-snapper is already in /etc/cron.hourly/ and /etc/cron.daily/. Will all of those snapshots start disappearing?

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,302
    Blog Entries
    15

    Default Re: A btrfs voiume is clogged with snapshots

    On Fri 19 Sep 2014 05:56:01 AM CDT, jimoe666 wrote:


    malcolmlewis;2665222 Wrote:
    > and then run
    > suse.de-snapper in /etc/cron.hourly and /etc/cron.daily

    What is "suse.de-snapper"?

    suse.de-snapper is already in /etc/cron.hourly/ and /etc/cron.daily/.
    Will all of those snapshots start disappearing?


    Hi
    Manually running the cron jobs should clean things up, else wait for it
    to happen, or 15 minutes after the next reboot...

    If you run the command, snapper list it will show them. You can also
    check disk space via btrfs filesystem show and df, eg;
    [CODE ]
    btrfs filesystem show /
    btrfs filesystem df /
    [/CODE]

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop
    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
    Sep 2013
    Location
    New York
    Posts
    198

    Default Re: A btrfs voiume is clogged with snapshots

    well for starters check if you have the 'Snapper' installed. it should be in Yast.
    than start it up and you will be able to manage the snapshots as you want.
    at least you will be able to delete any and all that you want.
    here the link for better explanation https://en.opensuse.org/Portal:Snapper

  8. #8
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,002

    Default Re: A btrfs voiume is clogged with snapshots

    Snapper, the first thing I delete - or rather, never let it install
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  9. #9
    Join Date
    Sep 2013
    Location
    New York
    Posts
    198

    Default Re: A btrfs voiume is clogged with snapshots

    Quote Originally Posted by Miuku View Post
    Snapper, the first thing I delete - or rather, never let it install
    why? it works and works well.
    maybe you had a bad experinece with it on the early stages of BTRFS and Snaper development.
    but now it is much much better.

  10. #10
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,002

    Default Re: A btrfs voiume is clogged with snapshots

    Quote Originally Posted by vl1969 View Post
    why? it works and works well.
    After one of the customer SLES11 systems failed due to snapper using up all disk space, it has been on my shitlist and it's never getting out. I don't care if it cures AIDS, it's staying there - like Windows 8.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

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
  •