Learn about Centmin Mod LEMP Stack today
Register Now

Install Upgrade Simple question: migrate from bare metal to vitualized...

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Derek, Apr 24, 2020.

  1. Derek

    Derek Member

    47
    9
    8
    Aug 5, 2016
    Ratings:
    +22
    Local Time:
    1:38 PM
    I moved from an open source virtualization platform to Hyper-V a couple of years back because I really wanted to back my forum (and hence the entire CentminMod stack) up using Veeam. And I love Veeam, but at best I was lukewarm on Hyper-V and after fighting a multi-day battle which I thought was a failed firewall but was actually some weird interaction between a firewall that wouldn't power on, a Hyper-V node that sometimes wouldn't respond, and some general Microsoft-flavored weirdness I simply gave up and installed CentminMod on a spare server. My forums are running happily now and everything works as expected.


    But I'm not happy. On the one hand I've got Veeam backing the server up so my hardware failure plan is "load Veeam recovery CD in spare hardware, boot, and restore" which is certainly better than things were a few years ago, if less sexy than when virtualized. But I've still got that Hyper-V cluster that I really ought to tear down and I need something to do with the other VMs....

    I've been thinking it over and I'm going to reimage the cluster as XCP-NG with Xen-Orchestra, and I'll rethink backups too.

    ---

    Hence, my question: if I simply do a p2v conversion of Centminmod, or I backup, then restore within a container, how miserable will performance be? What if I recompile Nginx as the first thing I do in the new environment - will that resolve any performance issues?

    Or do I really need to do a reinstall (again), and copy over a few hundred thousand files (again), and forget to enable Imagamagick (again). ;)

    Thanks.
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,280
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    3:38 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    No experience with Hyper-V, so only thing i can say is you'd have to try a test run and see how it fairs while keeping live site intact and running. If your Centmin Mod install is very old i.e. 1-2+ yrs old, you'd benefit from a new install on new server for Centmin Mod 123.09beta01 to take advantage of the new install routine/setups which won't transfer over in a backup/restore of an existing installed image.

    For moving site data there's 2 general guides where the principles & steps of backing up and moving data is the same just slightly different for
    1. Moving Centmin Mod site data to another Centmin Mod server
    2. Moving cPanel/WHM site data to Centmin Mod server
    Those guides move alot more than just the site(s) in question but config files etc. You can use your own best judgement as to the config files and whether you want to move them or just use the fresh server setup Centmin Mod config files as they get auto optimised for the server Centmin Mod initially installed on.

    If your old site isn't centmin mod or cpanel/whm based, then those guides won't be 100% applicable. But the general overview of what needs moving and where everything is structured in Centmin Mod LEMP environment is worth reading up on.

    Also official site configuration files page explains the Centmin Mod structure of where the important files are so you can decide on what to backup.
     
  3. Derek

    Derek Member

    47
    9
    8
    Aug 5, 2016
    Ratings:
    +22
    Local Time:
    1:38 PM
    Thanks, Eva. I think I tried this once before and saw bad performance on the virtualized system (in that case it was either a move from Xenserver -> Proxmox, or from Proxmox -> Hyper-V) and recompiling Nginx handled most of the issues.

    I'll try it, do what I need to do, and report back.