
2018-09-04 06:28 keltezéssel, Andrei Borzenkov írta:
03.09.2018 21:17, Albert Oszkó пишет: ...
0/278 188.95MiB 188.95MiB Starting from here ...
0/403 0.00B 0.00B 0/439 0.00B 0.00B 0/580 3.17GiB 16.00EiB 0/581 413.15MiB 16.00EiB 0/638 0.00B 0.00B ... to here there are stale entries. Those subvolumes no more exist. You should delete them
btrfs qgroup destroy 0/403 / ...
And then update quota information with
btrfs quota rescan -w /
then listing qgroup should be more close to reality
0/754 10.40GiB 9.86GiB 0/876 10.96GiB 3.59GiB 0/883 11.00GiB 2.24GiB 0/904 10.92GiB 2.96GiB 1/0 29.23GiB 23.45GiB And those "lost" snapshots consume 23.45GiB together.
255/269 16.00KiB 16.00KiB
I did what you said:
linux-olq5:~ # btrfs qgroup destroy 0/403 / linux-olq5:~ # btrfs quota rescan -w / quota rescan started You miunderstand (twice actually). Qgroup is just accounting information. When quota is enabled, qgroup is automatically created for each subvolume but it is not destroyed when subvolume is deleted. Normally snapper should remove qgroup when it removes snapshot, but that apparently did not happen in your case.
So suggestion was to simply clean up output to remove stale outdated information. And suggestion was to remove *all* of stale qgroups (those that do not have corresponding subvolume), not just one of them.
But removing qgroup is not going to change anything in how much space is consumed and it was not intended to.
linux-olq5:~ # btrfs qgroup show / qgroupid rfer excl -------- ---- ---- ... 0/754 10.40GiB 9.86GiB 0/876 10.96GiB 3.59GiB 0/883 11.00GiB 2.24GiB 0/904 10.92GiB 2.96GiB 1/0 29.23GiB 23.45GiB You still have those old snapshots that apparently lost their metadata and so are not "visible" to snapper.
ID 754 gen 265167 top level 258 path @/.snapshots/64/snapshot ID 876 gen 336471 top level 258 path @/.snapshots/142/snapshot ID 883 gen 336471 top level 258 path @/.snapshots/148/snapshot ID 904 gen 341810 top level 258 path @/.snapshots/164/snapshot
If you are absolutely sure you do not need them, you should remove them. This will gain you 23.45GiB. Also remove corresponding subdirectories under /.snapshots so as to not confuse snapper
btrfs su del /.snapshots/64/snapshot rm -r /.snapshots/64 ... etc
You are right, I misunderstood your text. But by now I managed to delete those - as you call - stale snapshots, so I have plenty of space on root. But as just for many in the list below, it came into my mind, whether is this the proper choice ( I mean btrfs) for a normal or average user? The commands you wrote and the effectiveness of them delighted me, but as a nearly average user, should I know them? After all, many thanks for your help. I save it for the future. Albert