From owner-freebsd-hackers Tue Oct 23 6: 0:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from straylight.ringlet.net (sentinel.office1.bg [217.75.129.210]) by hub.freebsd.org (Postfix) with SMTP id 27E9737B406 for ; Tue, 23 Oct 2001 06:00:03 -0700 (PDT) Received: (qmail 8983 invoked by uid 1000); 23 Oct 2001 12:59:54 -0000 Date: Tue, 23 Oct 2001 15:59:54 +0300 From: Peter Pentchev To: "PSI, Mike Smith" Cc: hackers@freebsd.org Subject: Re: Duping a hard disk Message-ID: <20011023155954.B2567@straylight.oblivion.bg> Mail-Followup-To: "PSI, Mike Smith" , hackers@freebsd.org References: <3BD563F9.299FE3C@mitre.org> <20011023154507.A2567@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011023154507.A2567@straylight.oblivion.bg>; from roam@ringlet.net on Tue, Oct 23, 2001 at 03:45:07PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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