Operating System - HP-UX
1830499 Members
2322 Online
110006 Solutions
New Discussion

How can we find that which disk is booted on HP server?

 
SOLVED
Go to solution
Sudhaadm
Regular Advisor

How can we find that which disk is booted on HP server?

Hi All,
Thanks in advance.

We need to find that,which path the server is booted..Is it primary or secondary path?
Please provide the details.
Thanks
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: How can we find that which disk is booted on HP server?

Hi:

# echo boot_string/S|adb /stand/vmunix /dev/mem

Regards!

...JRF...
Camel_1
Valued Contributor

Re: How can we find that which disk is booted on HP server?

so a search IPL at the IPL prompt
A. Clay Stephenson
Acclaimed Contributor

Re: How can we find that which disk is booted on HP server?

It's a little bit tricky to answer. First, execute setboot without any options. That will identify the primary and alternate boot paths. Normally the primary path is used; however, it is possible the neither was used; the box may have been manually booted.

That is when the method proposed by Jim should be used:

# echo "boot_string/S" | adb /stand/vmunix /dev/mem (or /dev/kmem)

However, there is a "gotcha" there as well in that the box might not have booted from the default "/stand/vmunix". If the adb command above returns NULL or garbaged values then that means that the symbol table in /stand/vmunix does not correspond to the running kernel's memory image in /dev/kmem.
You then have to repeat the command using /stand/vmunix.prev, /stand/vmunix.save, or any other kernel files found in /stand until adb returns meaningful strings.



If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: How can we find that which disk is booted on HP server?

Hi Sudhaadm,

You can try thist to know , from which disk the system is booted up:


# echo "boot_string/S" | adb64 stand/vmunix /dev/kmem


The output will be like this :
-----------------------------

boot_string:
boot_string: disk(0/0/1/1.0.0.0.0.0.0;0)/stand/vmunix


hth,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Sudhaadm
Regular Advisor

Re: How can we find that which disk is booted on HP server?

Hi all,
Thanks for the help and providing the great support.