[opensuse] Anomalous reporting of btrfs by df/du

The number don't add up: # df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgmain-vROOT 10G 7.0G 1.6G 82% / /dev/mapper/vgmain-vHOME 5.0G 2.7G 666M 81% /home Try that without the human readable # df --type=btrfs Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vgmain-vROOT 10485760 7325208 1611576 82% / /dev/mapper/vgmain-vHOME 5242880 2820236 680968 81% /home That's with snapper removed. Now 'du' walks the tree adding up the size of the files # du -hsx /home / 2.4G /home 5.9G / So yes there is some overhead ... A lot of overhead it seems if I just look at the space used. 5.9 ==> 7.0 And 2.4 --> 2.7 But the number don't add up for 'df' by a long way. I doubt the btree overhead is all that. -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

В Sun, 22 Jun 2014 13:23:31 -0400 Anton Aylward <opensuse@antonaylward.com> пишет:
The number don't add up:
# df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgmain-vROOT 10G 7.0G 1.6G 82% / /dev/mapper/vgmain-vHOME 5.0G 2.7G 666M 81% /home
Try that without the human readable
# df --type=btrfs Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vgmain-vROOT 10485760 7325208 1611576 82% / /dev/mapper/vgmain-vHOME 5242880 2820236 680968 81% /home
That's with snapper removed.
Did you also removed all snapshots?
Now 'du' walks the tree adding up the size of the files
# du -hsx /home / 2.4G /home 5.9G /
So yes there is some overhead ... A lot of overhead it seems if I just look at the space used. 5.9 ==> 7.0 And 2.4 --> 2.7
But the number don't add up for 'df' by a long way. I doubt the btree overhead is all that.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On 06/22/2014 01:30 PM, Andrey Borzenkov wrote:
That's with snapper removed.
Did you also removed all snapshots?
I said that. Or 'delete' Wonderful how come commands want to use one term and some the other! -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Sun 22 Jun 2014 02:04:33 PM CDT, Anton Aylward wrote:
On 06/22/2014 01:30 PM, Andrey Borzenkov wrote:
That's with snapper removed.
Did you also removed all snapshots?
I said that. Or 'delete'
Wonderful how come commands want to use one term and some the other!
Hi use the btrfs tools? On this system; btrfs filesystem show /dev/sda2 Label: opensuse131 uuid: bc702ca6-ac81-48ea-8a62-f2d51423553d Total devices 1 FS bytes used 8.33GiB devid 1 size 40.00GiB used 15.77GiB path /dev/sda2 Btrfs v3.12+20131125 df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/sda2 40G 8.4G 32G 21% / -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) 3.10.1 Kernel 3.11.10-11-desktop up 15:46, 3 users, load average: 0.35, 0.48, 0.59 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On 06/22/2014 03:05 PM, Malcolm wrote:
On Sun 22 Jun 2014 02:04:33 PM CDT, Anton Aylward wrote:
On 06/22/2014 01:30 PM, Andrey Borzenkov wrote:
That's with snapper removed.
Did you also removed all snapshots?
I said that. Or 'delete'
Wonderful how come commands want to use one term and some the other!
Hi use the btrfs tools?
On this system;
btrfs filesystem show /dev/sda2
Label: opensuse131 uuid: bc702ca6-ac81-48ea-8a62-f2d51423553d Total devices 1 FS bytes used 8.33GiB devid 1 size 40.00GiB used 15.77GiB path /dev/sda2
Btrfs v3.12+20131125
df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/sda2 40G 8.4G 32G 21% /
Not helpful:
sudo /usr/sbin/btrfs filesystem show /dev/mapper/vgmain-vROOT Label: 'ROOT' uuid: 4d0f475c-2833-4858-96ed-f284b634ffb2 Total devices 1 FS bytes used 6.72GiB devid 1 size 10.00GiB used 10.00GiB path /dev/mapper/vgmain-vROOT
Btrfs v3.14.2+20140530
sudo /usr/sbin/btrfs filesystem show /dev/mapper/vgmain-vHOME Label: none uuid: c2355d2e-46f9-45fc-b85f-942a8d53535b Total devices 1 FS bytes used 2.72GiB devid 1 size 5.00GiB used 5.00GiB path /dev/mapper/vgmain-vHOME
df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgmain-vROOT 10G 7.0G 1.6G 83% / /dev/mapper/vgmain-vHOME 5.0G 2.8G 631M 82% /home
There is still the matter of the "Avail" -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- helicopter (n): 30,000 parts in tight orbit around a hydraulic fluid leak, waiting for metal fatigue to set in. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On 06/22/2014 10:13 PM, Anton Aylward wrote:
df -h --type=btrfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgmain-vROOT 10G 7.0G 1.6G 83% / /dev/mapper/vgmain-vHOME 5.0G 2.8G 631M 82% /home
There is still the matter of the "Avail"
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#df-Size-and-Use... Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

В Sun, 22 Jun 2014 14:04:33 -0400 Anton Aylward <opensuse@antonaylward.com> пишет:
On 06/22/2014 01:30 PM, Andrey Borzenkov wrote:
That's with snapper removed.
Did you also removed all snapshots?
I said that.
No, you said you removed snapper. This is program that creates snapshots. Removing program does not remove snapshots it has created. Please show btrfs subvolume list -a / btrfs subvolume list -a /home
Or 'delete'
Wonderful how come commands want to use one term and some the other!
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrey Borzenkov
-
Anton Aylward
-
Bernhard Voelker
-
Malcolm