# When i add a path to path.data,the exist shards unassign

**URL:** <https://discuss.elastic.co/t/when-i-add-a-path-to-path-data-the-exist-shards-unassign/38396>\
**Category:** Elasticsearch\
**Created:** [January 5, 2016, 11:58am UTC](https://discuss.elastic.co/t/when-i-add-a-path-to-path-data-the-exist-shards-unassign/38396 "2016-01-05T11:58:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haochun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haochun/32/24701_2.png) [@haochun](https://discuss.elastic.co/u/haochun)\
**Post date:** [January 5, 2016, 11:58am UTC](https://discuss.elastic.co/t/when-i-add-a-path-to-path-data-the-exist-shards-unassign/38396/1 "2016-01-05T11:58:08Z")

</div>

i have 2 shard on each node.but, i found i can not to \_optimize the index ,because the is no enough [space.so](http://space.so), i try to add a path to path.data.when i restart the elasticsearch,all shards are unassign.how can i do now?

---

<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 5, 2017, 11:26pm UTC](https://discuss.elastic.co/t/when-i-add-a-path-to-path-data-the-exist-shards-unassign/38396/2 "2017-07-05T23:26:59Z")

</div>


