# How do I tell Elastic which mount to use for disk statistics

**URL:** <https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [July 30, 2019, 7:34pm UTC](https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979 "2019-07-30T19:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![data\_smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/data_smith/32/124122_2.png) [@data\_smith](https://discuss.elastic.co/u/data_smith)\
**Post date:** [July 30, 2019, 7:34pm UTC](https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979/1 "2019-07-30T19:34:29Z")

</div>

I have various mounts on the host that Elastic runs on and Elastic is getting disk statistics from the wrong mount. How do I specify the right mount?

```
  Filesystem Type Size Mounted on 
  overlay overlay 500G /
  /dev/disk-disk xfs 2T /data

```

I want to tell Elastic to use the xfs mount for statistics not the overlay one.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 30, 2019, 7:53pm UTC](https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979/2 "2019-07-30T19:53:20Z")

</div>

You can't. Elasticsearch uses the statistics for the filesystem containing its data. It wouldn't make any sense to use the statistics from a different filesystem.

---

<div class="post-metadata">

**Author:** ![data\_smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/data_smith/32/124122_2.png) [@data\_smith](https://discuss.elastic.co/u/data_smith)\
**Post date:** [July 30, 2019, 8:09pm UTC](https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979/3 "2019-07-30T20:09:32Z")

</div>

Yea it doesn't make sense to get stats from a directory you don't use.

My problem was i wasn't specifying the right directory. Elastic assumes you are putting data in /usr/share/elasticsearch/data unless you specifically change that path. I need to specify my path.

Thanks

---

<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:** [August 27, 2019, 8:09pm UTC](https://discuss.elastic.co/t/how-do-i-tell-elastic-which-mount-to-use-for-disk-statistics/192979/4 "2019-08-27T20:09:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
