Operating System - HP-UX
1832994 Members
2185 Online
110048 Solutions
New Discussion

How can I determine which drive the server has booted from?

 
Paul F. Bennett
Advisor

How can I determine which drive the server has booted from?

I have a 11.23 hpux server with a mirrored boot drive/lvols. How can I determine which boot drive the 11.23 system has booted from after its booted up and running? I think I can pull the info from the running kernel but i dont remember how?
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: How can I determine which drive the server has booted from?

Hi:

# echo "boot_string/S" | adb -o /stand/vmunix /dev/kmem

Regards!

...JRF...
Kenan Erdey
Honored Contributor

Re: How can I determine which drive the server has booted from?

Hi,

setboot command shows primary and alternate bootpath. if you didn't choose boot path primary is your booted disk.

Kenan.
Computers have lots of memory but no imagination
Tim Nelson
Honored Contributor

Re: How can I determine which drive the server has booted from?

FYI, the 11.11 method with adb does not work on 11.23.

I believe if you search this forum that no one yet has found a definate way to indicate the HW path of the booted disk.

kcpath only gives you the path to the kernel.

searches through the kernel vars have yet to find a valid entry

but maybe a result will be forthcoming.

Tim Nelson
Honored Contributor

Re: How can I determine which drive the server has booted from?

I guess never say never.

Sometimes we make life harder than it needs to be.

try this.

grep Boot /var/adm/syslog/syslog.log


Robert-Jan Goossens
Honored Contributor

Re: How can I determine which drive the server has booted from?

James R. Ferguson
Acclaimed Contributor

Re: How can I determine which drive the server has booted from?

Hi (again):

> Tim: FYI, the 11.11 method with adb does not work on 11.23.

Well, it works for 11.23 PA-RISC, but then:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1115665

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: How can I determine which drive the server has booted from?

Sorry Jim, thank you for the correction, all my 11.23s are Itanium and I should be careful stating an abosolute.



Paul F. Bennett
Advisor

Re: How can I determine which drive the server has booted from?

This worked on 11.23 Itanium:

# echo "bootdev/x"|adb - \ n /stand/vmunix /dev/kmem
bootdev:
0x1f032002


# ll /dev/dsk |grep 32002
brw-r----- 1 bin sys 31 0x032002 Dec 30 13:35 c3t2d0s2

Thanks all!