# Directory Layout Problem

**URL:** <https://discuss.elastic.co/t/directory-layout-problem/11313>\
**Category:** Elasticsearch\
**Created:** [March 26, 2013, 11:05am UTC](https://discuss.elastic.co/t/directory-layout-problem/11313 "2013-03-26T11:05:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoong](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@hoong](https://discuss.elastic.co/u/hoong)\
**Post date:** [March 26, 2013, 11:05am UTC](https://discuss.elastic.co/t/directory-layout-problem/11313/1 "2013-03-26T11:05:07Z")

</div>

Hello.

I found weird situation of\* Directory Layout\*. (I use ElasticSearch  
0.90.0BETA)

We use 3 different 300GB hard disk in one node, and our  
index.store.distributor setting is least\_used  
However, we found that index data is always wrote on the hard disk which is  
set as last order of path.data.

For example.. if path.data setting is like below...(each folder  
data1,data2,data3 are mount address of three HDD)

- path.data: /root/elasticsearch/data/data1,  
/root/elasticsearch/data/data2, /root/elasticsearch/data/data3\*
- 
- 

_...then its indexing progress looks like below_  
\*  
\*  
\*/dev/xvdc1 309633052 0 309633052 0 %  
/root/elasticsearch/data/data1  
\*  
_/dev/xvde1 309633052 0 309633052 0 %  
/root/elasticsearch/data/data2_  
_/dev/xvdf1 309633052 75066488 218838128 26%  
/root/elasticsearch/data/data3_

if I changed path.data like below....

- path.data: /root/elasticsearch/data/data1,  
/root/elasticsearch/data/data3, /root/elasticsearch/data/data2\*
- 
- 

\*then the Use% of \*_/root/elasticsearch/data/data2 become grow._  
\*  
\*  
_As I know, Elastic Search insert the indexed documents to least used  
space. but it always input last positioned data location of path.data  
setting..._  
\*  
\*  
_What should I do with this situation?_  
_Am I need to do something other settings?_  
\*  
\*  
I wait for some helpful answer for this...

best regards.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [March 27, 2013, 1:05pm UTC](https://discuss.elastic.co/t/directory-layout-problem/11313/2 "2013-03-27T13:05:52Z")

</div>

Could you post the output of this command:

curl "localhost:9200/\_nodes/stats?clear=true&fs=true&pretty=true"

and your elasticsearch.yml file somewhere?

On Tuesday, March 26, 2013 7:05:07 AM UTC-4, hoong wrote:

> Hello.
> 
> I found weird situation of\* Directory Layout\*. (I use Elasticsearch  
> 0.90.0BETA)
> 
> We use 3 different 300GB hard disk in one node, and our  
> index.store.distributor setting is least\_used  
> However, we found that index data is always wrote on the hard disk which  
> is set as last order of path.data.
> 
> For example.. if path.data setting is like below...(each folder  
> data1,data2,data3 are mount address of three HDD)
> 
> - path.data: /root/elasticsearch/data/data1,  
> /root/elasticsearch/data/data2, /root/elasticsearch/data/data3\*
> - 
> - 
> 
> _...then its indexing progress looks like below_  
> \*  
> \*  
> \*/dev/xvdc1 309633052 0 309633052 0 %  
> /root/elasticsearch/data/data1  
> \*  
> _/dev/xvde1 309633052 0 309633052 0 %  
> /root/elasticsearch/data/data2_  
> _/dev/xvdf1 309633052 75066488 218838128 26%  
> /root/elasticsearch/data/data3_
> 
> if I changed path.data like below....
> 
> - path.data: /root/elasticsearch/data/data1,  
> /root/elasticsearch/data/data3, /root/elasticsearch/data/data2\*
> - 
> - 
> 
> \*then the Use% of \*_/root/elasticsearch/data/data2 become grow._  
> \*  
> \*  
> _As I know, Elastic Search insert the indexed documents to least used  
> space. but it always input last positioned data location of path.data  
> setting..._  
> \*  
> \*  
> _What should I do with this situation?_  
> _Am I need to do something other settings?_  
> \*  
> \*  
> I wait for some helpful answer for this...
> 
> best regards.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [March 27, 2013, 1:42pm UTC](https://discuss.elastic.co/t/directory-layout-problem/11313/3 "2013-03-27T13:42:27Z")

</div>

Actually, I think I found the issue. Working on the fix.

On Wednesday, March 27, 2013 9:05:52 AM UTC-4, Igor Motov wrote:

> Could you post the output of this command:
> 
> curl "localhost:9200/\_nodes/stats?clear=true&fs=true&pretty=true"
> 
> and your elasticsearch.yml file somewhere?
> 
> On Tuesday, March 26, 2013 7:05:07 AM UTC-4, hoong wrote:
> 
> > Hello.
> > 
> > I found weird situation of\* Directory Layout\*. (I use Elasticsearch  
> > 0.90.0BETA)
> > 
> > We use 3 different 300GB hard disk in one node, and our  
> > index.store.distributor setting is least\_used  
> > However, we found that index data is always wrote on the hard disk which  
> > is set as last order of path.data.
> > 
> > For example.. if path.data setting is like below...(each folder  
> > data1,data2,data3 are mount address of three HDD)
> > 
> > - path.data: /root/elasticsearch/data/data1,  
> > /root/elasticsearch/data/data2, /root/elasticsearch/data/data3\*
> > - 
> > - 
> > 
> > _...then its indexing progress looks like below_  
> > \*  
> > \*  
> > \*/dev/xvdc1 309633052 0 309633052 0 %  
> > /root/elasticsearch/data/data1  
> > \*  
> > _/dev/xvde1 309633052 0 309633052 0 %  
> > /root/elasticsearch/data/data2_  
> > _/dev/xvdf1 309633052 75066488 218838128 26%  
> > /root/elasticsearch/data/data3_
> > 
> > if I changed path.data like below....
> > 
> > - path.data: /root/elasticsearch/data/data1,  
> > /root/elasticsearch/data/data3, /root/elasticsearch/data/data2\*
> > - 
> > - 
> > 
> > \*then the Use% of \*_/root/elasticsearch/data/data2 become grow._  
> > \*  
> > \*  
> > _As I know, Elastic Search insert the indexed documents to least used  
> > space. but it always input last positioned data location of path.data  
> > setting..._  
> > \*  
> > \*  
> > _What should I do with this situation?_  
> > _Am I need to do something other settings?_  
> > \*  
> > \*  
> > I wait for some helpful answer for this...
> > 
> > best regards.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![hoong](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@hoong](https://discuss.elastic.co/u/hoong)\
**Post date:** [March 28, 2013, 2:43am UTC](https://discuss.elastic.co/t/directory-layout-problem/11313/4 "2013-03-28T02:43:12Z")

</div>

Thank you very much!!!

2013/3/27 Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com)

> Actually, I think I found the issue. Working on the fix.
> 
> On Wednesday, March 27, 2013 9:05:52 AM UTC-4, Igor Motov wrote:
> 
> > Could you post the output of this command:
> > 
> > curl "localhost:9200/\_nodes/stats?\*\*clear=true&fs=true&pretty=\*\*true"
> > 
> > and your elasticsearch.yml file somewhere?
> > 
> > On Tuesday, March 26, 2013 7:05:07 AM UTC-4, hoong wrote:
> > 
> > > Hello.
> > > 
> > > I found weird situation of\* Directory Layout\*. (I use Elasticsearch  
> > > 0.90.0BETA)
> > > 
> > > We use 3 different 300GB hard disk in one node, and our  
> > > index.store.distributor \*\*setting is least\_used  
> > > However, we found that index data is always wrote on the hard disk which  
> > > is set as last order of path.data.
> > > 
> > > For example.. if path.data setting is like below...(each folder  
> > > data1,data2,data3 are mount address of three HDD)
> > > 
> > > - path.data: /root/elasticsearch/data/data1, /root/elasticsearch/data/data2,  
> > > /root/elasticsearch/data/data3\*
> > > - 
> > > - 
> > > 
> > > _...then its indexing progress looks like below_  
> > > \*  
> > > \*  
> > > \*/dev/xvdc1 309633052 0 309633052 0 %  
> > > /root/elasticsearch/data/data1  
> > > \*  
> > > _/dev/xvde1 309633052 0 309633052 0 %  
> > > /root/elasticsearch/data/data2_  
> > > _/dev/xvdf1 309633052 75066488 218838128 26%  
> > > /root/elasticsearch/data/data3_
> > > 
> > > if I changed path.data like below....
> > > 
> > > - path.data: /root/elasticsearch/data/data1, /root/elasticsearch/data/data3,  
> > > /root/elasticsearch/data/data2\*
> > > - 
> > > - 
> > > 
> > > \*then the Use% of \*_/root/elasticsearch/data/data2 become grow._  
> > > \*  
> > > \*  
> > > _As I know, Elastic Search insert the indexed documents to least used  
> > > space. but it always input last positioned data location of path.data  
> > > setting..._  
> > > \*  
> > > \*  
> > > _What should I do with this situation?_  
> > > _Am I need to do something other settings?_  
> > > \*  
> > > \*  
> > > I wait for some helpful answer for this...
> > > 
> > > best regards.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

* * *

전동규  
연세대학교 정보산업공학과  
지능 웹 비즈니스 연구실  
[jdkclub85@gmail.com](mailto:jdkclub85@gmail.com) / 010-4142-4160

* * *

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:44am UTC](https://discuss.elastic.co/t/directory-layout-problem/11313/5 "2017-07-06T02:44:03Z")

</div>

Closed on July 6, 2017, 2:44am UTC


