Operating System - HP-UX
1844525 Members
3843 Online
110233 Solutions
New Discussion

how to check which disk is boot in morroring setup

 
Ajin_1
Valued Contributor

how to check which disk is boot in morroring setup


Dear Sir
In a mirrored boot disk server how to find out and check which disk is booting

Regards

Ajin.S
Thanks & Regards
Ajin.S
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.
10 REPLIES 10
Fabio Ettore
Honored Contributor

Re: how to check which disk is boot in morroring setup

Hi,

use just

setboot

You'll see the primary path and the alternate path (which is the mirrored disk).

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Jupinder Bedi
Respected Contributor

Re: how to check which disk is boot in morroring setup

# setboot
Primary bootpath : 0/8/0/0.3.0
Alternate bootpath : 1/4/0/0.3.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

This will tell you which is your primary and which is your secondary disk
All things excellent are as difficult as they are rare
sujit kumar singh
Honored Contributor

Re: how to check which disk is boot in morroring setup

hi



dmesg | grep -i boot

then compare that with setboot and lvlnboot -v


regards
sujit
R.K. #
Honored Contributor

Re: how to check which disk is boot in morroring setup

Hi Ajin,

Boot disks configured shown by:
# setboot
# lvlnboot -v

To find which disk the system is booted from currently:

# more /var/adm/syslog/syslog.log | grep -i boot

Nov 30 12:35:43 xxxxxx vmunix: Boot device's HP-UX HW path is: 0/1/1/0.1.0

So you will get the HW path of current disk.

Regds..
Don't fix what ain't broke
Kapil Jha
Honored Contributor

Re: how to check which disk is boot in morroring setup

#setboot
would tell you which is primary disk and which is secondary and
#lvlnboot -v
would tell you which disk are boot disks so as to decide which disks you need to put in setboot.


BR,
Kapil+
I am in this small bowl, I wane see the real world......
Johnson Punniyalingam
Honored Contributor

Re: how to check which disk is boot in morroring setup

setboot

or

lvlnboot -v

to show both (pri & sec)mirrored disk
Problems are common to all, but attitude makes the difference
Nido
Trusted Contributor

Re: how to check which disk is boot in morroring setup

Hello Ajin, How are you?

One liner From my old notes:
echo "boot_string/S" | adb -k /stand/vmunix /dev/kmem

Cheers!!
" Let Villagers Be Happy!! "
madhuchakkaravarthy
Trusted Contributor

Re: how to check which disk is boot in morroring setup

hi

u can use

#setboot

# dmesg | grep -i boot

this will show the last boot disk in which the system is booted..

if u have both primary and secondary disk

u can use this

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

if u have IR volume

then

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

compare the both output value bt

#ll /dev/dsk

Suraj K Sankari
Honored Contributor

Re: how to check which disk is boot in morroring setup

Hi,
If you satisfied with the answer and your problem got solved then please make a habit to assign points,
Those people who give there valuable time for your problem they should expect some apparition from you in terms of points.

To know how to assign points please go through the below link

http://forums13.itrc.hp.com/service/forums/helptips.do?admit=109447627+1256027208667+28353475#33

Thanks
Michael Steele_2
Honored Contributor

Re: how to check which disk is boot in morroring setup

Hi

You boot off of the alt, look at setboot, see both the pri and alt listed in the output and you can't make a distinction. 'setboot' lists three possiblitiles including the cdrom.

To find what you are currently boot off of you have to query the kernel with this command:

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

...is correct choice for Ia64 and,

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

...is the correct choice for Pa-risc.
Support Fatherhood - Stop Family Law