Hello,
We want to migrate our Debian 10 based Virtualmin server to a new server that will be Debian 11 based.
The question is if we can keep the old servers hostname and domain on the new server.
We wanted to use the Virtualmin move virtual server feature to migrate everything from the old server to the new server. But I don’t think it is possible to have two servers configured as the same hostname.domainname.com
Another question is about our secondary nameserver. Our old Virtualmin server has a slave DNS server setup in a different datacenter and we will want to keep that slave server but have it associated with the new Virtualmin server.
I don’t know if I’ve explained this well so if you need more info just let me know.
Just think this through. Hard to give specifics for each individual setup. Just give the new server a different name in DNS. Generally only the web servers care about the actual name. When done, change the DNS.
The old server is the primary name server and also hosts 40 virtual servers with users and email. I want to replace this server and make the new server the primary name server so I can de-commission the old server.
I was hoping to use the Virtualmin migrate virtual servers to the new server from the old server.
You could have kept the names identical as @calport pointed out, then migrate based on IP address.
Once complete, update the DNS so that visitors go to new server.
Alternatively, could have did the DNS swap first, then do the migration by IP address.
Even @ID10T method works too, but for the sake of your question, that doesn’t accomplish things the way you asked (though that’s actually how I do things, then I rename later if needed)
This is where having a spare domain name helps out a lot. I actually spend the 15 dollars for one just for this sort of thing as it saves a lot of headache.
Buy the cheapest domain you can. Normally, they’re 10 to 15 bucks. You’re never going to renew it so it doesn’t matter what you call it. It’s solely for setting up the new server.
Set up your new server’s OS.
Using the throwaway domain you just bought, get Virtualmin on it and get everything updated.
Do a full backup of the old server.
Restore it to the new server.
Shut down the old server.
Remove the throwaway domain you set the new server up with and name the original server’s master domain as the new default.
Hello @ID10T@calport@tpnsolutions@Gomez_Adams and all and thanks for the tips.
I have migrated the virtual servers (40) to the new server and only had a couple PHP extension issues to sort out on the new server. All seems to be working with the only exception I can see is the slave DNS server is getting zones but no records.
@ID10T - I have not checked this, but if the ports were not open would it be able to create the zones on the slave? The slave is getting the zones, but all records are zero.
Not sure if you mean on the master DNS (new server) or the slave DNS server. Where is this create master zones option? I’m presuming is it because there are master zones on the master DNS (new server) and on the slave DNS server the zones appear as slave - just all zero records.
I wanted to shout out to the Virtualmin team for making the “Transfer Virtual Server” feature! This server migration went a hell of a lot better than I have experienced with other systems or by manually downloading and uploading files and backups!