# Elasticsearch data not writing to second mount path

**URL:** <https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766>\
**Category:** Elasticsearch\
**Created:** [January 13, 2020, 6:50am UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766 "2020-01-13T06:50:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nisham](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nisham](https://discuss.elastic.co/u/nisham)\
**Post date:** [January 13, 2020, 6:50am UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/1 "2020-01-13T06:50:23Z")

</div>

Hello,

We have 2 nodes cluster with Elasticsearch 5.2.2 version and I have two disk mount mentioned in path.data as ["/path-01","/path-02"].

The data is writing only to the "/path-01" and its getting filled up and there is only 4% usage of the second disk space.

Could someone help me with this. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 13, 2020, 7:26am UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/2 "2020-01-13T07:26:24Z")

</div>

How many nodes do you have in the cluster? How many shards and replicas? Did you add the second mount path after shards had been allocated to the first?

---

<div class="post-metadata">

**Author:** ![nisham](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nisham](https://discuss.elastic.co/u/nisham)\
**Post date:** [January 13, 2020, 8:27am UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/3 "2020-01-13T08:27:03Z")

</div>

Its a 2 node cluster. We have 2273 primary shard with 1 replica each.

When we ran out space in the cluster, the second mound path was added.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 13, 2020, 8:43am UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/4 "2020-01-13T08:43:01Z")

</div>

That is generally far too many shards for a cluster that size. Try setting the number if replicas to 0 and the back to 1 again to see if reallocation resolves the issue. Elasticsearch will not move shards already on a node between mount points.

---

<div class="post-metadata">

**Author:** ![nisham](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nisham](https://discuss.elastic.co/u/nisham)\
**Post date:** [January 13, 2020, 12:32pm UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/5 "2020-01-13T12:32:54Z")

</div>

Thanks Christian\_Dahlqvist.

Its working when I set replica to 0 and then changed it back to 1.

---

<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:** [February 10, 2020, 12:33pm UTC](https://discuss.elastic.co/t/elasticsearch-data-not-writing-to-second-mount-path/214766/6 "2020-02-10T12:33:01Z")

</div>

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