On my cPanel systems I have all users on a 2nd (home2) drive. Would there be a way to do a fresh Centos 7 install on new server, then mount the home2 drive and only have to export/import cPanel configs from the centos 6 system to get everything back up and running rather then migrating one user at a time and dealing with each one that has their own SSL certs too?Hello,
We also document steps to ensure the same IP address is utilized at:
How to Move All cPanel Accounts from One Server to Another - cPanel Knowledge Base - cPanel Documentation
Thank you.
Hello @SactoBob,On my cPanel systems I have all users on a 2nd (home2) drive. Would there be a way to do a fresh Centos 7 install on new server, then mount the home2 drive and only have to export/import cPanel configs from the centos 6 system to get everything back up and running rather then migrating one user at a time and dealing with each one that has their own SSL certs too?
Yes, time-wise and others. As I understand it, I'd need to stop some services on the old server while transfers are taking place. Mostly mail/exim so I don't get mail going to the wrong location. I guess I could leave apache running during this process? Also, every single user on my cPanel has their own IP(I have my own ASN/block and my own colo/servers), so there is a lot of work involved moving them back to original. About a dozen have their own multi-domain/SSL cert, which also appears is not transferred? And then moving to the firewall-cmd system, and other configs (which I expected). I guess I could have those already done too and ready to go. So mostly the time between transfers and moving every domain back to its original IP.Hello @SactoBob,
That's not a supported method of transferring the accounts, and would likely lead to configuration issues because several account-related configuration files are stored outside of the home directory. Is there a specific reason you prefer not to use "WHM >> Transfer Tool"? Are you concerned about the time it will take for the transfer to complete?
Thank you.
Hello @SactoBob,Doesn't the process in step 3 above (3. transfer all accounts) move all the SQL/SSL certs associated with each site? What happens with the DNS setup brought over from the current system? Will additional entries come over? We also have some sites where base domain is pointing elsewhere for hosting, but mail is here. Will that IP that is outside the subnet remain or does it get clobbered? I have a centos 7 system just about ready to go, only step i think is to shutdown exim/mail services, start the xfer, swap the ip subnets and bring the interface up (it's set to disconnected in it's vm config).
we have done what you have done quite a few times with 0 effect on customers .
I do not know your exact setup Migrated from 6-7 using this method.
Use at your own risk
1. Set up new centos 7 machine with matching config with one new IP in a different vlan just to facilitate the cpanel license (if you cant use a separate vlan you can shut down the IP alias's
2 add all IP's on your new machine (no traffic should flow to them because of the step above.)
(if any of your sites use the shared ip set to the old IP without adding it to eth device)
3. transfer all accounts
4. set your IP's correctly
5. take a LVM snap shot of partitions on your old server your set up may be different syncing from live server should be ok as well
6. rsynced the /home --exclude=virtfs/ --delete options
a. did it twice for good measure
7. disable MySQL server on new machine
8. rsynced /var/lib/mysql if you cant pull a snapshot shut your MySQL down temporarily on your old server
9. make sure MySQL server starts correctly and enable it
10. Up date your Main server IP to the Old IP on the new machine
11. take down the public network on your old machine
12. set your vlan correctly
13 reboot New server
14 rsync the the /home dir again --exclude=virtfs/ --delete options
a. we had private IP's accessible if you don't you will have to add a different ip to the old machine and start the network..
I have done this at least 10 times with our own servers and client servers the only issue we had was we had to rebuild the eximstats (it was still using MySQL back then)
Your welcome
still to this day use a similar method to change out hardware but we skip the cpanel transfer and just and dd the blocks or if the partitions are not LVM will use r1soft.
too many times used the old cpanel transfer method an got the old I missing emails/files ticket after a migration.This method is near real time.
yes that's pretty much it home/MySQL ( server logs but who care about them).
Just make sure your MySQL directory is frozen when you rsync it.
We pretty much have this automated.
just modified our custom Virtual server migration script (pull the migration commands)
and modify them sightly for each server as the are not all net up the same.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
![]() |
cPanel Pro -> cPanel VPS possible? | Transfers | 3 | |
E | Possible to transfer from Plesk 8.3.0 to cpanel? | Transfers | 3 | |
M | Possible new bug - copy account changes username | Transfers | 4 | |
T | Multiple WHM transfer "threads" at same time, possible? | Transfers | 1 | |
G | Transferring from Plesk 7.5 to Cpanel, Is it Possible? | Transfers | 3 |