# Is there a way to exclude a path.data entry form data getting saved to

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448>\
**Category:** Elasticsearch\
**Created:** [November 9, 2016, 7:55am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448 "2016-11-09T07:55:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vangap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vangap/32/44927_2.png) [@vangap](https://discuss.elastic.co/u/vangap)\
**Post date:** [November 9, 2016, 7:55am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/1 "2016-11-09T07:55:53Z")

</div>

I have a single node and multiple disks where data gets saved.  
I want to replace one of the disk.

I think I can do something like this  
deploy a temporary node , replicate data, delete the data entry for the disk I want to remove and restart, let the data replicate and then remove temporary node.

I want to know if there is any correct way of doing it? like we have for excluding nodes from shard allocation.

Thanks.

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [November 9, 2016, 8:20am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/2 "2016-11-09T08:20:39Z")

</div>

no, that's currently not possible.

---

<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:** [November 9, 2016, 8:39am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/3 "2016-11-09T08:39:48Z")

</div>

Couldn't you start the second node with a specific `path.data` that doesn't include that disk, then use shard filtering to move data to it, then shutdown the original node, replace the disk, then bring the other node up and reverse things?

---

<div class="post-metadata">

**Author:** ![vangap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vangap/32/44927_2.png) [@vangap](https://discuss.elastic.co/u/vangap)\
**Post date:** [November 9, 2016, 9:09am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/4 "2016-11-09T09:09:39Z")

</div>

> [@vangap](#):
>
> I think I can do something like this  
> deploy a temporary node , replicate data, delete the data entry for the disk I want to remove and restart, let the data replicate and then remove temporary node.

As I said in original comment, that option is there. I wanted to know if there is any out of the box solution.

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:** [November 9, 2016, 9:32am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/5 "2016-11-09T09:32:03Z")

</div>

Nope.

---

<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:** [December 7, 2016, 9:32am UTC](https://discuss.elastic.co/t/is-there-a-way-to-exclude-a-path-data-entry-form-data-getting-saved-to/65448/6 "2016-12-07T09:32:10Z")

</div>

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