# df shows on btrfs wrong disk size

**URL:** <https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025>\
**Category:** SLES Configure-Administer\
**Created:** [March 23, 2016, 3:42pm UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025 "2016-03-23T15:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstabla](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@dstabla](https://forums.suse.com/u/dstabla)\
**Post date:** [March 23, 2016, 3:42pm UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025/1 "2016-03-23T15:42:29Z")

</div>

Hello,

I hope someone can explain this behavior:

I have a virtual machine (hypervisor ESXi 5.X), installed OS is SLES 12 SP 1 and the used filesystem is btrfs.  
I know that btrfs and df are showing different values for used and free space.  
But I don’t know how I should understand, that df shows a bigger partition then configured.

The root partition is 28,5 GiB big and I get these values:

- df - size 37GB

sles12vm:~ # df -h  
Filesystem Size Used Avail Use% Mounted on  
/dev/sda2 37G 9.1G 19G 34% /  
devtmpfs 939M 0 939M 0% /dev  
tmpfs 948M 0 948M 0% /dev/shm  
tmpfs 948M 9.7M 938M 2% /run  
tmpfs 948M 0 948M 0% /sys/fs/cgroup  
/dev/sda2 37G 9.1G 19G 34% /var/tmp  
/dev/sda2 37G 9.1G 19G 34% /var/spool  
/dev/sda2 37G 9.1G 19G 34% /var/lib/pgsql  
/dev/sda2 37G 9.1G 19G 34% /var/crash  
/dev/sda2 37G 9.1G 19G 34% /tmp  
/dev/sda2 37G 9.1G 19G 34% /srv  
/dev/sda2 37G 9.1G 19G 34% /var/opt  
/dev/sda2 37G 9.1G 19G 34% /var/log  
/dev/sda2 37G 9.1G 19G 34% /var/lib/named  
/dev/sda2 37G 9.1G 19G 34% /var/lib/mailman  
/dev/sda2 37G 9.1G 19G 34% /usr/local  
/dev/sda2 37G 9.1G 19G 34% /home  
/dev/sda2 37G 9.1G 19G 34% /opt  
/dev/sda2 37G 9.1G 19G 34% /boot/grub2/x86\_64-efi  
/dev/sda2 37G 9.1G 19G 34% /boot/grub2/i386-pc

- btrfs

sles12vm:~ # btrfs filesystem show /  
Label: none uuid: 5e77d6a7-b282-49ba-9417-ccb688be3b02  
Total devices 1 FS bytes used 8.44GiB  
devid 1 size 28.54GiB used 11.28GiB path /dev/sda2

So from where get’s df the additional 9~ GiB ?

Sincerely,

D. Stabla

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [March 28, 2016, 7:30am UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025/2 "2016-03-28T07:30:20Z")

</div>

dstabla,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![abkumar](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@abkumar](https://forums.suse.com/u/abkumar)\
**Post date:** [March 28, 2016, 1:29pm UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025/3 "2016-03-28T13:29:36Z")

</div>

Could you please paste the output of the below command ?

```auto
# btrfs filesystem usage /
```

---

<div class="post-metadata">

**Author:** ![dstabla](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@dstabla](https://forums.suse.com/u/dstabla)\
**Post date:** [June 3, 2016, 10:44am UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025/4 "2016-06-03T10:44:47Z")

</div>

Hello,

sorry for the late reply.

Output:  
sles12vm:~ # btrfs filesystem usage /  
Overall:  
Device size: 28.54GiB  
Device allocated: 18.92GiB  
Device unallocated: 9.62GiB  
Device missing: 0.00B  
Used: 16.47GiB  
Free (estimated): 10.97GiB (min: 6.16GiB)  
Data ratio: 1.00  
Metadata ratio: 2.00  
Global reserve: 320.00MiB (used: 0.00B)

Data,single: Size:16.00GiB, Used:14.65GiB  
/dev/sda2 16.00GiB

Metadata,DUP: Size:1.43GiB, Used:931.41MiB  
/dev/sda2 2.85GiB

System,DUP: Size:32.00MiB, Used:16.00KiB  
/dev/sda2 64.00MiB

Unallocated:  
/dev/sda2 9.62GiB

Sincerely,

D. Stabla

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [June 6, 2016, 12:53pm UTC](https://forums.suse.com/t/df-shows-on-btrfs-wrong-disk-size/28025/5 "2016-06-06T12:53:12Z")

</div>

(sorry, wrong response)
