# Upgrade OS version for percona MySQL server from RHEL 6 to RHEL 7

**URL:** <https://forums.percona.com/t/upgrade-os-version-for-percona-mysql-server-from-rhel-6-to-rhel-7/24046>\
**Category:** MySQL & MariaDB\
**Created:** [July 31, 2023, 8:12am UTC](https://forums.percona.com/t/upgrade-os-version-for-percona-mysql-server-from-rhel-6-to-rhel-7/24046 "2023-07-31T08:12:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Kanaujia](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/rahul_kanaujia/32/5386_2.png) [@Rahul\_Kanaujia](https://forums.percona.com/u/Rahul_Kanaujia)\
**Post date:** [July 31, 2023, 8:12am UTC](https://forums.percona.com/t/upgrade-os-version-for-percona-mysql-server-from-rhel-6-to-rhel-7/24046/1 "2023-07-31T08:12:17Z")

</div>

Hi All,

Need help in migrating OS version from RHEL 6 to RHEL 7 for percona MySQL server 5.7.25  
The current Database size is around 22 TB.

Please help with the steps  
Thanks in advance.

Regards,  
Rahul K.

---

<div class="post-metadata">

**Author:** ![CTutte](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ctutte/32/1341_2.png) [@CTutte](https://forums.percona.com/u/CTutte)\
**Post date:** [July 31, 2023, 12:41pm UTC](https://forums.percona.com/t/upgrade-os-version-for-percona-mysql-server-from-rhel-6-to-rhel-7/24046/2 "2023-07-31T12:41:35Z")

</div>

Hi Rahul\_Kanaujia,

The best to minimize risks would be that you setup a replica. The replica should have RHEL 7 and Percona Server 5.7.25 (or a newer 5.7 version) and similar resources.

In this link you will find the steps to easily setup a replica with Xtrabackup: [How to setup a replica for replication in 6 simple steps with Percona XtraBackup - Percona XtraBackup](https://docs.percona.com/percona-xtrabackup/2.4/howtos/setting_up_replication.html#step-2-copy-backed-up-data-to-the-replica)

For Percona Server 5.7 you should use xtrabackup version 2.4 NOT 8.0 (8.0 is only for MySQL/PS 8.0)

Regards
