Operating System - HP-UX
1833873 Members
1690 Online
110063 Solutions
New Discussion

Primary boot disk hardware path

 
SOLVED
Go to solution
Giuseppe_13
Frequent Advisor

Primary boot disk hardware path

How is possible to know the primary boot disk hardware path via unix command ?

I can't to boot the server because i work in remote site.

thanks
9 REPLIES 9
Cem Tugrul
Esteemed Contributor

Re: Primary boot disk hardware path

lvlnboot -v
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: Primary boot disk hardware path

Please do not forget to submit points
:-)

(no points for this remeberance)

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Robert-Jan Goossens
Honored Contributor

Re: Primary boot disk hardware path

As posted above you can use lvlnboot -v to check the primary and alternate boot path

# echo boot_string/s | adb /stand/vmunix /dev/kmem

will give you the hardware path you are currently booted from.

Best regards,
Robert-Jan
Giuseppe_13
Frequent Advisor

Re: Primary boot disk hardware path

This is the output of lvlnboot -v command:

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0
/dev/dsk/c2t1d0
Root: lvol3 on: /dev/dsk/c2t0d0
/dev/dsk/c2t1d0
Swap: lvol2 on: /dev/dsk/c2t0d0
/dev/dsk/c2t1d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0

Which is the primary boot disk ?
Cem Tugrul
Esteemed Contributor

Re: Primary boot disk hardware path

Hi,
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
is your primary boot disk
i think you have mirrored root disk so
dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
seems mirrored
if dev/dsk/c2t0d0 has physical damage then
you may go on with the other disk dev/dsk/c2t1d0

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Giuseppe_13
Frequent Advisor

Re: Primary boot disk hardware path

thanks Cem Tugrul

Are you sure that the first disk, in the output of lvlbboot -v command, is the primary disk ?

Is it no possible that the first disk is the alternate disk and second disk is the primary disk ?

Cem Tugrul
Esteemed Contributor

Re: Primary boot disk hardware path

Giuseppe,
use the command setboot
Let me give an example from my system;
baan03:/#setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

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

baan03:/#lvlnboot -v
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
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: Primary boot disk hardware path

As you see,
i have 2 physical disks on my rootvg
these disks are;
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
AND for to understand which is primary path
then use command;
setboot
baan03:/#setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

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

As finally,My system boots from the disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0)
i know (these disks are mirrored) so
if something physically wrong on my disk then
i can go with Alternate bootpath with the disk /dev/dsk/c2t2d0

Hope it is clear now...


Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor
Solution

Re: Primary boot disk hardware path

from here i can say that;
you have mirrored 2 physical disks on your
rootvg(vg00)
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk

and /dev/dsk/c2t0d0 (0/1/1/0.0.0) is your primary bootpath and /dev/dsk/c2t1d0 is your
alternate bootpath

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't