Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207441

Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...)

From Anders Andersson <pipatron@gmail.com>
Newsgroups linux.debian.user
Subject Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...)
Date 2019-04-14 10:30 +0200
Message-ID <xMIGt-4ss-7@gated-at.bofh.it> (permalink)
References <xM5ON-5p0-3@gated-at.bofh.it> <xMc3U-UC-5@gated-at.bofh.it> <xMsV3-2VN-5@gated-at.bofh.it> <xMuk9-3We-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Apr 13, 2019 at 7:08 PM Felix Miata <mrmazda@earthlink.net> wrote:
>
> Anders Andersson composed on 2019-04-13 17:31 (UTC+0200):
>
> > Felix Miata wrote:
>
> >> Because of its snapshotting, BTRFS requires considerably more space than older
> >> filesystems, as much as double.
>
> > A btrfs snapshot takes approximately zero space. Where did you get
> > this idea from?
>
> (not an exhaustive list)
>
> 1: "Disk Space Full Because of Snapper" on https://en.opensuse.org/SDB:BTRFS
>
> 2: Since 2015, BTRFS has been the default / filesystem on openSUSE, which
> recommends minimum / filesystem size of 20GB for EXT4, compared to 40GB for BTRFS.
>
> 3: Much more common / filesystem freespace exhausted threads on mailing lists and
> web forums from BTRFS users compared to EXT4 users, with the usual recommendation
> to delete one or more snapshots to free space.
>
> 4: https://btrfs.wiki.kernel.org/index.php/FAQ#Help.21_I_ran_out_of_disk_space.21
>
> 5: https://btrfs.wiki.kernel.org/index.php/FAQ#Why_is_free_space_so_complicated.3F
>
> 6:
> https://www.linuxquestions.org/questions/linux-containers-122/docker-on-btrfs-using-much-space-in-var-lib-docker-btrfs-4175622037/#post5811463



Of course you will run out of space if you keep taking snapshots!
Btrfs never does this, but you can do it *manually* or with
third-party tools. When you take a snapshot, btrfs will keep
everything until it's deleted. That's why everyone says that if you
run out of space, you can delete snapshots. If the advise to the user
is to delete a snapshot, it is something that the user did *because*
they wanted to retain those files.

The "Snapper" user has *installed* a tool that takes snapshots all the
time - obviously you will run out of space because every file you
modify or delete will still be stored in its original version until
you remove the snapshot.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

New laptop: need advice on choice of file system types Tom Browder <tom.browder@gmail.com> - 2019-04-12 17:00 +0200
  Re: New laptop: need advice on choice of file system types Dan Ritter <dsr@randomstring.org> - 2019-04-12 18:50 +0200
    Re: New laptop: need advice on choice of file system types Tom Browder <tom.browder@gmail.com> - 2019-04-12 19:20 +0200
      Re: New laptop: need advice on choice of file system types Brian <ad44@cityscape.co.uk> - 2019-04-12 23:40 +0200
      Re: New laptop: need advice on choice of file system types Dan Ritter <dsr@randomstring.org> - 2019-04-13 00:10 +0200
    Re: New laptop: need advice on choice of file system types Default User <hunguponcontent@gmail.com> - 2019-04-12 20:30 +0200
      Re: New laptop: need advice on choice of file system types Dan Ritter <dsr@randomstring.org> - 2019-04-13 00:10 +0200
        Re: New laptop: need advice on choice of file system types Default User <hunguponcontent@gmail.com> - 2019-04-13 02:30 +0200
    Re: New laptop: need advice on choice of file system types Thomas D Dial <tdial@acm.org> - 2019-04-13 00:10 +0200
      Re: New laptop: need advice on choice of file system types Curt <curty@free.fr> - 2019-04-13 10:10 +0200
        Re: New laptop: need advice on choice of file system types Dan Ritter <dsr@randomstring.org> - 2019-04-13 15:30 +0200
  Re: New laptop: need advice on choice of file system types Felix Miata <mrmazda@earthlink.net> - 2019-04-12 23:40 +0200
    Re: New laptop: need advice on choice of file system types Anders Andersson <pipatron@gmail.com> - 2019-04-13 17:40 +0200
      Re: BTRFS snapshot space consumption (was: New laptop: need advice on  choice...) Felix Miata <mrmazda@earthlink.net> - 2019-04-13 19:10 +0200
        Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) deloptes <deloptes@gmail.com> - 2019-04-13 23:20 +0200
        Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) Peter Wiersig <peter@friesenpeter.de> - 2019-04-14 02:40 +0200
          Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) Peter Wiersig <peter@friesenpeter.de> - 2019-04-14 02:50 +0200
            Re: BTRFS snapshot space consumption (was: New laptop: need advice on  choice...) Matthew Crews <mailinglists@mattcrews.com> - 2019-04-14 03:00 +0200
              Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) Peter Wiersig <peter@friesenpeter.de> - 2019-04-14 15:10 +0200
                Re: BTRFS snapshot space consumption (was: New laptop: need advice  on choice...) Dan Ritter <dsr@randomstring.org> - 2019-04-15 01:10 +0200
                Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) Peter Wiersig <peter@friesenpeter.de> - 2019-04-15 05:20 +0200
        Re: BTRFS snapshot space consumption (was: New laptop: need advice on choice...) Anders Andersson <pipatron@gmail.com> - 2019-04-14 10:30 +0200
    Re: New laptop: need advice on choice of file system types Jonathan Dowland <jmtd@debian.org> - 2019-04-15 16:30 +0200
      Re: New laptop: need advice on choice of file system types Felix Miata <mrmazda@earthlink.net> - 2019-04-15 19:40 +0200
        Re: New laptop: need advice on choice of file system types Jonathan Dowland <jmtd@debian.org> - 2019-04-16 10:20 +0200
          Re: New laptop: need advice on choice of file system types Felix Miata <mrmazda@earthlink.net> - 2019-04-16 21:30 +0200
  Re: New laptop: need advice on choice of file system types Anders Andersson <pipatron@gmail.com> - 2019-04-13 17:50 +0200
  Re: New laptop: need advice on choice of file system types Jonathan Dowland <jmtd@debian.org> - 2019-04-15 16:40 +0200
  Re: New laptop: need advice on choice of file system types Tom Browder <tom.browder@gmail.com> - 2019-04-15 16:40 +0200
    Re: New laptop: need advice on choice of file system types Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-04-16 20:40 +0200
      Re: New laptop: need advice on choice of file system types Jonas Smedegaard <jonas@jones.dk> - 2019-04-16 22:00 +0200
      Re: New laptop: need advice on choice of file system types Jonathan Dowland <jmtd@debian.org> - 2019-04-17 12:40 +0200

csiph-web