tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* moving root; rebuilding the kernel
@ 1997-02-03 22:27 Brian O'Connor
  0 siblings, 0 replies; only message in thread
From: Brian O'Connor @ 1997-02-03 22:27 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,
   I am about to move the root and usr partition from a
SWXCR raid array to a single rz28. I searched the archives and 
downloaded the INFOSHARE article 

eg
http://www.service.digital.com:80/pubs/infoshare/arch/INFOSHARE-Summer95.Z
(BTW I had alot of trouble printing this out, just what kind of 
postscipt do they use?)

In a nutshell it said;

--------------------------------------------------------------------------
assumed disk layout;
/ on a
swap on b
/usr on g

assume rz2 is the new disk
assume rz0 is the old disk

MAKEDEV rz2
disklabel -r -w rz2 rz28(assume rz28s)

newfs /dev/rrz2a rz28
newfs /dev/rrz2g rz28

fsck /dev/rrz2a
mount /dev/rz2a /mnt

dump 0f - / | (cd /mnt; restore xf -)

edit the /mnt/etc/fstab file 
(replace rz0 with rz2)
eg
vi /mnt/etc/fstab
:%s/rz0/rz2/g

if swapdefault exists remove it and re-create it
to point at the new swap partition

umount /mnt
fsck /dev/rrz2a

fsck /dev/rrz2g
mount /dev/rrz2g /mnt

dump 0f - /usr | (cd /mnt; restore xf -)

umount /mnt
fsck /dev/rrz2g

shutdown and boot to the new disk
eg
>>>show dev
dka0.0.0.0.0            DKA0            RZ28
dka0.0.0.1.0            DKB0            RZ28
dka0.0.0.2.0            DKC0            RZ26

etc

if the new disk is
dka0.0.0.1.0            DKB0            RZ28
then

>>> init
>>> boot DKB0

You may need to clear the boot_osflags variable

>>> set boot_osflags ""

and set the auto_action to halt

>>> set auto_action halt
 
and set the bus_probe_algorithm to new

>>> set bus_probe_algorithm new
--------------------------------------------------------------------------


Some posts on this matter talk of rebuilding the kernel

eg

changing 

config  vmunix  swap  generic

to

config vmunix root on XXX swap on XXX dumps on XXX

(where XXX are partitions)

The INFOSHARE article does not mention this(a MAJOR oversight if
correct)

So! I have two questions

1. If I'm moving from "config  vmunix  swap  generic" on a re0 device to 
   "config  vmunix  swap  generic" on a rz0 device do I need to rebuild the kernel

2. If the boot_osflags console variable is cleared, and I just type "boot" will
   the system find rz0a(and hopefully boot from it) before looking at re0a 


TIA
boc
-- 
------------------------------------------------------------
        Brian O'Connor, Unix Systems Consultant
              Latrobe University,Bendigo
          boc@ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-03 22:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-03 22:27 moving root; rebuilding the kernel Brian O'Connor

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