[SOLVED] How to Clone Server to different Hardware (including different HDD's)
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to Clone Server to different Hardware (including different HDD's)
I've been googling this for a while and can't find a complete answer to this:
I'va an old PC running Centos 5 as a server, very reliable for years but one of it's HDD is starting to show age, so it's time for a renew.
The server consists of 3 old IDE 40GB HDD's, using LVM to add up the space, one of them has the original partition that boots the OS.
I need to clone the server to a new machine, that has been assigned to the task, but my problem is that it only has 1 320Gb HDD, and I'm stuck as how should I proceed.
How should I clone the server, so all of it's services remain working when the new one boots?
The server provides file sharing (easy to clone), an OpenFire chat server (also easy), and a weird homemade mail sending service (to do mass sending of emails to clients in the thousands scale) for which there is no documentation, so cloning the whole system is a must for this case.
Also, if possible I would rather do a hot clone of the server, because it's heavily used (to read files, not much writing).
Hi HearSome,
As best as I can understand your predicament, I might try virtualizing the server first. If you can convert it to image and instance you'll have more latitude to deal with the migration problem (nothing is eternal, least of all CentOS 5.).
I don't normally "clone" physical machines, especially if they are a RHEL derivative. Get their package manifest, let Spacewalk rebuild them, and then migrate one-off apps and data to them manually. Smoke test them and if they pass, deploy them.
You may find that your mailer program is a shell script and easily migratable. If that were the case, I'd lean even more heavily toward virtualizing it.
Hope that helps.
If you have the money, vmware has hotclone software to clone to a vcenter server. The you can just power down the old machine and power up the new one.
If it's not a very big drive, I'd just power it down and clonezilla that bad boy. It doesn't take that long to do a few 100GB's.
The VM route was not possible, because even the "new" hardware is way better than the old one, It's too lame to drive it trough virtualization.
As dijetlo pointed out, the mailing "system" was batch based, so finally copying the scripts and recreating the crontable on the destination machine did the trick. The rest was a matter of rsync overnight when the server is not used.
Thanks for your time.
P.D.
Centos 7... I installed it first, and feeled lost in it, looked almost the same as Centos 6 but didn't grasp where went some options, so Centos 6 was the choice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.