WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kmsharma
Posts: 33
Joined: Thu Jul 13, 2023 10:38 pm

WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

Post by kmsharma »

I want to migrate my nagios xi from centos to ubuntu 22.04.
after taking the backup in the old server ,we will move the backup to the new server,now we will run the restore script to restore the backup.
my question is that after running restore.sh ,do we now need to run restore.repair.sh ? (AS GIVEN IN THE DOCUMENT PAGE NO 13 https://assets.nagios.com/downloads/nag ... ios-XI.pdf)
User avatar
ajcoil
Posts: 108
Joined: Wed Aug 09, 2023 10:30 am

Re: WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

Post by ajcoil »

Hello @mohankumarsharma, thank you for reaching out!

Yes, after running the restore script on the new OS you will need to run the restore_repair.sh script. This is to ensure any changes in architecture are properly handled.

Please let me know if you have any further questions or concerns!
kmsharma
Posts: 33
Joined: Thu Jul 13, 2023 10:38 pm

Re: WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

Post by kmsharma »

ajcoil wrote: Fri Aug 18, 2023 9:41 am Hello @mohankumarsharma, thank you for reaching out!

Yes, after running the restore script on the new OS you will need to run the restore_repair.sh script. This is to ensure any changes in architecture are properly handled.

Please let me know if you have any further questions or concerns!
suppose the OS of old server is Centos and now I want to migrate to ubuntu OS --
#steps to do the same --
1- take backup on old server (centos) i.e. "backup.tar.gz ",copy it to new server at location /store/backups/nagiosxi/
2- Untar the copied "backup.tar.gz" in the new server at location /store/backups/nagiosxi/
3- run the restore script
4- now we have to run the restore_repair.sh script .

Are these steps correct?
correct me if any thing is missing.
Thank yoyu
swolf

Re: WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

Post by swolf »

Hi @mohankumarsharma, thanks for following up.

Those steps look right to me. More importantly - I would make sure not to throw away the old server until you're certain that everything is working properly on the new server. Database migrations - across any software, not just ours - are always prone to issues. To have confidence in what you're doing, it's most important to be able to recover from failures, not necessarily to try to predict and prevent all of them from the start.

I would recommend taking a VM snapshot or server backup (different from the backup in the XI interface) of each server before the attempted migration. That way, if there's an issue with restore_repair.sh or with any other part of the process, you can restore these snapshots and attempt again, after diagnosing any problems.

That said, I think the steps you've laid out are correct, and most people don't have any problems.

Please let us know if you have any further questions or concerns.
-Sebastian Wolf
swolf

Re: WHEN DO WE NEED TO RUN RESTORE.REPAIR.SH

Post by swolf »

Updating this because I realize now that there are four threads open for the same issue - I'm locking this thread, please continue discussion using your original thread.
Locked