- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
Discussions
Discussions
Forums
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
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