# Elasticsearch 6.2.2 Docker containers isn't setting correct storage size

**URL:** https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940
**Category:** Elasticsearch
**Created:** [March 14, 2018, 3:53pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940 "2018-03-14T15:53:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![whiranpat](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@whiranpat](https://discuss.elastic.co/u/whiranpat)
#### Post date: [March 14, 2018, 3:53pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940/1 "2018-03-14T15:53:12Z")

</div>

Method of setting up the volume for elasticsearch for docker containers seems to change between version. We have a 128GB drive dedicated to the docker volume directory. We want to create presistant storage to the container and the storage directory. We can exec into the container and see that the container can see the drive. The command we use to deploy the container is:

sudo docker run --cap-add=IPC\_LOCK --restart always --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 -d --name elasticsearch --publish 9200:9200 --publish 9300:9300 --volume /docker/volumes/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml --volume /docker/volumes/elasticsearch/config/jvm.options:/usr/share/elasticsearch/config/jvm.options --volume /docker/volumes/elasticsearch/data:/usr/share/elasticsearch/data --volume /docker/volumes/elasticsearch/logs:/usr/share/elasticsearch/logs [docker.elastic.co/elasticsearch/elasticsearch:6.2.2](http://docker.elastic.co/elasticsearch/elasticsearch:6.2.2)

However, on the Kibana Dashboard:  
It shows 50GB of total disk available for a five node cluster but each node container is suppose to have a volumes set for /docker/volumes/elasticsearch/data with a size of 128GB.

What can be causing this issue?  
Thanks

---

<div class="post-metadata">

### Author: ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)
#### Post date: [March 15, 2018, 2:08pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940/2 "2018-03-15T14:08:03Z")

</div>

> [@whiranpat](#):
>
> However, on the Kibana Dashboard:

Just to make sure we are talking about the same thing here: You are using the monitoring dashboard, which includes a disk stat:

 ![Monitoring%20-%20docker-cluster%20-%20Overview%202018-03-15%2015-00-08](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50481c65d37c957410e81d9ec6f8c4b490c1577f.png)

And this information doesn't match up with the mounted volume?  
I quickly checked with `docker exec -it <container-id> bash` and `df -h <mounted-volume-path>`, which matches Kibana's monitoring view in my example:

```
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 32G 8.9G 21G 30% <mounted-volume-path>

```

Or do the results in Kibana and on the command line match, but the volume should be larger?

---

<div class="post-metadata">

### Author: ![whiranpat](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@whiranpat](https://discuss.elastic.co/u/whiranpat)
#### Post date: [March 15, 2018, 4:57pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940/3 "2018-03-15T16:57:01Z")

</div>

Yes, that is exactly what the issue I am facing.  
Here is the image when I run the docker exec -it bash:

 ![docker_exec-bash](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8b800ac5a3ae4eacbb40e6af7ae63f5ef77a66d.PNG)

While Kibana is showing me a different volume size:

 ![Kibana](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4c671123663124e9c081a4d6708e7c2aca427bee.png)

Is the method of setting volumes to the data has been change between versions?  
Thank you

---

<div class="post-metadata">

### Author: ![whiranpat](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@whiranpat](https://discuss.elastic.co/u/whiranpat)
#### Post date: [March 16, 2018, 2:30pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940/4 "2018-03-16T14:30:53Z")

</div>

I was looking at it some more. It looks like it is storing all the data in the root directory inside the container instead of the /dev/sdc1 and it looks like kibana is also looking at that directory size as well.

---

<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: [April 13, 2018, 2:30pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-2-docker-containers-isnt-setting-correct-storage-size/123940/5 "2018-04-13T14:30:58Z")

</div>

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