# ES does not write on all disks

**URL:** https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951
**Category:** Elasticsearch
**Created:** [March 9, 2016, 9:46pm UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951 "2016-03-09T21:46:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![koffitse](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@koffitse](https://discuss.elastic.co/u/koffitse)
#### Post date: [March 9, 2016, 9:46pm UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/1 "2016-03-09T21:46:46Z")

</div>

Hi,  
I have ES 2.2.0 installés on one node cluster. The node has 12 cpu, 96 GB RAM and 2 partition disks of 500 GB each. I loaded up to 2 billions documents in an index. I wanted to extend the storage so I added 4 more disks of 500GB each.  
After restarting the system I realised that ES is not writing data to the new disks although it created reference files to the index.  
How can I make ES write to these new disks because I'm running out of space on the first disks?

---

<div class="post-metadata">

### Author: ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)
#### Post date: [March 10, 2016, 12:39am UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/2 "2016-03-10T00:39:38Z")

</div>

Why a single node? With 96 GB RAM you should create at least 4 data nodes.

Did you specify disk paths on elasticsearch.yml config?

---

<div class="post-metadata">

### Author: ![koffitse](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@koffitse](https://discuss.elastic.co/u/koffitse)
#### Post date: [March 10, 2016, 12:58am UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/3 "2016-03-10T00:58:03Z")

</div>

Hi Thomas,  
My goal is to build a cluster of 96 GB for each node. I'm just testing the first node before adding others. I've added all the new paths to yaml file. That is why ES created the index references on thest new disks

---

<div class="post-metadata">

### Author: ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)
#### Post date: [March 10, 2016, 9:39am UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/4 "2016-03-10T09:39:18Z")

</div>

All of the files from a single shard will be written to the same path. This means that once your index is created on that node and that each shard is assigned then the same path will be used for all operations related to this index. If you want es to use the other data path you'll need to create a new index. What is your use case ? Did you consider using time based indices (one per day/week/month) ?

---

<div class="post-metadata">

### Author: ![koffitse](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@koffitse](https://discuss.elastic.co/u/koffitse)
#### Post date: [March 10, 2016, 10:04am UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/5 "2016-03-10T10:04:51Z")

</div>

Hi Jim,  
My main UC is to give fast access to our front office in order to solve customer's disputes. We produce around 1 billion transactions per day and need to store up to 183 days data online.  
So do you have tutorial or example of creating time based indices?  
Thank you

---

<div class="post-metadata">

### Author: ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)
#### Post date: [March 10, 2016, 11:28am UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/6 "2016-03-10T11:28:42Z")

</div>

Sure, you can start here [https://www.elastic.co/guide/en/elasticsearch/guide/current/time-based.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/time-based.html)  
You should consider using logstash ([https://www.elastic.co/products/logstash](https://www.elastic.co/products/logstash)) which has all the logics to handle time based indices natively.

---

<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:09pm UTC](https://discuss.elastic.co/t/es-does-not-write-on-all-disks/43951/7 "2017-07-05T23:09:32Z")

</div>


