Operating System - HP-UX
1837971 Members
3572 Online
110124 Solutions
New Discussion

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

 
kuldeep saroha
Frequent Advisor

how to find out the Current boot disk in a running os in mirrored boot disk.

Dear All,

i have a server with two boot mirrored disk. and server os is up and running. i can not reboot the server. i just want to know if server was previously boot manually with out auto boot is there some way to find out right now on which disk server os is booted.

Thanks and Regards
kuldeep
7 REPLIES 7
Jeeshan
Honored Contributor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

two commands you can use,

#setboot

OR

#lvlnboot -v
a warrior never quits
Tonya Underwood
Regular Advisor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

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

no need for -o prior to 11.23
kuldeep saroha
Frequent Advisor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

bkpsrv#echo 'boot_string/S' | adb -o /stand/vmunix /dev/mem
bkpsrv#uname -a
HP-UX bkpsrv B.11.23 U 9000/800 883606812 unlimited-user license
bkpsrv#echo 'boot_string/S' | adb /stand/vmunix /dev/mem
adb: warning: Trouble reading version string from memory file ...
adb: warning: Object file and memory file may not be matched.
adb: error: /dev/mem: Device busy.
adb: warning: Could not complete object file specific initializtions ...
adb: warning: Proceeding anyway; But some commands may fail.
boot_string:
boot_string:
adb: error: /dev/mem: Device busy.
bkpsrv#echo 'boot_string/S' | adb -o /stand/vmunix /dev/mem
adb: warning: Trouble reading version string from memory file ...
adb: warning: Object file and memory file may not be matched.
adb: error: /dev/mem: Device busy.
adb: warning: Could not complete object file specific initializtions ...
adb: warning: Proceeding anyway; But some commands may fail.
boot_string:
boot_string:
adb: error: /dev/mem: Device busy.
bkpsrv#


hi i am getting this error. where to find out.

please help.

Thanks & Regards
Anka
Trusted Contributor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

Just check the beginning of the syslog.log the boot path is listed:

"vmunix: Boot device's HP-UX HW path is: 0/3/0/0/0/0.0.0"
kuldeep saroha
Frequent Advisor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

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


this thing works for me.


Thanks and Regards
Torsten.
Acclaimed Contributor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.

>> "i just want to know if server was previously boot manually with out auto boot "

The only way to find this out is IMHO to inspect the console logs from the MP.

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!   
UXisCool
Advisor

Re: how to find out the Current boot disk in a running os in mirrored boot disk.


Do a
lvlnboot -v

You will see something like the following:

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0

Note: the "Boot lvol1 on:" /dev/dsk/c1t2d0 -- This is currently the boot disk. The entry under that is the mirror.