Re: ia64 boot loader? (5471 Views)
Reply
Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 1 of 12 (5,476 Views)

ia64 boot loader?

Hey;

 

All of the documentation on ia64 mirroring says the boot loader on the vg00/OS disks should say something like "boot vmunix"; however, I'm at a client site who's root disks are saying hpux, like the pa-risc systems.  Obviously, this works as these systesm have booted.  Is this a relatively new thing?  Should they still say 'boot vmunix' or is that entry wrong now?

 

# model
ia64 hp Integrity rx2800 i2
# uname -r
B.11.31
# setboot | grep -i bootpath
Primary bootpath : 0/0/0/1/0/0/0.0x0.0x1030000c0000000 (/dev/rdisk/disk2)
HA Alternate bootpath :
Alternate bootpath : 0/0/0/1/0/0/0.0x0.0x1000000c0000000 (/dev/rdisk/disk3)
# lifcp /dev/disk/disk2_p2:AUTO -
hpux
# lifcp /dev/disk/disk3_p2:AUTO -
hpux

 

I'm assuming the alternate boot disk should still have the ignore quorum option, right?  If you're booting off the alternate disk, chances are the primary isn't there anymore... 

 

Thanks for helping me clarify this; I appreciate it.

 

Doug O'Leary


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Acclaimed Contributor
Torsten.
Posts: 23,442
Registered: ‎10-02-2001
Message 2 of 12 (5,472 Views)

Re: ia64 boot loader?

The entries in LIF are still there for compatibility, but the boot file is in EFI.

 

Check like this:

 

# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri

# efi_cp -d /dev/rdsk/c3t2d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt

# cat /tmp/AUTO.pri

# cat /tmp/AUTO.alt

 

 


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Trusted Contributor
donna hofmeister
Posts: 191
Registered: ‎08-29-2008
Message 3 of 12 (5,471 Views)

Re: ia64 boot loader?

my notes have:

 

# mkboot -a "boot vmunix -lq" /dev/rdisk/PRIMARY

# mkboot -a "boot vmunix -lq" /dev/rdisk/SECONDARY

 

 

Honored Contributor
Patrick Wallek
Posts: 13,784
Registered: ‎06-21-2000
Message 4 of 12 (5,466 Views)

Re: ia64 boot loader?

At the HP-UX level you are looking at, I think this is correct.

 

For example:

 

11.31 root /root # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk41_p2 -- Boot Disk
/dev/disk/disk5_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk41_p2
/dev/disk/disk5_p2
Root: lvol3 on: /dev/disk/disk41_p2
/dev/disk/disk5_p2
Swap: lvol2 on: /dev/disk/disk41_p2
/dev/disk/disk5_p2
Dump: lvol2 on: /dev/disk/disk5_p2, 0

 

11.31 root /root # lifcp /dev/rdisk/disk5_p2:AUTO -
hpux

 

11.31 root /root # lifcp /dev/rdisk/disk41_p2:AUTO -
hpux
11.31 root /root # model
ia64 hp server rx2660

However the "boot vmunix" option is what is run from EFI.  For example:

 

EFI Boot Manager ver 1.10 [14.61] Firmware ver 2.31 [4411]

Please select a boot option

HP-UX Primary Boot: 0/1/1/1.0x2.0x0
Internal Bootable DVD
EFI Shell [Built-in]
Boot Option Maintenance Menu
System Configuration Menu


Use ^ and v to change option(s). Use Enter to select an option
Loading.: HP-UX Primary Boot: 0/1/1/1.0x2.0x0
Starting: HP-UX Primary Boot: 0/1/1/1.0x2.0x0

(C) Copyright 1999-2011 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.044

Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix
Seconds left till autoboot - 8
Type 'help' for help

HPUX>

Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 5 of 12 (5,455 Views)

Re: ia64 boot loader?

Hey;

 

thanks for the replies.

 

>>The entries in LIF are still there for compatibility, but the boot file is in EFI.

 

You know, I actually knew that... get out of supporting HPUX for a few months and you forget the easy stuff.  

 

So, still have a problem, I think:

 

# model
ia64 hp Integrity rx2800 i2
# uname -r
B.11.31
# setboot | grep bootpath
Primary bootpath : 0/0/0/1/0/0/0.0x0.0x1030000c0000000 (/dev/rdisk/disk2)
HA Alternate bootpath :
Alternate bootpath : 0/0/0/1/0/0/0.0x0.0x1000000c0000000 (/dev/rdisk/disk3)
# efi_cp -d /dev/rdisk/disk2_p1 -u /EFI/HPUX/AUTO /tmp/auto.pri
# efi_cp -d /dev/rdisk/disk3_p1 -u /EFI/HPUX/AUTO /tmp/auto.alt
# cat /tmp/auto.pri
hpux -lq
# cat /tmp/auto.alt
boot vmunix -lq

 

The primary is saying "hpux -lq".  I'm assuming that's failing on boot and this guy is booting off of the alternate.  Does that sound accurate?

 

Thanks again for the replies.  Apologies for the part-timerz question.

 

Doug O'Leary


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Acclaimed Contributor
Torsten.
Posts: 23,442
Registered: ‎10-02-2001
Message 6 of 12 (5,452 Views)

Re: ia64 boot loader?

I assume the same. Check syslog for the message about the disk used for boot - it's the alternate?

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Trusted Contributor
donna hofmeister
Posts: 191
Registered: ‎08-29-2008
Message 7 of 12 (5,451 Views)

Re: ia64 boot loader?

that's seems likely.

 

Does "dmesg" give any hints?

Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 8 of 12 (5,448 Views)

Re: ia64 boot loader?

Hey;

 

dmesg's no help - system's been up for 166 days.  I can't find any reference to either primary/alt in syslog.  

 

I remembered that there was an adb command to find out from which disk a system was booted.  A quick google search showed the ia64 version.  Curiously enough, assuming accuracy, it's showing the disk that says hpux:

 

# efi_cp -d /dev/rdisk/disk2_p1 -u /EFI/HPUX/AUTO /tmp/auto.pri
# cat /tmp/auto.pri
hpux -lq
# ll /dev/disk | grep $(echo "bootdev/x"|adb /stand/vmunix /dev/kmem | awk '/0x/ {print substr($1,5)}')
brw-r----- 1 bin sys 1 0x000008 Feb 10 2011 disk2_p2

 

I'm going to get a chance to reboot this guy sometime soon... I'll have to watch the console.

 

Thanks again for the help/replies.

 

Doug O'Leary


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Acclaimed Contributor
Torsten.
Posts: 23,442
Registered: ‎10-02-2001
Message 9 of 12 (5,444 Views)

Re: ia64 boot loader?

[ Edited ]

Try

$ grep -i "boot device" /var/adm/syslog/syslog.log

vmunix: Boot device's HP-UX HW path is: 0.4.1.0.5000c50002


Check the console log from MP too.


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 10 of 12 (5,436 Views)

Re: ia64 boot loader?

Hey;

 

Thanks for the string.  That backs up the adb command string above:

 

# grep -i 'boot device' /var/adm/syslog/syslog.log
Jun 27 19:05:19 mercury vmunix: Boot device's HP-UX HW path is: 0/0/0/1/0/0/0.0x0.0x1030000c0000000
# setboot | grep 0/0/0/1/0/0/0.0x0.0x1030000c0000000
Primary bootpath : 0/0/0/1/0/0/0.0x0.0x1030000c0000000 (/dev/rdisk/disk2)
# cat /tmp/auto.pri
hpux -lq
# efi_cp -d /dev/rdisk/disk2_p1 -u /EFI/HPUX/AUTO /tmp/auto.pri

 

So, it seems like hpux is valid, at least in this specific case.  I wonder if some bozo played games with the EFI shell to make that work.  Any rate, I got the confirmation that I needed.  Thanks again.

 

Doug O'Leary


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Honored Contributor
Duncan Edmonstone
Posts: 5,684
Registered: ‎08-05-2000
Message 11 of 12 (5,436 Views)

Re: ia64 boot loader?

>> Curiously enough, assuming accuracy, it's showing the disk that says hpux

 

So maybe it has been changed since the last boot? You could look at the output of:

 

 efi_ls -d /dev/disk/disk2_p1  /EFI/HPUX/AUTO

 

and look at the last modified date - changed since last reboot??


HTH

Duncan
Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 12 of 12 (5,427 Views)

Re: ia64 boot loader?

Hey;

 

I'm getting some good commands for the EFI shell, thanks. 

 

Apparently, modified more than 166 days ago:

 

# efi_ls -d /dev/disk/disk2_p1 /EFI/HPUX/AUTO
FileName   Last Modified   Size
AUTO           1/20/2011       9

 

total space 523218944 bytes, free space 519286784 bytes

 

# uptime
2:46pm up 166 days, 20:42, 1 user, load average: 0.10, 0.10, 0.10

 

Thanks again.

 

Doug


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.