Upgrade OS - Ubuntu 18.04 to 20.04
Hi. One of these days I will have to upgrade the OS. Currently I am running Koha on a VPS with Ubuntu 18.04. I would like to ask the community for your experience: Is it advisable to upgrade the OS on the existing server (following the instructions here: https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-to... Or will there be problems with the Koha installation? Maybe it is better to install Koha on a new server with a new OS version and then migrate the database from the old server to the new one? Apart from Koha (and the software required by Koha) there are only a few more programs installed on the server (Certbot, Postfix, vsftpd and the firewall). Can you tell me how you did it and if you were facing any difficulties? Thank you very much Isabel Pineda
Hi Isabel, We also use a VPS provider (Linode) for the koha hosting. What we do when migrating to a major version is to create a new VPS, install everything from scratch, move the DB from the old system to the new one, do the DB conversion and test that everything goes as expected. As is a second VPS, we can take all the time needed to testng all the features we use. Once we are happy with results, we do a new DB migration since the installation/test process can take a couple of weeks; by then, the DB has certainly changed since. Linode allows us to swap public IP addresses from one VPS to another. So putting the new VPS in service is quite easy (basically adjust some addresses) and does not require changes in DNS. Once the migration is done we keep the old system for a couple of weeks just in case and then remove the old VPS. This way allows us to work with low pressure, during normal working hours, and to have almost zero downtime. Hope this helps, Regards, Alvaro |----------------------------------------------------------------------------------------| Stay safe / Cuídate/ Reste sécurisé *7* Switch off as you go / Apaga lo que no usas / Débranchez au fur et à mesure. *q *Recycle always / Recicla siempre / Recyclez toujours P Print only if absolutely necessary / Imprime solo si es necesario / Imprimez seulement si nécessaire Le ven. 25 juin 2021 à 15:52, Isabel Pineda <isabel.pineda@ds.edu.sv> a écrit :
Hi.
One of these days I will have to upgrade the OS. Currently I am running Koha on a VPS with Ubuntu 18.04. I would like to ask the community for your experience: Is it advisable to upgrade the OS on the existing server (following the instructions here: https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-to... Or will there be problems with the Koha installation? Maybe it is better to install Koha on a new server with a new OS version and then migrate the database from the old server to the new one? Apart from Koha (and the software required by Koha) there are only a few more programs installed on the server (Certbot, Postfix, vsftpd and the firewall).
Can you tell me how you did it and if you were facing any difficulties?
Thank you very much Isabel Pineda _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Excerpts from Alvaro Cornejo's message of 2021-06-25 18:25:51 -0500:
We also use a VPS provider (Linode) for the koha hosting.
What we do when migrating to a major version is to create a new VPS, install everything from scratch, move the DB from the old system to the new one, do the DB conversion and test that everything goes as expected.
I also use Linode, but I have done a similar upgrade without creating a second VPS and migrating the database. Perhaps that's living a bit dangerously, but it worked for me. I used Linode's backup feature to give me an escape route if something went wrong. Briefly, here's what I did: I shutdown the machine completely, and created a manual backup of the entire machine. After rebooting, I did the upgrade from Debian 8 to Debian 9. This was done using various apt commands. I recall that I had to use Linode's out-of-band ssh service instead of normal ssh at one point, because the upgrade brought down Debian's network service briefly. After the OS upgrade, I made another manual backup of the entire machine. I also made a backup of the Koha database and configuration, and copied those files to my own laptop. Finally, I did the Koha upgrade using the usual 'apt install koha-common'. -- Let's organize this thing and take all the fun out of it. --Ashleigh Brilliant
Hi Mark. It sounds good that everything worked for you without problems. At least this means that I don't have to expect major difficulties during the upgrade. Anyway, I will have to wait until next year to do the OS upgrade, so there is plenty of time for planification. Thank you Isabel Pineda -----Mensaje original----- De: Koha [mailto:koha-bounces@lists.katipo.co.nz] En nombre de Mark Alexander Enviado el: viernes, 25 de junio de 2021 06:24 p.m. Para: koha <koha@lists.katipo.co.nz> Asunto: Re: [Koha] Upgrade OS - Ubuntu 18.04 to 20.04 Excerpts from Alvaro Cornejo's message of 2021-06-25 18:25:51 -0500:
We also use a VPS provider (Linode) for the koha hosting.
What we do when migrating to a major version is to create a new VPS, install everything from scratch, move the DB from the old system to the new one, do the DB conversion and test that everything goes as expected.
I also use Linode, but I have done a similar upgrade without creating a second VPS and migrating the database. Perhaps that's living a bit dangerously, but it worked for me. I used Linode's backup feature to give me an escape route if something went wrong. Briefly, here's what I did: I shutdown the machine completely, and created a manual backup of the entire machine. After rebooting, I did the upgrade from Debian 8 to Debian 9. This was done using various apt commands. I recall that I had to use Linode's out-of-band ssh service instead of normal ssh at one point, because the upgrade brought down Debian's network service briefly. After the OS upgrade, I made another manual backup of the entire machine. I also made a backup of the Koha database and configuration, and copied those files to my own laptop. Finally, I did the Koha upgrade using the usual 'apt install koha-common'. -- Let's organize this thing and take all the fun out of it. --Ashleigh Brilliant _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Alvaro. Yes, this sounds like a safe way for the OS update. I think that I am going to do it the same way, renting a second VPS for a couple of months and doing the update without pressure. Thank you Isabel Pineda De: Alvaro Cornejo [mailto:cornejo.alvaro@gmail.com] Enviado el: viernes, 25 de junio de 2021 05:26 p.m. Para: Isabel Pineda <isabel.pineda@ds.edu.sv> CC: koha@lists.katipo.co.nz Asunto: Re: [Koha] Upgrade OS - Ubuntu 18.04 to 20.04 Hi Isabel, We also use a VPS provider (Linode) for the koha hosting. What we do when migrating to a major version is to create a new VPS, install everything from scratch, move the DB from the old system to the new one, do the DB conversion and test that everything goes as expected. As is a second VPS, we can take all the time needed to testng all the features we use. Once we are happy with results, we do a new DB migration since the installation/test process can take a couple of weeks; by then, the DB has certainly changed since. Linode allows us to swap public IP addresses from one VPS to another. So putting the new VPS in service is quite easy (basically adjust some addresses) and does not require changes in DNS. Once the migration is done we keep the old system for a couple of weeks just in case and then remove the old VPS. This way allows us to work with low pressure, during normal working hours, and to have almost zero downtime. Hope this helps, Regards, Alvaro |----------------------------------------------------------------------------------------| [https://drive.google.com/uc?id=1lpgSKUunPpKrvmS1rja7umnEgiqBa_vD&export=download] Stay safe / Cuídate/ Reste sécurisé 7 Switch off as you go / Apaga lo que no usas / Débranchez au fur et à mesure. q Recycle always / Recicla siempre / Recyclez toujours P Print only if absolutely necessary / Imprime solo si es necesario / Imprimez seulement si nécessaire Le ven. 25 juin 2021 à 15:52, Isabel Pineda <isabel.pineda@ds.edu.sv<mailto:isabel.pineda@ds.edu.sv>> a écrit : Hi. One of these days I will have to upgrade the OS. Currently I am running Koha on a VPS with Ubuntu 18.04. I would like to ask the community for your experience: Is it advisable to upgrade the OS on the existing server (following the instructions here: https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-to... Or will there be problems with the Koha installation? Maybe it is better to install Koha on a new server with a new OS version and then migrate the database from the old server to the new one? Apart from Koha (and the software required by Koha) there are only a few more programs installed on the server (Certbot, Postfix, vsftpd and the firewall). Can you tell me how you did it and if you were facing any difficulties? Thank you very much Isabel Pineda _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz<mailto:Koha@lists.katipo.co.nz> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Alvaro Cornejo -
Isabel Pineda -
Mark Alexander