Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* cloning boot disks
@ 1995-04-03  4:00 George Armhold
  1995-04-04  4:00 ` Dave Parker
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: George Armhold @ 1995-04-03  4:00 UTC (permalink / raw)



I have about 50 Alpha 3000's to put out on people's desks and I'd
rather not install each one by hand (there is alot of
locally-developed system software to be configured in addition to the
standard stuff from DEC.)

So what I've done is set up one machine as a "clone", and I want to
copy its disk 50 times.  I wrote a nice shell script that

1. writes a disklabel on the new disk (which should write a bootblock)
2. sets up correct advfs volumes & filesets
3. vdumps (copies) source partitions to the new disk
4. changes hostname & IP address on the new disk


This all seems to go well, until I try to boot the copy.  It dies in
console mode with "can't find osf_boot".  When I mount the / partition
by hand as /mnt osf_boot is right where it should be; I can't figure
out why it trying to find it.  Does osf_boot have to occupy a certain
block on the disk?

Also, before coming up with the above scheme I tried using dd to copy
individual partitions using the raw disk devices, but I couldn't mount
the copied disks due to "no valid filesystem".  I would think that dd
would copy the partition byte-by-byte, so I found this a little
puzzling.


If you could shed some light on the above problems, or suggest a
better method I'd appreciate it.

-George
-- 
	 HyperComputing and Design group @ Rutgers University
                 Internet: armhold@klinzhai.rutgers.edu
               UUCP: {backbone}!rutgers!klinzhai!armhold
                    BITNET: armhold@PISCES.BITNET



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cloning boot disks
  1995-04-03  4:00 cloning boot disks George Armhold
@ 1995-04-04  4:00 ` Dave Parker
  1995-04-06  4:00   ` George Armhold
  1995-04-05  4:00 ` Thomas.Meyer
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Dave Parker @ 1995-04-04  4:00 UTC (permalink / raw)


In article <3lprpp$cvm@tenebris.rutgers.edu>, armhold@tenebris.rutgers.edu (George Armhold) writes:
|>
|>
|>1. writes a disklabel on the new disk (which should write a bootblock)

Just a guess, but if you didn't use the -t advfs option of disklabel, you 
would have not gotten the correct bootblocks.  Check the way disklabel is
invoked by your script. 


|>2. sets up correct advfs volumes & filesets
|>3. vdumps (copies) source partitions to the new disk
|>4. changes hostname & IP address on the new disk
|>
|>

Dave Parker
Digital Equipment Corp.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cloning boot disks
  1995-04-03  4:00 cloning boot disks George Armhold
  1995-04-04  4:00 ` Dave Parker
@ 1995-04-05  4:00 ` Thomas.Meyer
  1995-04-06  4:00 ` Larry Cannell
  1995-04-19  4:00 ` Richard Begg
  3 siblings, 0 replies; 6+ messages in thread
From: Thomas.Meyer @ 1995-04-05  4:00 UTC (permalink / raw)


In article <3lprpp$cvm@tenebris.rutgers.edu> armhold@tenebris.rutgers.edu (George Armhold) writes:

   I have about 50 Alpha 3000's to put out on people's desks and I'd
   rather not install each one by hand (there is alot of
   locally-developed system software to be configured in addition to the
   standard stuff from DEC.)

   ...

   Also, before coming up with the above scheme I tried using dd to copy
   individual partitions using the raw disk devices, but I couldn't mount
   the copied disks due to "no valid filesystem".  I would think that dd
   would copy the partition byte-by-byte, so I found this a little
   puzzling.


   If you could shed some light on the above problems, or suggest a
   better method I'd appreciate it.

Hello George,

we don't have as much Alphas than you do, but what we did is
establishing one spare root partitions on a seperate disk for each
server. This root partition can be booted in case of hardware problems
on the "primary boot disk".

All we did is 

-newfs on the spare partition (which must be the "a" partition of a
disk)
-mount this partition, e.g. on /mnt
-making a mirror copy of / on /mnt with *dump*:
	dump -0f - / | (cd /mnt; restore -xf -)
-adapting /mnt/etc/fstab

The partition mounted on /mnt is now ready to be booted.

This works well for our purposes. Perhaps this information may be
useful to you.

Regards

--
+-----------------------------------+-----------------------------------+
| Thomas Meyer                      | email:Thomas.Meyer@dla-marbach.de |
| Bereich EDV                       | Telefon:+49-7144-848-141          |
| Deutsches Literaturarchiv Marbach | Fax:             ...-191          |
| Schillerhoehe 8-10                |                                   |
| D-71672 Marbach                   |                                   |
+-----------------------------------+-----------------------------------+



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cloning boot disks
  1995-04-03  4:00 cloning boot disks George Armhold
  1995-04-04  4:00 ` Dave Parker
  1995-04-05  4:00 ` Thomas.Meyer
@ 1995-04-06  4:00 ` Larry Cannell
  1995-04-19  4:00 ` Richard Begg
  3 siblings, 0 replies; 6+ messages in thread
From: Larry Cannell @ 1995-04-06  4:00 UTC (permalink / raw)


Check the documentation for advfs. It talks about how to changeover a
ufs root to advfs.  In there it says to use the -t switch to make it
bootable (as a previous responder suggested).  This is the one last
piece of the puzzle I needed to do the same thing.

--
Larry Cannell (cannell@ped.pto.ford.com)
System Administrator
Powertrain Electronics
Ford Motor Company



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cloning boot disks
  1995-04-04  4:00 ` Dave Parker
@ 1995-04-06  4:00   ` George Armhold
  0 siblings, 0 replies; 6+ messages in thread
From: George Armhold @ 1995-04-06  4:00 UTC (permalink / raw)


djp@peewee.unx.dec.com (Dave Parker) writes:


:Just a guess, but if you didn't use the -t advfs option of disklabel, you 
:would have not gotten the correct bootblocks.  Check the way disklabel is
:invoked by your script. 

Yes, this fixed the problem, thanks.  Thanks also to Andrew Gallatin,
who also suggested this.

-George
-- 
	 HyperComputing and Design group @ Rutgers University
                 Internet: armhold@klinzhai.rutgers.edu
               UUCP: {backbone}!rutgers!klinzhai!armhold
                    BITNET: armhold@PISCES.BITNET



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cloning boot disks
  1995-04-03  4:00 cloning boot disks George Armhold
                   ` (2 preceding siblings ...)
  1995-04-06  4:00 ` Larry Cannell
@ 1995-04-19  4:00 ` Richard Begg
  3 siblings, 0 replies; 6+ messages in thread
From: Richard Begg @ 1995-04-19  4:00 UTC (permalink / raw)


In article <3lprpp$cvm@tenebris.rutgers.edu>,
George Armhold <armhold@tenebris.rutgers.edu> wrote:
>
>I have about 50 Alpha 3000's to put out on people's desks and I'd
>rather not install each one by hand (there is alot of
>locally-developed system software to be configured in addition to the
>standard stuff from DEC.)
>
>So what I've done is set up one machine as a "clone", and I want to
>copy its disk 50 times.  I wrote a nice shell script that
>
>1. writes a disklabel on the new disk (which should write a bootblock)
>2. sets up correct advfs volumes & filesets
>3. vdumps (copies) source partitions to the new disk
>4. changes hostname & IP address on the new disk

Did you specify the -t <filesystem type> flag for your disklabel command?
This is necessary so that it can write the right bootblocks for the root
filesystem.

-- 
Richard Begg (richard@pitlochry.its.unimelb.edu.au)
Systems & Operations - ITS - University of Melbourne.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1995-04-19  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-03  4:00 cloning boot disks George Armhold
1995-04-04  4:00 ` Dave Parker
1995-04-06  4:00   ` George Armhold
1995-04-05  4:00 ` Thomas.Meyer
1995-04-06  4:00 ` Larry Cannell
1995-04-19  4:00 ` Richard Begg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox