From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24413 invoked from network); 1 Feb 1999 22:30:21 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 1 Feb 1999 22:30:21 -0000 Received: from mermaid.shore.net (mermaid.shore.net [207.244.124.6]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA20910 for ; Mon, 1 Feb 1999 17:24:01 -0500 Received: from shell1.shore.net (northshore.shore.net) [192.233.85.1] (dgavin) by mermaid.shore.net with esmtp (Exim) for axp-list@redhat.com id 107RlA-0005EK-00; Mon, 1 Feb 1999 17:24:00 -0500 Received: (from dgavin@localhost) by northshore.shore.net (8.8.7/8.8.7) id RAA15360 for axp-list@redhat.com; Mon, 1 Feb 1999 17:24:00 -0500 (EST) From: "David R. Gavin" Message-Id: <199902012224.RAA15360@northshore.shore.net> Subject: Re: a scripted fdisk ??? (fwd) To: axp-list@redhat.com Date: Mon, 1 Feb 1999 17:23:59 -0500 (EST) Dave Gavin X-Mailer: ELM [version 2.4ME+ PL37 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3590 Frank, We used to clone SCO systems this way at a former employer until they bought a special-purpose disk cloner. The only problem is that you really need to shut down completely (power off, although I used to do it on a warm boot - ymmv) Steps: shutdown -h set the disks to appropriate SCSI addresses hook 'em up to the power & SCSI bus power up & boot Linux login as root assuming that you've got your: system disk is 0, master disk is 1 and the target disk is 2: dd if=/dev/sda1 bs=4096 of=/dev/sda2 You have to clone one at a time this way, but you could probably write a C routine to do full-track reads from the master and multiple writes to as many disks as you want to clone at one time to speed up mass cloning. Play with the buffer size option (bs) to get get steady throughput, I forget what I used to use. I'd also suggest setting the write-protect jumper on the master disk (if it has one) just in case.... Dave ----- Forwarded message from Frank C. Brants ----- Dave, You've got me there... I know there are ways in other OS's (I'm referring to the MacOS here) to do a scsi copy or a bit copy, but I don't know how it's done under RHL. You may be breaking new ground for RHL. Franko >Frank, > >I may be wrong, as I haven't had the need to do this in a while, but if >all of your disks are the same (geometry, etc) and the systems themselves are >also clones, why not build one and then dd the original to the copies ? >The label should get copied along with the partitions. > >Am I missing something here ? > >Dave >----- Forwarded message from Frank C. Brants ----- > >At 10:38 AM 1/29/99 , you wrote: > >Why don't you run them diskless, like the alpha-linux cluster we've been >reading about. 1 boot disk server & however many clients you need.... > >Just a thought. > >Franko > >>Greetings, >> >>I need to build a large number of identical Linux systems. Rather than >>manually install and configure the operating system and other software bits, >>I am writing a command script that will restore a master dump file to the >>hard drives I will install in each system. >> >>One task I have not figured out is how to automatically create the initial >>disk label. I know how to manually do this with fdisk, but I don't want to >>do this several hundred times. After looking at the fdisk man page, I don't >>see any way to pass fdisk command from a shell script. >> >>Does anyone know of a tool that can write the disklabel without manual >>intervention ??? >> >>If not, where can I find the source for fdisk ??? >> >>Bob Segrest >> >>-- >>To unsubscribe: send e-mail to axp-list-request@redhat.com with >>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >> > >Frank C. Brants >Netopia, Inc. >Systems Engineer >franko -at- netopia.com > >Fax 972-855-6610 >Office / Cell 214-769-0354 >Text Page http://primeco.textmsg.com/ > >-- >To unsubscribe: send e-mail to axp-list-request@redhat.com with >'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > >----- End of forwarded message from Frank C. Brants ----- > >-- >To unsubscribe: send e-mail to axp-list-request@redhat.com with >'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > Frank C. Brants Netopia, Inc. Systems Engineer franko -at- netopia.com Fax 972-855-6610 Office / Cell 214-769-0354 Text Page http://primeco.textmsg.com/ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com ----- End of forwarded message from Frank C. Brants -----