Operating System - HP-UX
1830862 Members
2658 Online
110017 Solutions
New Discussion

Re: Mirrordisk/UX cannot boot from root mirror.

 
SOLVED
Go to solution
Warren griggs
Frequent Advisor

Mirrordisk/UX cannot boot from root mirror.

Hi All,

I have setup mirrodisk/ux on one of our workstations running HPUX 11.00. Here is what I did...

/usr/sbin/pvcreate -f -B /dev/rdsk/c3t6d0
/usr/sbin/vgextend /dev/vg00 /dev/dsk/c3t6d0
/usr/sbin/mkboot /dev/rdsk/c3t6d0
/usr/sbin/mkboot -a "hpux -lq" /dev/rdsk/c3t6d0
/usr/sbin/mkboot -a "hpux -lq" /dev/rdsk/c3t5d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
/usr/sbin/lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
/usr/sbin/lvlnboot -R /dev/vg00
/usr/sbin/shutdown -ry 0
BOOT_ADMIN> boot pri isl
ISL> hpux -lm
vgchange -a y vg00
lvchange -M n -c n /dev/vg00/lvol2
lvlnboot -R /dev/vg00
reboot

Now when I try to boot from the alternate disk I get an error saying...

exec failed: cannot find /stand/vmunix or /vmunix

The workstation was built with Ignite and the mirrordisk software was added through this from a depot on the ignite server. As the software requires a codeword when installing normally could this be the problem?

Should I re-install MirrorDisk/UX?

Thanks in advance,
Colin.
8 REPLIES 8
Fabio Ettore
Honored Contributor

Re: Mirrordisk/UX cannot boot from root mirror.

Hi Colin,

I suggest you to check the alternate boot disk information.
Boot normally the system from the primary boot disk and then launch:

# setboot
# lvlnboot -v

Please reports output of commands above because they must be aligned.

Also: how to boot form the alternate boot disk?

In BCH prompt insert
sea
and then
boot

or just

boot alt

or what?

Best regards,
Fabio
WISH? IMPROVEMENT!
Warren griggs
Frequent Advisor

Re: Mirrordisk/UX cannot boot from root mirror.

Fabio,

Output as follows..

/ > setboot
Primary bootpath : 10/0/15/1.5.0
Alternate bootpath : 10/0/15/1.6.0

/ > lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t5d0 (10/0/15/1.5.0) -- Boot Disk
/dev/dsk/c3t6d0 (10/0/15/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t5d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c3t5d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c3t5d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c3t5d0, 0

I set the path for the alternate disk on the boot prom.

Regards,
Colin.
Fabio Ettore
Honored Contributor
Solution

Re: Mirrordisk/UX cannot boot from root mirror.

Ok Colin,

then I think that the reason of your problem could be the following:

/usr/sbin/lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0

You did the mirror for the first on swap logical volume (/dev/vg00/lvol2) and then on /stand logical volume (/dev/vg00/lvol1).

Then you should unmirror all logical volume and then mirror as the first the /stand logical volume:

# lvreduce -m 0 /dev/vg00/lvolX
and other ones....

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
and other ones....

Then

# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00

Also set the autosearch and autoboot options:

# setboot -s on -b on

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
John Palmer
Honored Contributor

Re: Mirrordisk/UX cannot boot from root mirror.

Hi Colin,

I suspect your problem was caused by mirroring lvol2 before lvol1.

If I remember correctly, the boot logical volume MUST be the first one on the disk.

Try removing all your mirrors from c3t6d0 with lvreduce -m 0, run your lvextends again making sure lvol1 is done first then reboot.

Warren griggs
Frequent Advisor

Re: Mirrordisk/UX cannot boot from root mirror.

Thanks Guys,

I will try this when I get some downtime and give out the points then.

Thanks again,
Colin.
Victor Fridyev
Honored Contributor

Re: Mirrordisk/UX cannot boot from root mirror.

Hi,

It seems to me, the problem is in the commands:
/usr/sbin/mkboot -a "hpux -lq" /dev/rdsk/c3t6d0
/usr/sbin/mkboot -a "hpux -lq" /dev/rdsk/c3t5d0

According to what I remember, it should look like this:
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c3t6d0

BTW, you can use the attached script, just cancel mirroring and make vgreduce. The script builds mirroring for vg00.
HTH
Entities are not to be multiplied beyond necessity - RTFM
wayne_89
New Member

Re: Mirrordisk/UX cannot boot from root mirror.

The commands should be
/usr/sbin/mkboot -a "hpux -lq" /dev/dsk/c3t6d0
/usr/sbin/mkboot -a "hpux -lq" /dev/dsk/c3t5d0
Suraj Singh_1
Trusted Contributor

Re: Mirrordisk/UX cannot boot from root mirror.

The problem for sure is because of mirroring lvol2 before lvol1.

Warren waiting for your response on this.

Regards
What we cannot speak about we must pass over in silence.