?
Solved

can't open osf_boot when booting to a recovered root disk

Posted on 2003-03-27
4
Medium Priority
?
1,393 Views
Last Modified: 2013-12-05
Hi,

I'm in the process of doing a trial disaster recovery from a DS20E to an Alpha Server 1000. On the DS20E I backed up the /, /usr and /var directories. On the Alpha 1000 I did the following:

>>> show bootdef_dev
    bootdef_dev    dka0.0.6.0
>>> show dev
    dka0.0.6.0    DKA0     RZ29B
>>> boot dka400    # boot from tru64 v5.1 cdrom
# hwmgr -view devices
  /dev/disk/dsk6c    RZ29B    bus-0-targ-0-lun-0
# mountroot        # created tape device files tape?_d?
# diskconfig       # set up the root disk dsk6 with a: 256 MB AdvFS; b Swap; g: 200 MB AdvFS and H: 1503 MB AdvFS
# mkfdmn -orF /dev/disk/dsk6a root_domain
# mkfset root_domain   root
  (I did this for the other two domains (/usr and /var))
# mount root_domain#root  /mnt
# cd /mnt
# vrestore -xvf /dev/ntape/tape0_d1
  (I restored /usr and /var to their respective domains)
# vi /mnt/etc/fstab  # commented all other drives except those for root
# cd /mnt/etc/fdmns
# cd root_domain
# rm *
# ln -s /dev/disk/dsk6a  dsk6a
# cd usr_domain
# ln -s /dev/disk/dsk6g  dsk6g
# halt
>>> boot dka0 -fl s

I then recive the following:
****************************
jumping to bootstrap code
can't open osf_boot

halted CPU 0

halt code = 5
HALT instruction executed
PC20000030
boot failure
>>>
****************************

Also, when I booted agin from the cdrom I was not able to mount the root_domain without having to do mkfdmn and mkfset. On mounting there was no data and so I had to do a vrestore again to see if the osf_boot was copied to dsk6a (it was). How do you re-mount the domains withiout having to go through the whole process of mkfdmn, mkfset and vrestore.

Regards

Russ
**********************************************************
I have manged to solve the above problem with osf_boot. But now doing the following I get another problem:

>>> show bootdef_dev
   bootdef_dev    dka0.0.6.0
>>> set bootdef_dev ""
>>> boot dka400
# hwmgr -view devices
# dn_setup -install_tape
# hwmgr -view devices
  /dev/ntape/tape0
# mkfdmn -orF /dev/disk/dsk6a root_domain
# mkfset root_domain root
# mkfdmn -orF /dev/disk/dsk6g usr_domain
# mkfset usr_domain usr
# mkfset usr_domain var
# mount -t advfs root_domain#root /mnt
# cd /mnt
# vrestore -xf /dev/ntape/tape0_d1
# mount -t advfs usr_domain#usr /mnt/usr
# cd /mnt/usr
# vrestore -xf /dev/ntape/tape0_d1
# mount -t advfs usr_domain#var /mnt/var
# cd /mnt/var
# vrestore -xf /dev/ntape/tape0_d1
# disklabel -r dsk6a > /tmp/label
# disklabel -t dsk6a -r -F dsk6a /tmp/label RZ29B
# cd /mnt/etc/fdmns/root_domain
# rm *
# ln -s /dev/disk/dsk6a dsk6a
# cd ../usr_domain
# rm *
# ln -s /dev/disk/dsk6g dsk6g
# cd /mnt/etc
# ed fstab
  Commented out all except those entries for
  root_domain#root, usr_domain#usr and usr_domain#var
# fasthalt -y
>>> boot dka0 -fl s -fi genvmunix
   I can see the / but there is nothing on /usr and /var
# bcheckrc
  ********************************************************
  warning the disklabel for /dev/disk/dsk6g does not exist
  or is corrupted
  usr_domain#usr on /usr: I/O error
  warning the disklabel for /dev/disk/dsk6g does not exist
  or is corrupted
  usr_domain#var on /usr: I/O error
  ********************************************************

Russ
0
Comment
Question by:drruss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
charlie250 earned 500 total points
ID: 8377752
I am curious as to why you are doing things this way..
The way I would approach it is to:
1. Do a fresh install on the As1000 setting up AdvFS domains as you need them.
2. Restore your old data from the DS20 and NOT restoring
/etc/fdmns and /etc/fstab , /etc/sysconfigtab, /vmunix and /dev.
There may be some other files you may not want but I can't think of anything off hand..

This should bypass your issues..
Charles
0
 
LVL 4

Assisted Solution

by:zvfs221
zvfs221 earned 500 total points
ID: 8479515
1. boot from installation media
2. recreate root filesystem and make disk bootable
3. restore root filesystem under /mnt
[--cut--]
# cd /mnt/etc
# rm dec_*
# cp dfsl.dat dfsl.bak
# cp dfsc.dat dfsc.bak
# cat /dev/null >dfsl.dat
# cat /dev/null >dfsc.dat
# shutdown -h now
P00>>>b -fl s -fi genvmunix <bootdef_dev>
# mount -u /
# dn_setup -init
# dsfmgr -K
[--cut--]
4. make /usr /var filesystems and restore them
5. make new customized kernel with doconfig
6. alter fstab
7. cross fingers and reboot with new kernel
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question