Operating System - HP-UX
1847831 Members
5819 Online
104021 Solutions
New Discussion

Re: which boot disk booted from

 
SOLVED
Go to solution
IT_2007
Honored Contributor

which boot disk booted from

How do I find on Itanium HP-UX server about which disk booted off from?

echo "boot_string/S" |adb /stand/vmunix /stand/kmem

doesn't work above command. Is there any equivalent command.

Thanks.
5 REPLIES 5
mobidyc
Trusted Contributor

Re: which boot disk booted from

Hello,

i've no itanium system for test but what gives you the command setboot?:
# setboot
Primary bootpath : 1/0/0/3/0.6.0
Alternate bootpath : 1/0/1/1/0/1/1.6.0

Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
Sandman!
Honored Contributor
Solution

Re: which boot disk booted from

Try the command below:

# echo "bootdev/X" | adb -o /stand/vmunix /dev/kmem

on IPF specify the "-o" switch for backward compatibility; see adb(1) for details. The output of the above command will be a hex string comprising the major / minor number of the device the machine was booted off on. If the output is say "0x1f011002" then the device file will be "/dev/dsk/c1t1d0s2" viz.,

1f = Major Number
01 = Bus
1 = Target
0 = Lun
02 = Slice or Partition

~hope it helps
Jollyjet
Valued Contributor

Re: which boot disk booted from

We only define primary boot disk, alternate boot disk. The primary boot disk is defined in several places: /stand/bootconf, setboot, lvlnboot -v vg00 if all configured correctly.
Jollyjet
Valued Contributor

Re: which boot disk booted from

string /etc/lvmtab tells you which disk has vg00 and vgdisplay will explain you which disk currently the os has booted.
IT_2007
Honored Contributor

Re: which boot disk booted from

echo "bootdev/X" | adb -o /stand/vmunix /dev/kmem is correct one.


Thanks to Sandman.