- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get the boot string in HP-UX 11.23 ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 07:41 AM
01-25-2006 07:41 AM
For HP-UX 11.00 and 11.11 I used run the following command to locate the boot disk and kernel path:
echo "boot_string/S" | adb -k /stand/vmunix /dev/kmem
But "boot_string/S" doesn't seem to be a valid command for adb in HP-UX 11.23
Do you know the right way to get that ?
Thanx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 07:48 AM
01-25-2006 07:48 AM
Solution'adb' has undergone some changes in 11.23. You can get backward compatability with '-o':
# echo 'boot_string/S' | adb -o /stand/vmunix /dev/mem
See the manpages for 'adb':
http://docs.hp.com/en/B2355-60105/adb.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 07:52 AM
01-25-2006 07:52 AM
Re: How to get the boot string in HP-UX 11.23 ?
# cat /tmp/AUTO.boot
The command would extract the boot string from /EFI/HPUX/AUTO in readable format and apend it in /tmp/AUTO.boot file for you to browse.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 08:38 AM
01-25-2006 08:38 AM
Re: How to get the boot string in HP-UX 11.23 ?
lvlnboot -v
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 08:44 AM
01-25-2006 08:44 AM
Re: How to get the boot string in HP-UX 11.23 ?
Try the following...
# echo 'boot_string/S' | adb -o /stand/vmunix /dev/mem
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:15 PM
01-26-2006 08:15 PM
Re: How to get the boot string in HP-UX 11.23 ?
The following lines are the output of command line in HP-UX 11.11
# echo boot_string/S | adb /stand/vmunix /dev/kmem
boot_string:
boot_string: disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix
but in HP-UX 11.23, it displays:
boot_string:
(;)/stand/vmunix
No info about device type and hardware path is shown.
On the other hand, boot process logs the boot device in syslog:
vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0
But this info can be removed (deliberately or inadvertently). Thus I need a sure method to get that info.
My interest of this issue is due that I had to recover my system from a pre-patched image (splitted mirror volumes) because kernel recompilation failed in a patch installation.
That failed kernel recompilation was due that kernel image resided in the splitted LVOL1, i.e., system booted from alternate path (I didn't know this detail) then splitted mirrors (kernel image was) and tried to install patches (--> recompile kernel).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:26 PM
01-26-2006 08:26 PM
Re: How to get the boot string in HP-UX 11.23 ?
On parisc with 11.23 I get:
# 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
On ia64:
# echo boot_string/S | adb -o /stand/vmunix /dev/kmem
boot_string:
boot_string:
(;)/stand/vmunix
# 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
So, with (;)/stand/vmunix coming after the 2nd boot_string: in the adb command, I'd say my ia64 system booted off of /dev/dsk/c2t1d0s2 (0/1/1/0.1.0)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:31 PM
01-26-2006 08:31 PM
Re: How to get the boot string in HP-UX 11.23 ?
awk '{ print $2 }' /stand/bootconf | xargs ioscan | tail -1 | awk '{ print $1 }'
It will give that disk string.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:34 PM
01-26-2006 08:34 PM
Re: How to get the boot string in HP-UX 11.23 ?
# cat /stand/bootconf
l /dev/dsk/c3t2d0s2
2 /dev/dsk/c2t1d0s2
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:34 PM
01-26-2006 08:34 PM
Re: How to get the boot string in HP-UX 11.23 ?
Try to change the format of adb. May give informations. 11.23 and 11.11 will differ on adb usage.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:37 PM
01-26-2006 08:37 PM
Re: How to get the boot string in HP-UX 11.23 ?
boot_string:
adb: warning: Unrecognized format character - 'S'
What could be the Option ?
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:52 PM
01-26-2006 08:52 PM
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
Which means we still don't know for sure which disk booted the kernel....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:59 PM
01-26-2006 08:59 PM
Re: How to get the boot string in HP-UX 11.23 ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 10:06 PM
01-26-2006 10:06 PM
Re: How to get the boot string in HP-UX 11.23 ?
/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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 10:37 PM
01-26-2006 10:37 PM
Re: How to get the boot string in HP-UX 11.23 ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 11:45 PM
01-26-2006 11:45 PM
Re: How to get the boot string in HP-UX 11.23 ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 11:48 PM
01-26-2006 11:48 PM
Re: How to get the boot string in HP-UX 11.23 ?
Should read lvlnboot â v.
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 11:58 PM
01-26-2006 11:58 PM
Re: How to get the boot string in HP-UX 11.23 ?
What does lifcp say, is this still valid for 11.23:
lifcp /dev/dsk/c2t1d0s2:AUTO -
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 04:02 AM
01-27-2006 04:02 AM
Re: How to get the boot string in HP-UX 11.23 ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2006 01:15 AM
01-30-2006 01:15 AM