LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2008, 05:52 AM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Question replica of server


I am maintaining a server. how to create a replica of it? after creating partitions in local machine which acts as a replica, if i copy
server's / to local's /
server's /boot to local's /boot
server's /home to local's /home
server's /var to local's /var
server's /usr to local's /usr
..and so on. and installing vsftpd,httpd etc. is it possible or what to do? can i get it..
lots of thanks for any help..
 
Old 04-16-2008, 08:38 AM   #2
Mad Axeman
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Hi bkcreddy17,

You're quite on the right track. The easiest way indeed is to copy all file systems to the local box. You have two options for this: setup a dump | restore pipeline which makes sure that you copy per filesystem including all permissions etc. Or you can setup a tar | untar pipeline which is not restricted to a single filesystem, but again makes sure that you copy permissions and restrictions.
After copying all information, you need to adjust the network information on the local box (somewhere in /etc, depending on your distribution) and you need to boot from a rescue / installation cd in order to install the boot loader.
There's no need to install additional software, as all software will be in the filesystem copy you performed...

Good luck,

Alex
 
Old 04-16-2008, 08:39 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Is this for backup purposes, or something more like failover clustering?

In either event, the easiest thing would be to make an image of the drive in question, or at least image the partitions of the drive geometry won't be the same.
 
Old 04-16-2008, 09:18 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Take care of files in /etc that have configuration files for the network address, both IP and MAC, database of users/groups that are (may be) not the same on the both machines.
 
Old 04-16-2008, 10:28 AM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
There are certain directories you don't want to copy and don't need, like /tmp and /proc. /proc gets dynamically created based on the kernel and hardware on your new system
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mirror disk - just once (replica) czezz Linux - Software 7 08-10-2009 12:07 PM
Mysql master and replica over VPN Vitalka Linux - Networking 1 10-04-2007 07:40 PM
best distrubition for nas server and p2p download server and web server geosko Linux - Distributions 8 10-13-2006 09:20 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration