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_at_ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------
Received on Mon Feb 03 1997 - 23:47:09 NZDT