For the complete documentation index, see llms.txt. This page is also available as Markdown.

MariaDB migration from 10.4 to 10.6

If you are still running with a MariaDB version 10.4, you might be face on error message because the 10.4 repositories are not available anymore.

MariaDB 10.4 repositories are no longer available.

Upgrade to MariaDB 10.6, which is the default version for NODEUM Data Archiving and Data Mover.

This procedure explains how to migrate a NODEUM database from a server running MariaDB 10.4 to a separate server running MariaDB 10.6.

In this example, the source database runs on Server1 with MariaDB 10.4.

The destination database runs on Server2 with MariaDB 10.6.

Both Server1 and Server2 must already have NODEUM installed.

Server2 should run a newer NODEUM version than Server1.

  • On Server1 , execute the following commands:

Make a backup of the current database, where user and password are communicated on demand by our team.

mariadb-backup --backup --user=<user> --password=<password> --target-dir=/root/backup
mariadb-backup --prepare --user=<user> --password=<password> --target-dir=/root/backup
tar -cf backup.tar backup

Then transfer the created file to Server2 and copied it to destination folder /root/backup:

  • On Server2, execute the following commands:

As mentioned, NODEUM has already been installed on this server.

Stop MariaDB and Move the current database to another folder name.

systemctl stop mariadb
mv /var/lib/mysql rm /var/lib/mysql.old

Then make a restore of the database retrieved from Server1:

At this stage you may be facing this error message if you verify the status on the MariaDB service:

To solve this you have to perform a MariaDB upgrade and then restart MariaDB service:

Once this is done NODEUM ansible package has to be roll out to set back the database permissions.

When this is on the same server, the procedure looks the same, but it is recommended to pay more attention to make full dump and database backup which are copied externally.

The process is the following:

  1. Full Backup of the server in following the regular NODEUM Backup feature.

  2. Full dump of the Databases

  3. Stop MariaDB server

  4. Uninstall MariaDB-server 10.4.x

  5. Install MariaDB-server 10.6.x

  6. Restart MariaDB server

  7. Execute mariadb-upgrade command

  8. If everything is OK, do the appropriated check and verification

  9. Run latest NODEUM ansible playbook following the standard procedure.

Last updated

Was this helpful?