Date: Tue, 23 Oct 2001 15:59:54 +0300 From: Peter Pentchev <roam@ringlet.net> To: "PSI, Mike Smith" <mlsmith@mitre.org> Cc: hackers@freebsd.org Subject: Re: Duping a hard disk Message-ID: <20011023155954.B2567@straylight.oblivion.bg> In-Reply-To: <20011023154507.A2567@straylight.oblivion.bg>; from roam@ringlet.net on Tue, Oct 23, 2001 at 03:45:07PM %2B0300 References: <3BD563F9.299FE3C@mitre.org> <20011023154507.A2567@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011023155954.B2567>