# \_cat/allocation vs df

**URL:** <https://discuss.elastic.co/t/-cat-allocation-vs-df/22943>\
**Category:** Elasticsearch\
**Created:** [March 27, 2015, 12:56pm UTC](https://discuss.elastic.co/t/-cat-allocation-vs-df/22943 "2015-03-27T12:56:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Salmon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_salmon/32/5330_2.png) [@Michael\_Salmon](https://discuss.elastic.co/u/Michael_Salmon)\
**Post date:** [March 27, 2015, 12:56pm UTC](https://discuss.elastic.co/t/-cat-allocation-vs-df/22943/1 "2015-03-27T12:56:10Z")

</div>

I have been collecting stats using \_cat/allocation and I noticed that a new  
cluster showed a lot of disk being used for a few shards.  
When I checked I found that \_cat/allocation was very different to df.

For one node \_cat/allocation gives:

12 51.2gb 956.5gb 1007.8gb 5 esekilx5170 134.138.165.70 70-1

while df for the filesystem allocated to that node gives:

Filesystem Size Used Avail Use% Mounted on  
/dev/mapper/vg\_big-lv\_es\_1a  
1008G 72M 957G 1% /var/lib/es/data1a

It looks like es is reporting the difference between free and total as used  
and ignoring the reserved free space.  
Does anyone know if that is the case?

/Michael

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 28, 2015, 5:45am UTC](https://discuss.elastic.co/t/-cat-allocation-vs-df/22943/2 "2015-03-28T05:45:47Z")

</div>

You could have multiple node directories though.  
What's under /var/lib/es/data1a?

On 27 March 2015 at 23:56, Michael Salmon [michael.salmon@inovia.nu](mailto:michael.salmon@inovia.nu) wrote:

> I have been collecting stats using \_cat/allocation and I noticed that a  
> new cluster showed a lot of disk being used for a few shards.  
> When I checked I found that \_cat/allocation was very different to df.
> 
> For one node \_cat/allocation gives:
> 
> 12 51.2gb 956.5gb 1007.8gb 5 esekilx5170 134.138.165.70 70-1
> 
> while df for the filesystem allocated to that node gives:
> 
> Filesystem Size Used Avail Use% Mounted on  
> /dev/mapper/vg\_big-lv\_es\_1a  
> 1008G 72M 957G 1% /var/lib/es/data1a
> 
> It looks like es is reporting the difference between free and total as  
> used and ignoring the reserved free space.  
> Does anyone know if that is the case?
> 
> /Michael
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ce9b5070-decb-4245-869b-f63258527d5e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8gtr0X%3DkJkaxB-Vxuiij%2BEAiX%3D5Ov%3DYU0j9n85ZjvZMA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8gtr0X%3DkJkaxB-Vxuiij%2BEAiX%3D5Ov%3DYU0j9n85ZjvZMA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/-cat-allocation-vs-df/22943/3 "2017-07-06T00:23:21Z")

</div>


