[SATLUG] Cloning a server
Matt
firestorm-v1 at satx.rr.com
Tue Aug 3 19:12:54 CDT 2004
On the subject of cloning a server, wouldn't the following work too?
1: On a single drive installation, install new drive as hdb
2: Boot off of a linux CD (LNX-BBC works, so does Knoppix)
3: cat /dev/hda > /dev/hdb or dd if=/dev/hda of=/dev/hdb
FIRESTORM_v1
On Tue, 2004-08-03 at 14:55, Chuck wrote:
> Actually, you do have two swaps.
>
> If you look at that output, it shows /dev/md1 as swap. So, apparently
> you've RAID'ed the swap partitions. Although I've never heard of doing
> that, I can't see any reason why not. It MIGHT result in a very tiny
> performance hit as it writes swap info to both drives -- but if
> detectable, it would not be worth mentioning.
>
> You have three RAID devices: md0, md1, and md2 cooresponding to swap,
> /boot, and /root. That cloning method I mentioned should work just
> fine. Just be sure you put in identical drives as the two new secondary
> drives and partition them exactly the same as the primary drives.
>
>
> Chuck
>
>
>
>
> On Tue, 2004-08-03 at 14:24, Sean Carolan wrote:
> > Chuck:
> >
> > Thank you so much for the help. When I originally partitioned the
> > hard drives I made separate partitions on each of the drives for boot,
> > swap, and root. I then mirrored them so that /etc/fstab shows them
> > each as their own block device. So when you boot the machine up and
> > look at /etc/fstab it looks like this:
> >
> > /dev/md2 / ext3 defaults 1 1
> > /dev/md0 /boot ext3 defaults 1 2
> > none /dev/pts devpts gid=5,mode=620 0 0
> > none /dev/shm tmpfs defaults 0 0
> > none /proc proc defaults 0 0
> > none /sys sysfs defaults 0 0
> > /dev/md1 swap swap defaults 0 0
> >
> > So did I make a mistake here? I followed this guy's tutorial:
> >
> > http://www.aplawrence.com/Linux/softmirror.html
> >
> > But maybe he had the wrong info on there. . . I don't have two swap
> > partitions as you mentioned.
> > _______________________________________________
> > Satlug mailing list
> > Satlug at satlug.org
> > http://alamo.satlug.org/mailman/listinfo/satlug
>
>
> _______________________________________________
> Satlug mailing list
> Satlug at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug
More information about the Satlug
mailing list