# Mount Point Size

**URL:** <https://forum.ansible.com/t/mount-point-size/26290>\
**Category:** Ansible Project\
**Created:** [December 14, 2017, 10:27am UTC](https://forum.ansible.com/t/mount-point-size/26290 "2017-12-14T10:27:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravikumar\_Wagh](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Ravikumar\_Wagh](https://forum.ansible.com/u/Ravikumar_Wagh)\
**Post date:** [December 14, 2017, 10:27am UTC](https://forum.ansible.com/t/mount-point-size/26290/1 "2017-12-14T10:27:51Z")

</div>

Hello,

I was trying to get details of mout points but found that df and ansible setup module not returns same size or block count.

This is case even I specify bloc size for df command

checkout below :

ravikumar:~ # df -Th --block-size=4096

Filesystem Type 4K-blocks Used Available Use% Mounted on  
devtmpfs devtmpfs 2002838 0 2002838 0% /dev  
tmpfs tmpfs 2005039 39 2005000 1% /dev/shm  
tmpfs tmpfs 2005039 31067 1973972 2% /run  
tmpfs tmpfs 2005039 0 2005039 0% /sys/fs/cgroup  
/dev/sda3 ext3 23445742 3929894 18323208 18% /  
/dev/sda1 ext3 250579 12706 224728 6% /boot  
tmpfs tmpfs 401008 0 401008 0% /run/user/40405  
tmpfs tmpfs 401008 4 401004 1% /run/user/483  
tmpfs tmpfs 401008 0 401008 0% /run/user/0

Ansible result :

“block\_available”: 18323119,

“block\_size”: 4096,  
“block\_total”: 23445742,

Can some one comment on this why they are different.

Thanks !!

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [December 14, 2017, 11:21am UTC](https://forum.ansible.com/t/mount-point-size/26290/2 "2017-12-14T11:21:36Z")

</div>

The block\_total is equal and block\_available just have a difference of 89 blocks.

I doubt that the ansible fact command checking the disk have been run at the same millisecond/nanosecond as the df command.  
In a live file system a lot of IO is ongoing, like temp files been created av deleted, so it normal that available space change all the time.

Ansible is just running Python os.statvfs so with this command you might be lucky to see that they are the same.

df -Th --block-size=4096 /; python -c "import os;print os.statvfs('/')"

But this oneliner with two commands is run one after the other, so it too might be different.

---

<div class="post-metadata">

**Author:** ![Ravikumar\_Wagh](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Ravikumar\_Wagh](https://forum.ansible.com/u/Ravikumar_Wagh)\
**Post date:** [December 14, 2017, 11:26am UTC](https://forum.ansible.com/t/mount-point-size/26290/3 "2017-12-14T11:26:45Z")

</div>

Thanks !!!

Got you point.
