SUMMARY: booting stops: can't open osf_boot

From: Max Hadersbeck <max_at_cis.uni-muenchen.de>
Date: Tue, 30 Jul 1996 13:59:56 +0200

Thanks for all who replied.

>m_beltramo_at_sonda.cl (Marcelo Beltramo)
>crittend_at_storm.simpson.edu (Paul Crittenden)
>bouchard_l_at_decus.fr (Louis Bouchard - Bouygues Telecom)
>Craig Makin <Craig_Makin.DOLA_at_notes.dola.wa.gov.au>
>"F.U. Mucke" <Mucke_at_rrz.Uni-Koeln.DE>

The solution is, that you need primary-boot and secondary-boot blocks on
a disc to boot it. If you want to initialise a disk with an advanced
filesystem, you must have the corresponding blocks for this filesystem.
(/mdec/rzboot.advfs /mdec/bootrz.advfs)
If you label the disk without -t advfs option you get the wrong boot
blocks on the advanced filesystem disk and booting doesn't find the
osf_boot file.
Here the correct procedure :
(from Craig Makin <Craig_Makin.DOLA_at_notes.dola.wa.gov.au> )

# rmfset backup_root bkroot ! remove and make filesets from domain
pointing
# rmfset backup_usr bkusr ! to the correct disk to build boot device
on.
# mkfset backup_root bkroot ! rmfset will remove any unwanted files
# mkfset backup_usr bkusr !

# disklabel -z /dev/rrz25c ! zero disk label


# disklabel -rw -t advfs /dev/rrz25a rz26n /mdec/rzboot.advfs
/mdec/bootrz.advfs

see man disklabel (8) )
 if you want a different disklayout, for example a bigger root partion
edit the /etc/disktab entry for the disk you specify, for example :
make a new entry for rz26N to enlarge the root partition to 80 MB
rz26NEW:\
        :ty=winchester:dt=SCSI:ns#57:nt#14:nc#2570:\
        :oa#0:pa#160000:ba#8192:fa#1024:\
        :ob#160001:pb#273126:bb#8192:fb#1024:\
        :oc#0:pc#2050860:bc#8192:fc#1024:\
        :od#433127:pd#1617732:bd#8192:fd#1024:\
        :oe#433127:pe#1:be#8192:fe#1024:\
        :of#433127:pf#1:bf#8192:ff#1024:\
        :og#433127:pg#1:bg#8192:fg#1024:\
        :oh#433127:ph#1:bh#8192:fh#1024:
now say :
# disklabel -rw -t advfs /dev/rrz25a rz26NEW /mdec/rzboot.advfs
/mdec/bootrz.advfsa

# mount backup_root#bkroot /bkroot ! mount new device for copy
# mount backup_usr#bkusr /bkusr !

Check for any crash dumps in /usr/var/adm/crash. If any dumps are found
and not
needed, delete them prior to the copy or move them to /tmp during the
copy.

# vdump -0 -Du -f - / | vrestore -xvf - -D /bkroot
     ! Copy root filesystem to bkroot
# vdump -0 -Du -f - /usr | vrestore -xvf - -D /bkusr
     ! Copy usr filesystem to bkusr

# cd /bkroot/etc ! Change to the bkroot fstab entry which points to
# mv fstab fstab.root ! the correct domains and swap devices
# mv fstab.bkroot fstab ! Ensure both are kept sychronised

# cd /bkroot/sbin ! Change to the bkroot swapdefault entry which
# mv swapdefault swapdefault.root ! points to the correct swap partition
on
rz25b
# mv swapdefault.bkroot swapdefault ! Ensure both are kept sychronised

Test the system by booting from /dev/rz25a via the following command
>>> boot Dkd100

This works.
Now I have a bigger root partition with a bootable advfs filesystem :
root_domain#root 160000 109966 38464 75% /

That's it.
MAX
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Maximilian Hadersbeck           
Centrum fuer Informations- und Sprachverarbeitung
Ludwig Maximilians Universitaet    
Oettingerstr. 67                
80538 Muenchen                  
(089) 21782717, FAX (089) 21782701
max_at_cis.uni-muenchen.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Tue Jul 30 1996 - 14:46:53 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT