Operating System - HP-UX
1753789 Members
7953 Online
108799 Solutions
New Discussion юеВ

Re: How to get the boot string in HP-UX 11.23 ?

 
SOLVED
Go to solution
Arunvijai_4
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

# echo boot_string/S | adb /stand/vmunix /dev/kmem
boot_string:
adb: warning: Unrecognized format character - 'S'

What could be the Option ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Geoff Wild
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

Ah...seems on ia64 - use lowercase:

# echo 'boot_string/s' | adb /stand/vmunix /dev/kmem
boot_string:
(;)/stand/vmunix


Which means we still don't know for sure which disk booted the kernel....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Arunvijai_4
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

# echo 'boot_string/s' | adb /stand/vmunix /dev/kmem
boot_string:
(;)/stand/vmunix

It still some empy, where as 11.11,

HP11.11:>echo boot_string/S | adb /stand/vmunix /dev/kmem
boot_string:
boot_string: disk(0/1/1/0.0.0.0.0.0.0;0)/stand/vmunix
HP11.11:>

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jdamian
Respected Contributor

Re: How to get the boot string in HP-UX 11.23 ?

My box is HP-UX 11.23 IA64, not PA-RISC.

/stand/bootconf is not useful.

# cat /stand/bootconf
l /dev/dsk/c2t1d0s2
l /dev/dsk/c2t0d0s2

It contains devices suitable for boot the system, not the device used for last boot.
Devender Khatana
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

Hi,
On HPUx 11.23
# echo "bootdev/x"|adb -n /stand/vmunix /dev/kmem
bootdev:
0x1f020002
# ll /dev/dsk
total 0
brw-r----- 1 bin sys 31 0x020000 Oct 8 2004 c2t0d0
brw-r----- 1 bin sys 31 0x020001 Oct 8 2004 c2t0d0s1
brw-r----- 1 bin sys 31 0x020002 Oct 8 2004 c2t0d0s2------------->>
brw-r----- 1 bin sys 31 0x020003 Oct 8 2004 c2t0d0s3
brw-r----- 1 bin sys 31 0x031000 Oct 13 2004 c3t1d0
brw-r----- 1 bin sys 31 0x034000 Oct 13 2004 c3t4d0
#

And the thread is here
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=993945

HTH,
Devender
Impossible itself mentions "I m possible"
Simon Wickham_6
Regular Advisor

Re: How to get the boot string in HP-UX 11.23 ?

Hi,
As stated you can see this information with the commands stated but confirm boot areas in the BDRA are mirrored correctly by examining output from:

lvlnboot ├в v

Regards,
Simon
Simon Wickham_6
Regular Advisor

Re: How to get the boot string in HP-UX 11.23 ?

Hi,

Should read lvlnboot ├в v.

Regards,
Simon
Darrel Louis
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

Oscar,

What does lifcp say, is this still valid for 11.23:
lifcp /dev/dsk/c2t1d0s2:AUTO -

Darrel
Geoff Wild
Honored Contributor

Re: How to get the boot string in HP-UX 11.23 ?

Devender has it!

root@sha1 [ /home/gwild ]
# echo "bootdev/x"|adb -n /stand/vmunix /dev/kmem
bootdev:
0x1f032002

root@sha1 [ /home/gwild ]
# ll /dev/dsk |grep 32002
brw-r----- 1 bin sys 31 0x032002 Dec 30 13:35 c3t2d0s2



root@sha1 [ /home/gwild ]
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0s2 (0/1/1/1.2.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c3t2d0s2
/dev/dsk/c2t1d0s2
Dump: lvol2 on: /dev/dsk/c3t2d0s2, 0


Now I wonder if the first disk in the lvlnboot -v display is always the one booted from?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jdamian
Respected Contributor

Re: How to get the boot string in HP-UX 11.23 ?

thanx