Operating System - HP-UX
1833958 Members
2150 Online
110063 Solutions
New Discussion

boot mirror disk will not boot

 
Shawn McConnell
Advisor

boot mirror disk will not boot

I am trying to get my boot mirror disk to boot up and when I type boot alt at the isl prompt it starts to boot and then comes back with the following.

EXEC_FAILED
EXEC Format error

Now here is how I created the boot disk mirror.

pvcreate -Bf /dev/rdsk/c2t2d0
vgextend vg00 /dev/dsk/c2t2d0
mkboot /dev/rdsk/c2t2d0
mkboot -a "hpux -lq (0/0/0.2.0;0) /stand/vmunix" /dev/rdsk/c2t2d0
lvlnboot -R

Then I recreated the mirrors

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0

After I finished when I type lvlnboot -v it shows both disks as being bootable.


8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: boot mirror disk will not boot

In your 2nd mkboot statement, try just this:

# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0

Everything else looks OK.
Mel Burslan
Honored Contributor

Re: boot mirror disk will not boot

when I rebuild a failed root mirror disk, I use the following sequence:

mirrdisk_raw=cXtYdZ # replace X, Y & with your own values
mkboot -l ${mirrdisk_raw}
mkboot -a "hpux -lq (;0)/stand/vmunix" ${mirrdisk_raw}
cd /usr/sbin/diag/lif
mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL ${mirrdisk_raw}

if you are on a 32 bit OS, replace the last line as follows:

mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL ${mirrdisk_raw}

not much different but again, I am not an expert how the bootstrap looks into the lif area and searches what. So, this works for me all the time and hope it works for you too..

________________________________
UNIX because I majored in cryptology...
DCE
Honored Contributor

Re: boot mirror disk will not boot

It looks good except for
mkboot -a "hpux -lq (0/0/0.2.0;0) /stand/vmunix" /dev/rdsk/c2t2d0

Change it to
mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
Shawn McConnell
Advisor

Re: boot mirror disk will not boot

Do I need to redo the mirrors and everything or can I just type

mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
Mel Burslan
Honored Contributor

Re: boot mirror disk will not boot

no need to re-do the mirrors as they are not the part of this deal. This is just the few sectors at the beginning of your spindles.
________________________________
UNIX because I majored in cryptology...
James R. Ferguson
Acclaimed Contributor

Re: boot mirror disk will not boot

Hi Shawn:

You have a space character between disk partition information and the filename of the kernel. You shouldn't need this anyway. I believe that is causing this problem.

Simply the command to be:

# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/c2t2d0

...and you will be fine.

Regards!

...JRF...

Shawn McConnell
Advisor

Re: boot mirror disk will not boot

Yup that was it.

mkboot -a "hpux -lq" /dev/rdsk/c2t2d0

Thanks to all !!!!

Shawn
Shawn McConnell
Advisor

Re: boot mirror disk will not boot

This thread is closed. Thanks again to all.