On 07/02/2019 11.00, Richard Brown wrote:
On Thu, 7 Feb 2019 at 10:45, Carlos E. R.
wrote: On 07/02/2019 08.32, Roger Oberholtzer wrote:
On Wed, Feb 6, 2019 at 4:43 PM Richard Brown
wrote: But, I can't even consider whether your proposition is correct or not, because you have posted to this list data which is known to be untrustworthy
The problem is not df vs some better utility to determine available space. It is that the test by zypper does not account for all the space that may be needed to complete the update. So updates start and fail because of lack of disk space.
You are both correct :-)
The btrfs size report tool paints a worse picture than df:
Data, single: total=60.43GiB, used=59.82GiB
There is no space on the disk at all - if I read that correctly, which perhaps I don't, because I don't understand that command and btrfs.
You didn't read it correctly ;)
"total=" relates to the 'total allocated space' for that class of data (Data) "used=" related to how much of that space is used
btrfs filesystem usage goes into far more useful detail
For example on my system I have a 444GiB sized device 198GiB is allocated 195GiB is allocated to Data 3GiB is allocated to Metadata 32MiB is allocated to System The remainder 246GiB is unallocated and can be chosen by btrfs to be used for Data, Metadata, or System as it needs it.
Inside those 3 buckets I am using 192GiB in Data 1.45GiB in Metadata 48KiB in System
And so, with a bit of math, it's relatively easy to calculate that out of my 444GiB disk, at least 248GiB is still available.
Ok; then he said: woodstock:~ # btrfs fi df / Data, single: total=60.43GiB, used=59.82GiB System, single: total=32.00MiB, used=16.00KiB Metadata, single: total=2.03GiB, used=915.50MiB So there is (rough aprox): 1 GB of data space available 31 MB of system space available 1 GB of metadata space available whereas woodstock:~ # df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 68G 61G 6.1G 91% / So basically btrfs tools says 1 G free, df says 6. The situation is much worse than what df says, right? -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)