# How to move a 4 node managed cluster to a new datacenter (basic license)

**URL:** <https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765>\
**Category:** Elasticsearch\
**Created:** [April 25, 2020, 1:35pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765 "2020-04-25T13:35:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![leij9857](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leij9857](https://discuss.elastic.co/u/leij9857)\
**Post date:** [April 25, 2020, 1:35pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/1 "2020-04-25T13:35:52Z")

</div>

I was hoping someone could advise me with the following problem.

I have a four node Linux cluster with a basic licence in a managed datacenter. All nodes have the same hardware resources 1TB SSD. At this point in time the master node has reached 95% usage of the storage space. Seeing its not possible to increase the storage on the servers, I would like to move the cluster to my servers in a different datacenter. However the basic license as I understand does not support Cross Cluster Replication only snapshots. Snapshots can only do remote to S3, Azure etc. Doing 4TB does not seem like an option. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 25, 2020, 1:54pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/2 "2020-04-25T13:54:27Z")

</div>

Snapshots also support a shared file system.  
You have to setup a NFS / SMB drive shared across all the nodes and setup a repository.  
The [documentation is here](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-filesystem-repository).

Once the snapshot is done, you can move the whole content of the shared drive to the new datacenter, setup a read only repository on the new cluster and restore from there.

---

<div class="post-metadata">

**Author:** ![leij9857](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leij9857](https://discuss.elastic.co/u/leij9857)\
**Post date:** [April 25, 2020, 3:40pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/3 "2020-04-25T15:40:44Z")

</div>

Thanks for the quick answer.

Would this method work despite the 4 nodes having low disk space. E.g. not that the snapshot itself requires diskspace on the host when writing to the NFS/SMB drive?

And also would the NFS/SMB method work over the WAN seeing storage would be outside of the datacenter / in the new datacenter?

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 25, 2020, 3:49pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/4 "2020-04-25T15:49:10Z")

</div>

> [@leij9857](#):
>
> Would this method work despite the 4 nodes having low disk space. E.g. not that the snapshot itself requires diskspace on the host when writing to the NFS/SMB drive?

It should work as it will just checkpoint the files in your `path.data` and copy them over network.

> [@leij9857](#):
>
> And also would the NFS/SMB method work over the WAN seeing storage would be outside of the datacenter / in the new datacenter?

The first objective is to snapshot your data in the current network to the NFS/SMB.

Once you have the snapshot, you have 2 options:

1. Mount the same NFS/SMB on the destination cluster as a repository (if the NFS/SMB is mountable by both data centers)
2. Tar.gz the whole NFS/SMB drive, move it to the other data center, then:
  1. You can untar the files on a HTTP server (serving the files) and setup a `read-only URL repository` ([doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-read-only-repository)) and restore from it
  2. You can untar the files on a NFS/SMB drive on the new data center, setup a `fs` repository on the new cluster and restore

---

<div class="post-metadata">

**Author:** ![leij9857](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leij9857](https://discuss.elastic.co/u/leij9857)\
**Post date:** [April 25, 2020, 4:45pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/5 "2020-04-25T16:45:11Z")

</div>

Thanks for the answer, is there anything that can be said about the size of the snapshot. In this case the 4 nodes only have the ubuntu os and elasticsearch installed each node has 1TB of storage and are at 95%.

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 25, 2020, 5:37pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/6 "2020-04-25T17:37:03Z")

</div>

The snapshot will take more or less the size of the sum of the primary shards.

---

<div class="post-metadata">

**Author:** ![leij9857](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leij9857](https://discuss.elastic.co/u/leij9857)\
**Post date:** [April 29, 2020, 5:52pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/7 "2020-04-29T17:52:17Z")

</div>

Thanks for the good advice. Added a samba box, cluster is now snapshotting. Used this article for extra help. With my basic knowledge of Ubuntu it's doing what it should.

> **[Elasticsearch snapshots to Windows share](https://arnaudloos.com/2019/elasticsearch-snapshots-windows-share/)**
>
> I recently had a need to snapshot the data from an Elasticsearch cluster to a Windows share on the network. I encountered some issues so I’ll post the steps that worked for me below. I’m running Elasticsearch on Ubuntu 18.04.

---

<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 27, 2020, 5:52pm UTC](https://discuss.elastic.co/t/how-to-move-a-4-node-managed-cluster-to-a-new-datacenter-basic-license/229765/8 "2020-05-27T17:52:34Z")

</div>

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