# How to move ES data to another machine?

**URL:** <https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030>\
**Category:** Elasticsearch\
**Created:** [April 3, 2017, 5:00pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030 "2017-04-03T17:00:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dolanmk](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dolanmk](https://discuss.elastic.co/u/dolanmk)\
**Post date:** [April 3, 2017, 5:00pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/1 "2017-04-03T17:00:08Z")

</div>

Hi,

I am upgrading to a more efficient machine to run my ES on but I do not want to lose the data I have already stashed in my ES. Here is what I have tried so far:

1.) **Node Exporter**  
In a command shell: node exporter.js -a myCurrentIPAddess -p 9201 -b myDestinationIPAddress -p 9200  
(Note: my current ES is directed to 9201, however, I also tried this command after redirecting it to 9200)  
Here was the output:  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6a0d982fc8f1721dd15cb88d5b1970e0fc86bd0c.png)

2.) **Copying and Pasting ES**  
I tried to zip my current ES and copy and paste it in the new machine. In the elasticsearch.yml file I then changed the max number of nodes to 2. I was able to get both instances up and running but when I looked at the new ES on the new machine the data from my old ES was not there.

3.) **Reindexing with Logstash:**  
here is my config file  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdb19909c639489bfc21bcf09da2f7bb9ce6972c.jpg)

here was the output  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/e/d/ed4694f2838ef2149506a37988c29bdf2d1ea877.png)

My goal is to create a new instance of ES on a new machine but send data from my current ES instance to it so it can be accessed in Kibana.

Thank you so much for your help!

---

<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:** [April 4, 2017, 12:05am UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/2 "2017-04-04T00:05:09Z")

</div>

You can do #2 but just start the new node as it's own cluster, don't try to join it to the original one.

---

<div class="post-metadata">

**Author:** ![dolanmk](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dolanmk](https://discuss.elastic.co/u/dolanmk)\
**Post date:** [April 4, 2017, 12:58pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/3 "2017-04-04T12:58:53Z")

</div>

Thank you for your reply, Mark!

I started fresh and made a new zip of my current ES and put it on my new machine. I changed the cluster name and made sure the host and port are correct, however, I got a seemingly endless error. I've pasted a portion of it below in hopes that it will be of some use.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/1/416604b96fa942f936916ca9ab85d77558972647.png)

Thank you for your help!

---

<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:** [April 4, 2017, 8:48pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/4 "2017-04-04T20:48:45Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![dolanmk](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dolanmk](https://discuss.elastic.co/u/dolanmk)\
**Post date:** [April 5, 2017, 12:30pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/5 "2017-04-05T12:30:21Z")

</div>

I apologize, here it is in text format.

```
[2017-04-04T08:54:11,302][WARN][o.e.c.a.s.ShardStateAction] [TcLoggingNode1] [l
ogstash-2017.03.28][0] unexpected failure while sending request [internal:cluste
r/shard/failure] to [{TcLoggingNode1}{Dw7BwFbvQHSVM7MlEDTm1A}{TzGxQpvkT7mctfcbVu
6JaQ}{local}{local[1]}] for shard entry [shard id [[logstash-2017.03.28][0]], al
location id [8nQKkZwIRIOADaDQX0ErKg], primary term [0], message [failed recovery
], failure [RecoveryFailedException[[logstash-2017.03.28][0]: Recovery failed on
 {TcLoggingNode1}{Dw7BwFbvQHSVM7MlEDTm1A}{TzGxQpvkT7mctfcbVu6JaQ}{local}{local[1
]}]; nested: IndexShardRecoveryException[failed to recover from gateway]; nested
: EngineCreationFailureException[failed to create engine]; nested: NoSuchFileExc
eption[D:\apps\newelastic\elasticsearch-5.2.0-TEA\data\nodes\0\indices\8578E-NiQ
MCbIW1BB7qFSg\0\translog\translog-13.tlog]; ]]
org.elasticsearch.transport.SendRequestTransportException: [TcLoggingNode1][loca
l[1]][internal:cluster/shard/failure]
        at org.elasticsearch.transport.TransportService.sendRequestInternal(Tran
sportService.java:564) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.transport.TransportService.sendRequest(TransportSer
vice.java:485) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.transport.TransportService.sendRequest(TransportSer
vice.java:460) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.cluster.action.shard.ShardStateAction.sendShardActi
on(ShardStateAction.java:104) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.cluster.action.shard.ShardStateAction.shardFailed(S
hardStateAction.java:169) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.cluster.action.shard.ShardStateAction.localShardFai
led(ShardStateAction.java:163) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.indices.cluster.IndicesClusterStateService.sendFail
Shard(IndicesClusterStateService.java:681) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.indices.cluster.IndicesClusterStateService.failAndR
emoveShard(IndicesClusterStateService.java:671) ~[elasticsearch-5.2.0.jar:5.2.0]

        at org.elasticsearch.indices.cluster.IndicesClusterStateService.handleRe
coveryFailure(IndicesClusterStateService.java:648) ~[elasticsearch-5.2.0.jar:5.2
.0]
        at org.elasticsearch.indices.cluster.IndicesClusterStateService.access$8
00(IndicesClusterStateService.java:91) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.indices.cluster.IndicesClusterStateService$Recovery
Listener.onRecoveryFailure(IndicesClusterStateService.java:642) ~[elasticsearch-
5.2.0.jar:5.2.0]
        at org.elasticsearch.index.shard.IndexShard.lambda$startRecovery$1(Index
Shard.java:1486) ~[elasticsearch-5.2.0.jar:5.2.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreserv
ingRunnable.run(ThreadContext.java:527) ~[elasticsearch-5.2.0.jar:5.2.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:
1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?
:1.8.0_111]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]Preformatted text
Caused by: org.elasticsearch.transport.TransportException: TransportService is c
losed stopped can't send request
        at org.elasticsearch.transport.TransportService.sendRequestInternal(Tran
sportService.java:548) ~[elasticsearch-5.2.0.jar:5.2.0]
        ... 15 more

```

Thank you!

---

<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:** [May 3, 2017, 12:30pm UTC](https://discuss.elastic.co/t/how-to-move-es-data-to-another-machine/81030/6 "2017-05-03T12:30:22Z")

</div>

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