# Multiple Index Data directories

**URL:** <https://discuss.elastic.co/t/multiple-index-data-directories/74702>\
**Category:** Elasticsearch\
**Created:** [February 10, 2017, 7:12pm UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702 "2017-02-10T19:12:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OptimusB](https://avatars.discourse-cdn.com/v4/letter/o/6de8d8/32.png) [@OptimusB](https://discuss.elastic.co/u/OptimusB)\
**Post date:** [February 10, 2017, 7:12pm UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702/1 "2017-02-10T19:12:54Z")

</div>

We recently suffered a power outage and the 2 nodes become split brained. I managed to bring it back to green, but suffered a bit of data loss. When I was review the index data directories, I noticed that one of the nodes had more than one shard index.  
.  
├── 0  
│ ├── indices  
│ ├── node.lock  
│ └── \_state  
└── 1  
├── indices  
├── node.lock  
└── \_state

While the other node only had one  
.  
└── 0  
├── indices  
├── node.lock  
└── \_state

Looking for guidance as to why this duplicated and how can I clean this up properly? Thanks.

---

<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:** [February 10, 2017, 10:29pm UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702/2 "2017-02-10T22:29:50Z")

</div>

That would be because more than one instance of ES started on the same host.  
You can start a second instance so that it recovers that shard data, then reallocate it off, then shutdown the second process.

---

<div class="post-metadata">

**Author:** ![OptimusB](https://avatars.discourse-cdn.com/v4/letter/o/6de8d8/32.png) [@OptimusB](https://discuss.elastic.co/u/OptimusB)\
**Post date:** [February 11, 2017, 12:16am UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702/3 "2017-02-11T00:16:15Z")

</div>

So after checking into this. the correct folder on the node with two indices is folder "1". how do I go abouts cleaning this up? or does it matter if I remove the "0" folder?

---

<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:** [February 11, 2017, 12:26am UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702/4 "2017-02-11T00:26:46Z")

</div>

> [@OptimusB](#):
>
> how do I go abouts cleaning this up?

> [@warkolm](#):
>
> You can start a second instance so that it recovers that shard data, then reallocate it off, then shutdown the second process.

I wouldn't just delete things unless you want data loss.

---

<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:** [March 11, 2017, 12:27am UTC](https://discuss.elastic.co/t/multiple-index-data-directories/74702/5 "2017-03-11T00:27:08Z")

</div>

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