LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2009, 01:57 PM   #1
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Rep: Reputation: 15
server to server sync


Hi All
i m trying to sync 2 servers using rsync to replicate them.
i m following the steps as
1) attaching the hdd to the server(sdb) from where i to replicate
2) sync the /boot and / partition
opted for rsync as well as dd command

but the problem here i am getting is i am not able to boot the second server with the hdd ie sdb.

what could be the best way to do it.
i hve tried with the hd of same size it work fine.
but when i m trying to do for partition of smaller size it it failing
then current server is having 5 partition, but i only want to sync the 1 and 2 partition.
how it can be achieved
 
Old 08-05-2009, 07:42 AM   #2
timvandijk039
Member
 
Registered: Jul 2009
Location: The Netherlands
Distribution: Debian/Ubuntu and RHEL/CentOS
Posts: 42

Rep: Reputation: 18
Hi jindalarpan,

It seems to me that you want to make two identical machines.
I think the first thing you should take a look at is the active partition and/or the boot loader (assuming that the entire installation consists of /boot and /).

Using dd should wor if the target drive has the same- or bigger size:
Code:
dd if=/dev/sda of=/dev/sdb
If the original disk is /dev/sdb than you need to reverse the input and output parameters.

There is however a great interactive backup-tool called mondoarchive. This tool makes system backups even while the systems is still running. Take a look at http://www.mondorescue.org/. If you're using the same hardware on both servers than this might be an easy way ;-).

This sadly won't help you with your partitioning problem.

Hope this helps.

Last edited by timvandijk039; 08-05-2009 at 07:46 AM.
 
Old 08-20-2009, 09:23 AM   #3
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by timvandijk039 View Post
Hi jindalarpan,

It seems to me that you want to make two identical machines.
I think the first thing you should take a look at is the active partition and/or the boot loader (assuming that the entire installation consists of /boot and /).

Using dd should wor if the target drive has the same- or bigger size:
Code:
dd if=/dev/sda of=/dev/sdb
If the original disk is /dev/sdb than you need to reverse the input and output parameters.

There is however a great interactive backup-tool called mondoarchive. This tool makes system backups even while the systems is still running. Take a look at http://www.mondorescue.org/. If you're using the same hardware on both servers than this might be an easy way ;-).

This sadly won't help you with your partitioning problem.

Hope this helps.

Timvandijk

here the issue i m facing is the target is of smaller size and i want to reduce the size of system.
 
Old 08-20-2009, 09:52 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by jindalarpan View Post
Hi All
i m trying to sync 2 servers using rsync to replicate them.
i m following the steps as
1) attaching the hdd to the server(sdb) from where i to replicate
2) sync the /boot and / partition
opted for rsync as well as dd command

but the problem here i am getting is i am not able to boot the second server with the hdd ie sdb.

what could be the best way to do it.
i hve tried with the hd of same size it work fine.
but when i m trying to do for partition of smaller size it it failing
then current server is having 5 partition, but i only want to sync the 1 and 2 partition.
how it can be achieved

what is your distro?
what is the error?
 
Old 08-29-2009, 10:41 AM   #5
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by centosboy View Post
what is your distro?
what is the error?
basically i want to sync 2 hard disc of different size.
as the fist disk is have 5 partitions and second one is have only 3 partition.
but i only want to only sync first 3 partition of the first hard disk. out of which first is boot
 
Old 09-19-2009, 02:15 PM   #6
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
hello anyone ?
 
Old 09-20-2009, 05:13 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by jindalarpan View Post
hello anyone ?
with regards to not being able to boot the second server, try reinstalling grub.

you will need to boot from the rescue disk first tho.

Code:
grub-install /dev/sdb
 
  


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
NTP server not sync sebash00 Linux - General 6 04-04-2008 01:40 AM
Sync windows 2000 server time with Linux server johnbeskie Linux - Enterprise 2 11-03-2007 04:25 AM
sync time from windows server ust Linux - Software 3 10-03-2007 05:01 AM
Sync Time with NetWare server tstx1 Linux - Networking 1 09-20-2003 06:55 PM
Timer Server Sync vofkid Linux - Newbie 1 03-19-2002 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:27 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