# Backup (snapshot) strategy for a two data node cluster

**URL:** <https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [May 29, 2021, 3:44pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404 "2021-05-29T15:44:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![parthmaniar](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@parthmaniar](https://discuss.elastic.co/u/parthmaniar)\
**Post date:** [May 29, 2021, 3:44pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/1 "2021-05-29T15:44:12Z")

</div>

Hello,

I hope you and your loved ones are safe and healthy.

I have a **three node cluster** with **2 data nodes** and **1 voting node** running Elastic Stack 7.13 on Ubuntu 20.04.2. All of the node are on a single physical workstation running ESXi.

All the three nodes have separate underlying storage medium for their OS and Elastic Data. Hence. Hence there is physical layer redundancy for the data (OS are on same SSD)

**Node 1 has two disk in the VM:**  
1.A SSD-1 holds the OS (100 GB volume)  
1.B SSD-2 holds the Elastic data (1.5 TB volume)

**Node 2 has two disk in the VM:**  
2.A SSD-1 holds the OS (100 GB volume)  
2.B SSD-3 holds the Elastic data (1.5 TB volume)

**Node 3 has single disk with OS only**

On this ESXi there is a 2 TB LUN mounted using iSCSI which is hosted and has redundancy via the NAS. Here is a graphical representation including the **problem: I can mount a new volume only to one of data nodes**. This leads to the obvious problem of backups not completing successfully since the voume is mounted only on one of the VMs.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5e69d2c7758371cfc5ac377001a60863d0761d60.png)

**How do I take snapshots with a single volume? Is the recommendation to have a shared volume on the NAS (such as SFTP / rsysnc) and carry out the backup there?**

---

<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:** [May 29, 2021, 4:24pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/2 "2021-05-29T16:24:34Z")

</div>

The volume need to be available to all nodes so using an NFS mount is common.

---

<div class="post-metadata">

**Author:** ![parthmaniar](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@parthmaniar](https://discuss.elastic.co/u/parthmaniar)\
**Post date:** [May 29, 2021, 5:03pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/3 "2021-05-29T17:03:36Z")

</div>

Thank you very much for that @Christian_Dahlqvist .

Would it be correct to assume that size required will be equal to or 10% to 15% higher then the size of primary shards? Or the storage calculations requires to factor overall data size (primary + replica shards)

---

<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:** [May 29, 2021, 5:10pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/4 "2021-05-29T17:10:29Z")

</div>

The initial snapshot will roughly be the size of the primary shards. If you add additional snapshots without deleting older ones this will grow as new and merged segments are snapshotted.

---

<div class="post-metadata">

**Author:** ![parthmaniar](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@parthmaniar](https://discuss.elastic.co/u/parthmaniar)\
**Post date:** [May 29, 2021, 5:15pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/5 "2021-05-29T17:15:26Z")

</div>

Thank you very much. Have a wonderful time ahead. 🙂

---

<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:** [June 26, 2021, 5:15pm UTC](https://discuss.elastic.co/t/backup-snapshot-strategy-for-a-two-data-node-cluster/274404/6 "2021-06-26T17:15:37Z")

</div>

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