Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't open osf_boot

Status
Not open for further replies.

DrRuss

Programmer
Feb 23, 2001
11
0
0
GB
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 receive 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
 
Did you remember to put a boot block onto the disk?

From diskconfig : choose Boot Block=AdvFS

or from disklabel : -t advfs
 
In diskconfig:
The boot block=none. I changed this to AdvFS and clicked OK. I tried to boot from the disk but had the same problem (can't find osf_boot). I had a look at the disk again using diskconfig and the boot block was again set to none!

I also tried disklabel -t advfs dsk6 but this didn't work.
 
First read chapter 5.7.6 in the Administration Guide :


Then to your other question about mounting disk from cdrom boot :

# hwmgr -show scsi

find the name of the disk!

# mkdir /etc/fdmns/testroot
# mkdir /etc/fdmns/testusr
do this for var if you have a seperate /var

# cd /etc/fdms/testroot
# ln -s /dev/disk/dsk20a
# cd ../testusr
# ln -s /dev/disk/dsk20g

same for dsk20h if seperate var

mount testroot#root /mnt
mount testusr#usr /mnt/usr

Kjetil
 
Hi,

Thanks for the advice. Now, on booting to single user mode I can see / but not /usr and /var. This is what I did:

>>> 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_doamin
# 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
 
Hi,

Thanks for the advice. Now, on booting to single user mode I can see / but not /usr and /var. This is what I did:

>>> 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
 
First you should have put the bootblock onto the before actually restoring the data, but it seems to work.
I can't really understand what you are doing when issuing :
# disklabel -t dsk6a -r -F dsk6a /tmp/label RZ29B

It seems dangerous to me and the correct command would be to issue this line before mkfdmn root like this :
# disklabel -wr -t advfs dsk6 rzxx

You should also use mountroot the first time you boot. Then you can run bcheckrc.

Remember that the hw database would be different from the DS20E and the AS1000 so you might need to delete it and recreate it with mountroot. You would also need to build a new kernel since there is different architechture.
 
Hi,

Thanks for all of your help.

I have now managed to boot to single user mode and rebuild the kernel. Now when I boot from the system disk the server always boots to SINGLE USER MODE. I checked the /etc/inittab file and the initdefault is 3. The only way I can get into multiple user mode (GUI) is typing:

# init 3

everytime. Any idea what I need to do to get the server to boot to level 3 automatically?

Thanks

Russ
 
Check your console variable boot_osflags = A

If in unix:
# consvar -l
# consvar -s boot_osflags A

If in console:
>>> show boot*
>>> set boot_osflags A

Kjetil
 
Hi,

That worked thanks. I realised that I had made a typo when setting to boot in mulituser mode (set bootos_flags a and not set boot_osflags A).

Thank you for all of your help.

Regards

Russ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top