Operating System - HP-UX
1843700 Members
2842 Online
110223 Solutions
New Discussion

Cannot boot from mirrored root disk

 
Johannes Imhof
New Member

Cannot boot from mirrored root disk

It would be very nice to get help on this problem, it is very important for us.
The problem is that the mirrored disk is not bootable although the advices
taken from another Discussion.
Our script:


1. pvcreate -B /dev/rdsk/c2t2d0 ### create physical volume for use in LVM
volume group, -B == boot
2. mkboot /dev/rdsk/c2t2d0 ### Place the LIF information on the disk
3. mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0 ## disk 2: make sure
that the autoboot string disables the quorum checking
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0 ## disk 1: make sure
that the autoboot string disables the quorum checking

Ausgabe der aktuellen Einstellungen:

# setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

4. SAM => Disk 2 (0/0/2/0.2.0) added to volume group vg00 (ansonsten alles
"default")

5. SAM => Alle logischen Volumes auf 1 Spiegelkopie eingerichtet

6. # lvlnboot -R
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0


If you have senseful suggeston, please answer.
Thanks a lot.


7 REPLIES 7
Steve White_8
Frequent Advisor

Re: Cannot boot from mirrored root disk

Hi,

The work you did has covered laying down all the structure you need except
populating the filesystems. When I built a redundant boot disk without mirror
disk ux I had to add the following.

I first tried using cpio to transfer files but it would not transfer all the
device drivers. I think all you have left to do is: dd if=/dev/vg00/rlvol3
of=/dev/vg00/rlvol? bs=1k. The rlvol? is whatever your redundant root logical
volume is.

This should resolve your problem. You can mount your redundant root filesystem
and check the /dev/ directory to see if it properly populated! My guess is this
is where your problem is.

Good luck!

If this does not work send me an e-mail I have a doc on how to do this. The doc
is not quite complete so you have to improvise a little, that is why I did not
post it.
Emil Velez
Honored Contributor

Re: Cannot boot from mirrored root disk


If you do a

pvcreate -B /dev/rdsk/cXtYd0
mkboot /dev/rdsk/cXtYd0
mkboot -a "stuff
vgextend /dev/vg00 /dev/dsk/cXtYdo0

after the vgextend you should be able to do a lvlnboot -R and see the boot area should be recognized on all disks. No DD is required. You will then need to

lvextend -m 1 /dev/vg00/lvol1 2,3,4,5,6,7,8
onto the newly added disk.. Something is wrong. Has this system been upgraded ??
melvyn burnard
Honored Contributor

Re: Cannot boot from mirrored root disk

For the step by step method, you may want to read through the manual for this.
Go read chapter 7 of:

http://www.docs.hp.com/dynaweb/hpux10/hpuxen0a/b2043/@Generic__BookView
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Venu_2
Regular Advisor

Re: Cannot boot from mirrored root disk

hi,

Your procedure looks right

May i know the error message


regards
venu
James Lynch
Valued Contributor

Re: Cannot boot from mirrored root disk

I suspect that the problem lies in step 4, where your are adding the disk to the VG with SAM. SAM is probably forcing another pvcreate on the disk and wiping out the boot LIF area. You can use the lifls to show the contents of the boot LIF area ie. lisfls -l /dev/rdsk/c2t2d0. This should list all of the bootable programs and files contained in the boot LIF area. You should see files like ISL, HPUX, AUTO, LABEL ... etc. If you do not see them or lifls reports an error, then the boot area is not valid and you need to run the mkboots again.

If you follow Emil's procedure to extend the disk into the VG and then mirror it, you will have success.
Wild turkey surprise? I love wild turkey surprise!
Shobayo Omololu
Occasional Advisor

Re: Cannot boot from mirrored root disk

Myfriend,

What stage of the boot are you in problem. Is it the ISL prompt, before ISL or the vmunix loading?

It seems your boot LIF on your presumed mirror disk is not right. This is because your lvlnboot -v was wrong it should also say BOOT DISK.

reconfigure the disk by forcing the recreation. pvcreate -B -f .

also make sure you do not use SAM. I do not think SAM is supported.

Lolu
Lolu
Charles Akonnor
Advisor

Re: Cannot boot from mirrored root disk

HI

the steps you took looks ok.

But lvlnboot -v did not see your disk as a boot disk, that means something happened to the results of the pvcreate -B , mkboot /dev/rdsk/cxtydz .

Adding a disk to a volume group through SAM reruns pvcreate without the boot option and also do not rerun mkboot , that is your disk is not being seen as a boot disk when you run lvlnboot -v

Rerun your procedure, at step 4 add the disk to the volume group without using SAM

i.e.

vgextend /dev/vg00 /dev/dsk/cxtydz


and continue with the rest of your procedure . Run lvlnboot at the end , l am sure your mirror disk will boot after creating all the mirrors of the logical volumes on the root disk

you must run lvchange -c n -M n /dev/vg00/lvol2
to deactivate the mirror consistency and mirror write cache on the swap and dump logical volume.

To do this you mus boot into maintenance mode ie. at isl "hpux -lm(;0)/stand/vmunix"
in maintenance mode vg00 is not activated so you can run lvchange command.


reboot the system and try to boot with the mirrir disk. It should definately boot unless your mirror disk if is faulty.
Never give up.