# Migrate cluster with different OS

**URL:** <https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812>\
**Category:** Dynatrace Managed\
**Tags:** linux, dynatrace-managed\
**Created:** [March 14, 2023, 5:57am UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812 "2023-03-14T05:57:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandi\_pusghiyan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sandi_pusghiyan/32/17255_2.png) [@sandi\_pusghiyan](https://community.dynatrace.com/u/sandi_pusghiyan)\
**Post date:** [March 14, 2023, 5:57am UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/1 "2023-03-14T05:57:07Z")

</div>

Hi Team,

i have a question about migrate cluster, my customer want to upgrade os from centOS to oracle linux, it is possible migrate cluster with different OS?

Thanks

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 14, 2023, 7:52am UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/2 "2023-03-14T07:52:25Z")

</div>

Hi&nbsp;[@sandi\_pusghiyan](https://community.dynatrace.com/user/29891)&nbsp;,

At our customers we always extend the existing cluster with a new leg or legs with the target operating system.

After the data replication old leg or legs are removed from the cluster.

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [March 14, 2023, 8:30am UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/3 "2023-03-14T08:30:11Z")

</div>

Yes. Exactly same way as you install any OS patch.&nbsp;[Apply operating system patches to a node — Dynatrace Managed Docs](https://www.dynatrace.com/support/help/managed-cluster/operation/apply-operating-system-patches-to-a-node)

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [March 14, 2023, 3:23pm UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/4 "2023-03-14T15:23:22Z")

</div>

You can also use backup and restore method if you want to do it quickly, I tried it like 3 times and it worked fine.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 14, 2023, 4:36pm UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/5 "2023-03-14T16:36:53Z")

</div>

Hi&nbsp;[@Islam\_Zedan](https://community.dynatrace.com/user/16821),

Keep in mind that in case of backup restore you lose the&nbsp; user session data (maybe it is important for some clients).

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![sandi\_pusghiyan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sandi_pusghiyan/32/17255_2.png) [@sandi\_pusghiyan](https://community.dynatrace.com/u/sandi_pusghiyan)\
**Post date:** [April 12, 2023, 3:52pm UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/6 "2023-04-12T15:52:40Z")

</div>

oke, my plan is the same with you, but its first time for me, so im not confidence right now, can you explain in generallly step by step with backup and restore method?

---

<div class="post-metadata">

**Author:** ![sandi\_pusghiyan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sandi_pusghiyan/32/17255_2.png) [@sandi\_pusghiyan](https://community.dynatrace.com/u/sandi_pusghiyan)\
**Post date:** [April 12, 2023, 3:53pm UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/7 "2023-04-12T15:53:44Z")

</div>

yes i now that problem, we can lose the&nbsp; user session data and all distributed traces right?

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [April 18, 2023, 12:54pm UTC](https://community.dynatrace.com/t/migrate-cluster-with-different-os/38812/8 "2023-04-18T12:54:19Z")

</div>

Hi&nbsp;[@sandi\_pusghiyan](https://community.dynatrace.com/user/29891)

To configure automatic backup for a Dynatrace Managed cluster

1. In the&nbsp;[Dynatrace menu](https://www.dynatrace.com/support/help/get-started/dynatrace-ui/navigation), go to&nbsp; **Settings** &nbsp;\>&nbsp; **Backup**.
2. Enable cluster backup and choose the scope:
  - User sessions may contain sensitive information.  
**Exclude user sessions from the backup to remain compliant with GDPR**.
  - Exclude timeseries metric data from the backup if your historical data isn’t relevant and you only want to retain configuration data.
  - Include backup of Log Monitoring events.

3. (Optional) Select data center. This step is required only if you have multiple data center deployment (Premium High Availability deployment). For more information on Premium High Availability deployments, see&nbsp;[High availability for multi-data centers](https://www.dynatrace.com/support/help/managed-cluster/fault-domain-awareness/premium-high-availability)&nbsp;and&nbsp;[Disaster recovery from backup](https://www.dynatrace.com/support/help/managed-cluster/fault-domain-awareness/data-center-disaster-recovery-from-backup)
4. Provide a full path to the mounted network file storage where backup archives are stored.
5. Configure start time.

**For cluster restore** , please follow the below document and put into consideration

- To restore a cluster on the same host as the source cluster, make sure to uninstall it first.
- Machines have a similar hardware and disk layout as the original cluster and sufficient capacity to handle the load after the restore.
- Make sure the existing cluster is stopped to prevent two clusters with the same ID connecting to Dynatrace Mission Control. See&nbsp;[Start/stop/restart a cluster](https://www.dynatrace.com/support/help/managed-cluster/operation/start-stop-restart-node).
- Make sure that system users created for Dynatrace Managed have the same UID:GID identifiers on all nodes.
- On each target node, mount the backup storage to, for example,&nbsp;/mnt/backup. This path is referred to as&nbsp;\<path-to-backup\>&nbsp;in the steps below.
- Ensure the installer has read permissions to the NFS. For example:&nbsp;sudo adduser dynatrace && sudo chown -R dynatrace:dynatrace \<path-to-backup\>
- Create your cluster inventory. You’ll need this information during the restore.
  - IDs of nodes in the cluster. The backup of each node is stored in a dedicated directory whose name is based on the node identifier, in the format&nbsp;node\_\<node\_id\>&nbsp;(for example,&nbsp;node\_1,&nbsp;node\_5, etc).
  - IPv4 addresses of the new machines.
  - The IP address of the target machine for each node.
  - The node ID of the node that will become the seed node in the cluster.

[Back up and restore a cluster](https://docs.dynatrace.com/managed/shortlink/managed-cluster-restore)

For further details, please check the main document for cluster backup and restore.

[Back up and restore a cluster](https://docs.dynatrace.com/managed/shortlink/managed-cluster-restore)

Thanks,

Islam
