Each snapshot is logically full filesystem. Most data blocks are shared, so snapshots require much less space on disk than it looks like. du does not know it so it counts each snapshot’s logical size.
is there an easy way to calculate the size of snapshots, I mean how much space does a snapshot take. I checked a few commands like “btrfs filesystem du” but thats been running forever.
No it all depends on how much data was changed between snapshots. TW has rather large amounts of changes thus tends to make larger snapshots then LEAP.
actually I don’t want to get an estimate on the size of next snapshot, I want to see how much space the snapshots already taken uses.
For example so far if I have 4 snaphots named 1-2-3-4, I want to see how much space does snapshot 4 or 3 alone costs. There must be a way to calculate it since its already on the disk.
so far what I do is
Size of snapshot folder = total_disk_size - (sum of all other folders) - free space
But I want to see how much space I would gain If I delete one of the snapshots.
On Thu 27 Oct 2016 01:36:01 AM CDT, malcolmlewis wrote:
eyukselen;2797588 Wrote:
> actually I don’t want to get an estimate on the size of next
> snapshot, I want to see how much space the snapshots already taken
> uses.
>
> For example so far if I have 4 snaphots named 1-2-3-4, I want to see
> how much space does snapshot 4 or 3 alone costs. There must be a way
> to calculate it since its already on the disk.
>
> so far what I do is
>
> Size of snapshot folder = total_disk_size - (sum of all other
> folders) - free space
>
> But I want to see how much space I would gain If I delete one of the
> snapshots.
Hi
Since btrfs uses quotas (default on Tumbleweed and openSUSE 42.2) this
will show what each snapshot is using…
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.34-33-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!