Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
clone a linux system over the network

clone a linux system over the network

2005-05-06       - By Garrick Staples

 Back
Reply:     1     2     3     4     5  

On Fri, May 06, 2005 at 09:16:03PM +0200, wolf2k5 alleged:
> Hi,
>
> I need to migrate a Linux system from a server to another one.
>
> I cannot reinstall the OS and applications on the new server and then
> migrate the data from the old server, since that would require too
> much time.
>
> In the past, to migrate a Linux system from a server to a new one with
> HD of the same size, I shut down the servers, booted a Linux live CD
> (Knoppix) on them and used 'dd' and 'netcat' to clone the system over
> the network: that worked fine, but with two cons:
>
> - It is pretty slow, since it will copy over even blank data.
>
> - You cannot resize the partitions: if the new server has a bigger
> disk, you cannot enlarge the original partition to use the additional
> space.

You should be able to fsck and use the filesystem's grow utility (resize2fs,
resize_reiserfs, etc.) after you dd the partition.


> Do you know any better way to clone the system over the network that
> will fix the above problems?

rsync instead of dd?  That will just copy files.  Be sure to use --sparse.

My larger servers tend to have spare internal disks that are informal mirrors
of the real boot disks.  I manually rsync them from time-to-time so that I
always have something relatively recent to boot.

I've done OS upgrades by installing the new OS on a test box, and rsyncing from
the test box to the server's spare disks and rebooting then just rebooting to
the new disks.  Obviously this is a very error-prone method because you need
worry about boot partitions, boot loaders, device names, fstab, etc.


> I think the commercial application Symantec Ghost can do it, but I am
> looking for something free.
>
> It would be great if such tool supported PXE boot too.
>
> On a separate note, do you know how to boot Knoppix via PXE without
> using the Knoppix Terminal Server (that requires an additional
> machine)?
> I already have a Linux host running TFTP/DHCP/NFS servers and use it
> to perform Red Hat Enterprise Linux installations via PXE.
> How do I configure it to perform Knoppix boots via PXE?

I haven't found a way to boot an ISO image over the network.  I can netboot
linux and dos floppy images (dos floppies are useful to automate BIOS/firmware
updates over the network).

--
Garrick Staples, Linux/HPCC Administrator
University of Southern California

--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list

Earn $52 per hosting referral at Lunarpages.