1

I've got a RPi LAMP server; Apache alone drives our Nextcloud, Zabbix, Prestashop, Guacamole and few other - we're unhappy with the performance as my 1GBit fiber is wasting on RPi(only 100Mb/s) and playing 4k video is not possible for two people at the same time. My system is located on a SSD and the whole NC data is stored on HDD(inb4 uses better cards).

I want to migrate to x64 based on Ryzen 5 Pro 3600 which should be more than enough for my needs; I know that the architecture changes so I can't just connect my disks to the new server.

What should I remember and do to properly move from one to another? I'm targeting Ubuntu Server. I've got Webmin installed and there's backup options but I'm not sure - couldn't find any tutorials on how to properly do it.

Best regards,

CRUDO
  • 11
  • 2
  • I would generally think you have to start from scratch, install your OS, install your applications, copy over your configurations and data. Have you considered using a CDN for caching or offloading large files to hosting such as S3 / B2 / something else? – Tim Dec 14 '22 at 07:57
  • I have not considered integrated CDN as my connecton with internet is properly fast and the only bottleneck is hardware - I won't have more users than ten in the same time - CDN will be a solution if the hardware upgrade won't be enough. Cost matter. – CRUDO Dec 14 '22 at 08:08
  • CloudFlare is a free CDN. With appropriate headers, once content is cached it will be served from there - though with a small number of users it might still hit your server regularly. I just did a speed test on my Pi.4 on my 300 / 100 internet connection, I got 225Mbps down and 90Mbps up. Doing some quick reading you may just need to optimise your server, perhaps using jumbo frames, maybe a USB ethernet adapter https://www.jiribrejcha.net/2021/09/multigigabit-ethernet-on-the-raspberry-pi-4. Otherwise, build a new server from scratch as I mentioned above. – Tim Dec 14 '22 at 08:34

1 Answers1

1

Backup data. Build a new x86 instance. Restore data from backup. Update service names in DNS when applications are functional.

Consider writing an unattended install config with Debian preseed or Ubuntu autoinstall. This documents installer settings, for the next major upgrade, or any other need for freshly installed systems.

As a bonus, this platform migration tests your backup restore procedures. Note that network interfaces, storage, host name and other IDs, and some other system details are different, so copying all of /etc introduces some messy "merge conflicts". Consider doing a restore targeting just the applications.

Change in architecture is swapping out a large number of packages, but it won't be an identical list due to platform quirks. And seems like you are migrating from some other Debian based to Ubuntu. So no, swapping the OS disk over is not practical.

John Mahowald
  • 32,050
  • 2
  • 19
  • 34