On Tue, Oct 23, 2001 at 03:45:07PM +0300, Peter Pentchev wrote:
> On Tue, Oct 23, 2001 at 08:35:05AM -0400, PSI, Mike Smith wrote:
> > I am running a lab with 43 FreeBDS machines and will be adding about 20
> > more in the near future. ALL these machines are absolutely identical
> > except for IP address and machine name. To speed up the adding of new
> > machines, I envision making a duplication station, where I would add a
> > "new" disk as a slave and then dup the master disk to the slave disk.
> > Then I would only have to change IP and machine name.
> > 
> > But alas, I cannot find any procedures for doing this. Does anyone know
> > how to duplicate a master disk to a "new" slave disk??? It would REALLY
> > make my life much easier.
> 
> Is there anything wrong with dd(1)?

OK, this *was* a bit glib.  What I mean is, surely you can use dd(1)
to copy an existing partition (or even slice) to another partition
(or slice) with the same size.  Yes, I do realize that sometimes it is
not so easy to reproduce the exact slice layout; this is something that
I have encountered a couple of times at my workplace, too, and I've dealt
with it by using tar -cpf - | tar -xpf - -C /new/path.  This poses other
kinds of problems by itself, but seems to have worked for me so far.

As for creating the partitions/slices themselves - if the new disk's
size is the same as the old one's, then you might use disklabel -r on
the old disk, record the output into a file and disklabel the new disk
from that.  If the disks are not the same, well, then you have to do
this by hand.

G'luck,
Peter

-- 
This sentence contains exactly threee erors.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to