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.
Halo, I would like to know is their any way to clone a running serve over network or physically connecting to server? I can not stop my server, what i need is to clone my server hdd and replace newly imaged hdd when the old hdd crashes. I search many ways like clone zilla or acronis but almost all solution include stop the server.
Note that if an RDBMS is involved, its best to use the hot backup tool that comes with it.
File or even byte level copying is not guaranteed to maintain integrity for eg in-flight txns.
If a system is really busy, you'd have to already have it setup for RAID and/or clustering.
Copying an open file is always a risk & and any copy procedure will take some time, so files can get out of sync ...
Note that if an RDBMS is involved, its best to use the hot backup tool that comes with it.
File or even byte level copying is not guaranteed to maintain integrity for eg in-flight txns.
If a system is really busy, you'd have to already have it setup for RAID and/or clustering.
Copying an open file is always a risk & and any copy procedure will take some time, so files can get out of sync ...
Either you can go for basic method as well.
(1) Take the system backup ( / ) with the help of any backup tool . For eg. Bacula or anything which you can have.
(2) Install the same OS in new system. Do the same kind of partition and partition size in new system
(3) Restore the system in new one (except users and group related files)
(4) At the end . in new system migrate users and group.
Note: The system should not have any changes in between of this procedure.
Here you have to check yourself what logics you can use.
rsync can help you in migrate many data if they are in different partition.
I already done about 10 migration few months back by this method where I had RedHat 4 and Redhat 5 running.
I have explore acronis so far. But fail to install it on centos. I found on windows os that acronis can take image of two hdd during running but as i was not able to install it on centos, i did not able to test it. Do you use any tool so far? I did not found any package for centos here http://www.mondorescue.org/
As Chris said, the biggest problem is getting a consistent "point-in-time" copy.
Copying just the disk(s) is pointless if you have data in RAM buffers. Like for example any journalled filesystem or much more concerning any database system known to man.
For backups I use snapshot - but I make sure any data I care about is "hardened" to disk before I start. Once you have a snap you can back it up at your leisure.
afio: the packaging tool used to create the archive packets
gzip: the most standard compressor used by Mondo Rescue
mkisofs: the tool to create ISO images
mindi-busybox: the swiss army knife busybox configured for mindi: a full set of commands in a single binary (embedded)
mindi: the mini-distro builder part of the project
mondo: the disaster recovery tool itself
from the relevant download dir eg Centos6 64 bit ftp://ftp.mondorescue.org/rhel/6/x86_64/. Ensure you get the latest rpm file for each (not src.rpm)
iirc the last time I did this, those 6 were sufficient.
thanks chrism01 for your response. I tried many ways to install mondo. But unable to get it on my linux 5.8 mail server. I have another web server and i failed to run mondo there too. Main problem is when i open afio and other six file to install by rpm, it give me dependency error and those package dose not get install.
Actually my requirement was i have to clone those server's hdd from running situation and connect the cloned hdd if running hdd crashes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.