# Multiple folders inside nodes folder

**URL:** <https://discuss.elastic.co/t/multiple-folders-inside-nodes-folder/85358>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 9:38am UTC](https://discuss.elastic.co/t/multiple-folders-inside-nodes-folder/85358 "2017-05-11T09:38:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviral\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aviral_srivastava/32/98018_2.png) [@aviral\_srivastava](https://discuss.elastic.co/u/aviral_srivastava)\
**Post date:** [May 11, 2017, 9:38am UTC](https://discuss.elastic.co/t/multiple-folders-inside-nodes-folder/85358/1 "2017-05-11T09:38:20Z")

</div>

Red Hat Enterprise Linux Server release 7.2 (Maipo)  
elasticsearch 2.1.1

Inside the path  
/home/appadmin/elasticsearch-2.1.1/data/linux-elasticsearch/nodes  
there are two folders namely "0" and "1"

Why there are two folders ??  
By nodes, I understand the physical server, how is that folder "1" is created  
Secondly, elasticsearch is showing indices from "1" folder and not "0" folder. Why is that so ??  
If I need, elasticsearch to use "0" folder , can I just delete "1" folder. Will that help ??

My elasticsearch was showing all the indices from "0" folder earlier, although I was having shards failed exception for some indices, So I restarted elasticsearch and now it is referencing indices from "1" folder

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 13, 2017, 2:02am UTC](https://discuss.elastic.co/t/multiple-folders-inside-nodes-folder/85358/2 "2017-05-13T02:02:40Z")

</div>

This means that you had two nodes running at the same time at some point, the `nodes/1/` directory is from the second node. This was due to a bad default value for `node.max_local_storage_nodes` to permit multiple nodes to share the same data directory. This is fixed in 5.0.0, the default is now `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:** [June 10, 2017, 2:04am UTC](https://discuss.elastic.co/t/multiple-folders-inside-nodes-folder/85358/3 "2017-06-10T02:04:30Z")

</div>

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