* Re: a scripted fdisk ??? (fwd)
@ 1999-02-01 19:04 David R. Gavin
1999-02-01 19:38 ` Frank C. Brants
0 siblings, 1 reply; 3+ messages in thread
From: David R. Gavin @ 1999-02-01 19:04 UTC (permalink / raw)
To: axp-list
Dave Gavin <dgavin@shore.net>
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: 1812
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 -----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: a scripted fdisk ??? (fwd)
1999-02-01 19:04 David R. Gavin
@ 1999-02-01 19:38 ` Frank C. Brants
0 siblings, 0 replies; 3+ messages in thread
From: Frank C. Brants @ 1999-02-01 19:38 UTC (permalink / raw)
To: axp-list
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: a scripted fdisk ??? (fwd)
@ 1999-02-01 22:23 David R. Gavin
0 siblings, 0 replies; 3+ messages in thread
From: David R. Gavin @ 1999-02-01 22:23 UTC (permalink / raw)
To: axp-list
Dave Gavin <dgavin@shore.net>
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 -----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-02-01 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-01 22:23 a scripted fdisk ??? (fwd) David R. Gavin
-- strict thread matches above, loose matches on Subject: below --
1999-02-01 19:04 David R. Gavin
1999-02-01 19:38 ` Frank C. Brants
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox