Cosmin Nicolaescu on 1 Dec 2005 23:42:09 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] New Linux Machines and cloning?


On Thu, December 1, 2005 5:10 pm, John Von Essen wrote:
>
> I am not too familiar with LVM mirroring, but if that is what you are
> doing. You can do all the installs on drive 1, then later on, create the
> mirror over to drive 2.
>
> So on machine 1, do the full install on drive 1. Then attached a blank
> drive, boot with a cd, and use dd to copy over the entire disk. This will
> grab everything, mbr, lilo, etc.,. Put that blank drive in machine 2, and

Nonono, I really don't suggest doing that :) For a 120GB harddrive with a,
let's say 10Gb install you'll be dd-ing 110Gb of nothing :)

What I did in the past is mount /boot, and all your other partitions, and
then do

cd /
tar --exclude "./proc" --exclude "./PATH_TO_WHERE_YOU_MOUNT_SECOND_DRIVE"
--exclude "./sys" --exclude "./tmp" --exclude "./WHATEVER ELSE YOU DON'T
CARE" /PATH_TO_WHERE_YOU_MOUNT_SECOND_DRIVE .

Then all you wanna do is change the hostname, ip, and chroot under the new
drive and run lilo/grub.

But that's just me :)

-Cos

-- 
GPG key fingerprint = DE9F 4664 E666 2BD1 903E  4F4D EA31 5FB1 C7F9 08C1

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug