Operating System - HP-UX
1752805 Members
5622 Online
108789 Solutions
New Discussion юеВ

Re: How do I find out which disk the server booted from

 
SOLVED
Go to solution
njia_1
Trusted Contributor

How do I find out which disk the server booted from

Hi

I know someone asked this before but I just could not find that question.

I need to find out which disk the server booted from when 2 disks are mirrored.

I tried setboot -v and lvlnboot -v but the problem is that I can not assume the server booted from the primary path. I have to be sure.

thanks
9 REPLIES 9
Sajjad Sahir
Honored Contributor

Re: How do I find out which disk the server booted from

dear Nija
lvlnboot -v u can use for it
see the the output of lvlnboot -v
u can use this command
Dear Nija 1# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/1/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
Jeeshan
Honored Contributor

Re: How do I find out which disk the server booted from

setboot
a warrior never quits
Eric SAUBIGNAC
Honored Contributor

Re: How do I find out which disk the server booted from

Bonjour,

You can find some informations in result of command "dmesg". For example :

Boot device's HP-UX HW path is: 0/4/1/0.0.0.0.0

Regards

Eric
Torsten.
Acclaimed Contributor

Re: How do I find out which disk the server booted from

from the syslog file:

vmunix: Boot device's HP-UX HW path is: 0/1/1/0.0.0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor
Solution

Re: How do I find out which disk the server booted from

Hi:

You can also do:

# echo 'boot_string/S' | adb -o /stand/vmunix /dev/mem

Drop the '-o' if you are running releases prior to 11.23.

Regards!

...JRF...
VK2COT
Honored Contributor

Re: How do I find out which disk the server booted from

Hello,

Others already replied with good information.

This test is one of many in my OAT script:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt

a) Here is how the results look like for Itanium server rx2620 running HP-UX 11.23:

CHECKING CURRENT BOOT DEVICE
____________________________
0x1f021002

INFO Boot string 1f021002 translates to disk c2t1d0

(;)/stand/vmunix

b) Here is how it looks like on SuperDome nPar (SD32000) running HP-UX 11.11:

CHECKING CURRENT BOOT DEVICE
____________________________
1F008000

INFO Boot device 1F008000 translates to disk c0t8d0

INFO Boot string
boot_string: (4/0/1/0/0/4/0.8.0.0.0.0.0;)/stand/vmunix

c) Here is how it looks like on Itanium server rx2620 running HP-UX 11.31 (Agile view):

CHECKING CURRENT BOOT DEVICE
____________________________
0x3000006

INFO Boot string 000006 translates to disk brw-r----- 1 bin sys 3 0x000006 Apr 1 12:31 disk6_p2

(;)/stand/vmunix

Check my script for details how to obtain
the results...

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Sajjad Sahir
Honored Contributor

Re: How do I find out which disk the server booted from


Dear Nija

once u got answer dear nija pls assign points

sajjad
njia_1
Trusted Contributor

Re: How do I find out which disk the server booted from

HI all

Thanks for your replies, as I said setboot and lvlnboot does not help because even it tells me which one is primary and alt, I can't just assume the server is booted from the primary path.

check syslog or demsg may give me the info I want but I will try and will also assign points after.

thank you all
regards
njia
James R. Ferguson
Acclaimed Contributor

Re: How do I find out which disk the server booted from

Hi (again):

> check syslog or demsg may give me the info I want but I will try

Have you tried the 'adb' command I suggested? I think that you will find that that satisfies your request.

Regards!

...JRF...