# Location path on HDD based on index

**URL:** <https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901>\
**Category:** Elasticsearch\
**Created:** [January 26, 2017, 1:24pm UTC](https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901 "2017-01-26T13:24:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas\_at\_work](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@andreas\_at\_work](https://discuss.elastic.co/u/andreas_at_work)\
**Post date:** [January 26, 2017, 1:24pm UTC](https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901/1 "2017-01-26T13:24:26Z")

</div>

Hey,

is it somehow possible to define the location on the hard drive based on the used index?

I am working as an incident responder and security analyst. Frequently we have incidents with a low amount of data which must be securely deleted after the incident is solved.

My idea was/is to mount one encrypted file as a file system for each incident and use this mountpoint as the storage location in es. The encryption key is going to be stored on a usb stick for example.

As soon as the incident ends we would securely delete the encryption key by destroying it. Without the key it is not possible to access the indices...

Thank you  
Andreas

---

<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:** [January 26, 2017, 10:00pm UTC](https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901/2 "2017-01-26T22:00:36Z")

</div>

You need to run multiple instances to put indices on different data paths like this. One per path. Otherwise ES just assume it can put whatever, where ever you define `path.data`.

---

<div class="post-metadata">

**Author:** ![andreas\_at\_work](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@andreas\_at\_work](https://discuss.elastic.co/u/andreas_at_work)\
**Post date:** [January 27, 2017, 8:08am UTC](https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901/3 "2017-01-27T08:08:20Z")

</div>

Thanks!  
So the only solution is one instance per incident ☹  
then we will need an orchestrator/management component to initiate the instances within the cluster/on the hosts.

Does anyone have a suggestion for this? Might docker be one? I have read some postings about it (e.g. [https://forums.docker.com/t/easy-elasticsearch-cluster-with-docker-1-12-swarm/19648/2](https://forums.docker.com/t/easy-elasticsearch-cluster-with-docker-1-12-swarm/19648/2)) and it seems to be not "perfect".

---

<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:** [February 24, 2017, 8:08am UTC](https://discuss.elastic.co/t/location-path-on-hdd-based-on-index/72901/4 "2017-02-24T08:08:47Z")

</div>

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