[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8651.0. "bootblock on RZ28 DU3.2d" by STOSS1::HORVATH () Thu Jan 30 1997 13:39

    Hello,
    
    I'm using DU3.2d-1. I would like to duplicate the a partition
    root_domain to the b partition which is not currently in use.  
    This will give me more disk space for a 3.2d to 4.0 updateinstall.
    
    What is the correct command to write the bootblock on the b partition
    of the local rz28?
    
    I would assume once this is accomplished I could vdump from a to b and
    would then have a choice of booting either a or b.
    
    Thanks,
    Jeff
T.RTitleUserPersonal
Name
DateLines
8651.1NABETH::alanDr. File System's Home for Wayward Inodes.Thu Jan 30 1997 13:427
	The first question you should ask is:

	"Will the console find a boot block that isn't at the beginning
	 of a disk?"

	I don't know the answer, but it would a good idea to find out
	if it is even possible before worrying about how.
8651.2DECWET::MARTINThu Jan 30 1997 13:594
I'm pretty sure it's not possible.  I *think* the only possible boot partition
is partition 'a'.  How would you go about specifying at the console level what
partition to use?  Doesn't it only ask for the "bootdef_dev", which would be
something like DKE100?
8651.3good pointSTOSS1::HORVATHThu Jan 30 1997 14:338
    Good point.  Then another solution to my disk space problem is to use
    another disk.  I have another available disk rz8.  I will edit the
    disklabel on this drive to concatenate the a and b partitions, then
    restore root_domain in the a partition.  
    
    My original question still stands, I'll need a bootblock on this drive.
    
    Thanks,
8651.4DECWET::MARTINThu Jan 30 1997 15:0912
OK.  I believe "disklabel -wr -t advfs rz8 rz28" will put an AdvFS boot block on
the disk for you (assuming the disk is an rz28, of course).

This will reset the default partitions on you, so you'll need to edit the
disklabel again to enlarge the size of the a partition.

Also, when you create the new domain on this partition, make sure you use the
"-r" flag with mkfdmn.

Do a test boot with this disk before you absolutely need to boot off of it.

--Ken
8651.5more thoughtSTOSS1::HORVATHThu Jan 30 1997 15:408
    Assuming I placed the bootblock on this new disk and modified the
    disklabel, and performed a vrestore of the root_domain, when is the 
    appropriate time to edit /etc/fdmns/root_domain
    with new link to rz8, or must I actually perform mkfdmn rz8
    root_domain inorder to get the metadata on the disk?
    
    My thinking is boot from cdrom, bcheckrc, then relink root_domain from
    rz0a to rz8a.  Halt, then boot rz8.  
8651.6DECWET::MARTINThu Jan 30 1997 19:4823
Assuming you start from the root disk being rz0, you should:

disklabel -wr -t advfs rz8 rz28
disklabel -e /dev/rrz8c
mkfdmn /dev/rz8a root_backup
mkfset root_backup root
mount root_backup#root /mnt
vdump / | vrestore /mnt
cd /mnt/etc/fdmns
mv root_domain root_oldrz0
mv root_backup root_domain
cd /
umount /mnt

Halt, then boot rz8.

Note that I just typed all of that in from memory.  I know that I didn't get the
flags right for vdump/vrestore, and probably not for other steps as well.  But
that should be the order in which to do things.

This also assumes that both swap and /usr stay in the same place they were in.

--Ken