Operating System - HP-UX
1830340 Members
2253 Online
110001 Solutions
New Discussion

Mirrored Root Disk - How to find from which disk the system has booted from?

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Mirrored Root Disk - How to find from which disk the system has booted from?

Hi,

I have a Mirrored vg00 (with one mirror) and I can boot from both of the mirrored disks. At any point of time how do I determine from which disk I have booted the OS from? vgdisplay/lvdisplay doesn't give any hint on this ..

Pl. help,
Thanks,
-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
9 REPLIES 9
Geoff Wild
Honored Contributor
Solution

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

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

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Uday_S_Ankolekar
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

check with : echo 'boot_string/S'|adb /stand/vmunix /dev/mem

-USA..
Good Luck..
A. Clay Stephenson
Acclaimed Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

Ask the box itself:

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

That will give you the device path.
If it ain't broke, I can fix that.
Karthik S S
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

Thank you Geoff .. it works ..!!

Do you have a list of things that we can quiry using adb??

Thanks in advance,
-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Geoff Wild
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

You can query all kinds of things - including the kernel...

# echo bufpages/D | adb -k /stand/vmunix /dev/kmem
bufpages:
bufpages: 206438

I don't have a list - but that would be a good thing to have...

I use the hpmem script too get some info:
# hpmem
HP-UX pc0003 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Victor BERRIDGE
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

echo bufpages/D| adb -k /stand/vmunix /dev/kmem
echo "mem_ptr/D"| adb /stand/vmunix /dev/mem
echo 'phys_mem_pages/D'|adb -k /stand/vmunix /dev/kmem
echo itick_per_usec/D|adb -k /stand/vmunix /dev/kmem

etc...

All the best
Victor
Chris Wilshaw
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

Paul Cross_1
Respected Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

Maybe you could try:

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

:) no points please.
Sundar_7
Honored Contributor

Re: Mirrored Root Disk - How to find from which disk the system has booted from?

Karthik,

# echo "\$>/tmp/output\n\$e\n\$q" | adb -k /stand/vmunix /dev/kmem

Look at /tmp/output. You have lots waiting for u :-)

Sundar
Learn What to do ,How to do and more importantly When to do ?