# Can I move disk from node to another with data?

**URL:** <https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626>\
**Category:** Elasticsearch\
**Created:** [July 5, 2018, 4:09am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626 "2018-07-05T04:09:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [July 5, 2018, 4:09am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/1 "2018-07-05T04:09:02Z")

</div>

hi, anyone knows what will happen if I wrote to a disk on node A, then node A fails, then I move the disk to another node B (new member of the cluster or existing member)...

will I be able to recover this data?

the 3 node cluster has no replicas, only primary shards

---

<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:** [July 5, 2018, 5:04am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/2 "2018-07-05T05:04:10Z")

</div>

It _could_ work (and I have seen it work), but we don't make guarantees that it _will_ work.

---

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [July 5, 2018, 5:25am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/3 "2018-07-05T05:25:25Z")

</div>

So to test this, start a 3 node cluster, through some data at it, kill a node, start a fresh node with path.data pointing in other node data location, check logs?

Any other ideas?

Are there any docs about it? I wasn't able to find anything...

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 5, 2018, 5:27am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/4 "2018-07-05T05:27:21Z")

</div>

It is not a supported or tested method, which would explain why it is not documented. I would recommend instead running with a replica configured as this would be a lot easier to manage sand less risky. This would also help against corruption due to disk failures, which moving disk does not.

---

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [July 5, 2018, 6:29am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/5 "2018-07-05T06:29:14Z")

</div>

Ok, I'll put it all into consideration…

This is a cluster meant for searching logs, it's ok to lose some logs (I can always reload those using logstash)

Thanks

---

<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:** [August 2, 2018, 6:29am UTC](https://discuss.elastic.co/t/can-i-move-disk-from-node-to-another-with-data/138626/6 "2018-08-02T06:29:33Z")

</div>

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