How to make an image of Centos5.5 running on Physical Server

If it doesn't fit in another category, ask it here.
Post Reply
dematri
Posts: 4
Joined: 2016/10/04 01:08:25

How to make an image of Centos5.5 running on Physical Server

Post by dematri » 2016/10/04 02:16:56

Team,

How to make an image of CentOS 5.5 running on a Physical Server.
I idea is we dont have any redundant environment, in a situation if the Physical server crashes.
Therefore planning to an exact replica of the current server and the initial thoughts are:

a) create an image of the CentOS 5.5 running
b) Backup the entire server (starting from /root level folder)

Please assist.

Dematri

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to make an image of Centos5.5 running on Physical Server

Post by TrevorH » 2016/10/04 15:10:54

I know you probably don't want to hear this again but 5.5 is dangerous and should not be used. As I said before, your best solution would be to install a copy of 5.11 for your test/backup machine and then test that your applications work properly and then yum update your existing system to 5.11 too. Even this is not a solution long or even medium term: CentOS 5 is rapidly approaching End of Life and there will be no more security updates for it. Ideally, you should probably install CentOS 6 or even 7 as your test/backup system and migrate your workload over to that. In March 2017 there will be no more support for CentOS 5 at all.

If your existing 5.5 system is exposed to the internet at all then it is extremely dangerous to run it. If you have users using it that are not 100% trusted then the same applies. Your 5.5 system was released in May 2010 and thus has had no updates applied to it since then (or it would already be 5.6/5.7 etc). The full list of fixes that have been released for CentOS 5 can be viewed http://rhn.redhat.com/errata/rhel-server-errata.html and anything that says it was released after May 2010 is missing from your machine and you will be exposed to the bug. I selected only security updates from that list and I see 23 pages of bugs since May 2010 - that's around 550 security bugs that you do not have fixes for at the moment.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dematri
Posts: 4
Joined: 2016/10/04 01:08:25

Re: How to make an image of Centos5.5 running on Physical Server

Post by dematri » 2016/10/04 23:28:29

Trevor,

Thanks for sensitizing on the issues with CentOs 5.5
Well, I dont want to go with version 5 but as first the appraoch will be to have another machine and that too in virtual form.
(current production running on Physical with CentOS 5.5)

Later to upgrade the Version 5.11 machine to latest supprted version.

Coming to the question of any option to make an image of Centos 5.5 running on Physical Server, do you see any option apart from -

a) Installing CentOS 5.11 on another machine
b) installing the required application and database

I`m not so this, reason we are not sure what all drivers / plugins will be required and thus looking at getting an image so we have all covered from the base physical production server,

Any further information will be great help.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: How to make an image of Centos5.5 running on Physical Server

Post by aks » 2016/10/05 16:08:45

In the distant past I've used: http://www.partimage.org/Main_Page and http://clonezilla.org/downloads.php
I'm sure there are plenty more, have a Google around "disk imaging linux"

CaViCcHi
Posts: 68
Joined: 2012/04/18 17:03:15
Contact:

Re: How to make an image of Centos5.5 running on Physical Server

Post by CaViCcHi » 2017/05/25 04:59:07

well you'd have to create an image on disk with dd if=/dev/zero of=/just/afile.img, then mkfs.whatev /just/afile.img mount it and rsync pretty much everything on there from / (exclude dev run proc mnt sys) and... unmount, then maybe squash the image

or did you literally mean dd if=/dev/yourdisk of=/anywhere/yourimage.img this will create a full image of your disk (but it'll make it the actual size of all your partitions summed up) then either squash it or xz it

Post Reply