I am updating from CentOS 6 to CentOS 7. To do that, I created a second vm, which has a 'temporary' hostname and different ips than the original, as well as a second whm/cpanel license. Both vms are in the same vapp/cloud just use a differnt public ip subset. Here is what I am looking at :
current vm :
server.example.com
100.0.0.3 > 192.168.10.3 (main and ns1.example.com)
100.0.0.4 > 192.168.10.4 (ns2.example.com)
new vm:
server2.example.com
50.0.0.5 > 192.168.10.5 (main)
50.0.0.6 > 192.168.10.7
I know that whenever I am ready to switch the two I can swap the hostname and ips in my cloud quickly and easily. What I would like to know is how I should go about a few thing in WHM right now before I do that swap.
- Should I leave the hostname and ips as they are in WHM until everything is transferred/configured then change the hostname in WHM as a final step after changing them for the vm? If I do that would the ips automatically change in WHM? Or do I go ahead and change the hostname to what it will be later, server.example.com, before doing all this and then when I am finally done the change in my vm will make it 'active'?
- Do I still set ns1.example.com and ns2.example.com as the nameservers in the new vm?
I'm probably not explaining myself well here, but my goal is to configure the second WHM/Cpanel and migrate all the accounts over first and then when I am finally ready switch the hostname/ips in my cloud so they are the exact same as the original... at the same time I would change those on the original to something else. Essentially I would be 'swapping' the vms... the centos6 would become inactive and the new centos7 would become active... same hostname and ips. What I am concerned about is migrating my accounts over, the nameservers, dns zones, and so on right now before I make that change and what is the best way to go about that.
current vm :
server.example.com
100.0.0.3 > 192.168.10.3 (main and ns1.example.com)
100.0.0.4 > 192.168.10.4 (ns2.example.com)
new vm:
server2.example.com
50.0.0.5 > 192.168.10.5 (main)
50.0.0.6 > 192.168.10.7
I know that whenever I am ready to switch the two I can swap the hostname and ips in my cloud quickly and easily. What I would like to know is how I should go about a few thing in WHM right now before I do that swap.
- Should I leave the hostname and ips as they are in WHM until everything is transferred/configured then change the hostname in WHM as a final step after changing them for the vm? If I do that would the ips automatically change in WHM? Or do I go ahead and change the hostname to what it will be later, server.example.com, before doing all this and then when I am finally done the change in my vm will make it 'active'?
- Do I still set ns1.example.com and ns2.example.com as the nameservers in the new vm?
I'm probably not explaining myself well here, but my goal is to configure the second WHM/Cpanel and migrate all the accounts over first and then when I am finally ready switch the hostname/ips in my cloud so they are the exact same as the original... at the same time I would change those on the original to something else. Essentially I would be 'swapping' the vms... the centos6 would become inactive and the new centos7 would become active... same hostname and ips. What I am concerned about is migrating my accounts over, the nameservers, dns zones, and so on right now before I make that change and what is the best way to go about that.