1753428 Members
4706 Online
108793 Solutions
New Discussion

Re: Identity boot disk

 
SOLVED
Go to solution
shikhar_1
Regular Advisor

Identity boot disk

Hi,

 

How to identify the current boot disk of the server? I mean server is booted with primary disk or alternate disk?

 

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
        /dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1     on:     /dev/dsk/c2t2d0
Root: lvol3     on:     /dev/dsk/c2t2d0
Swap: lvol2     on:     /dev/dsk/c2t2d0
                        /dev/dsk/c1t2d0
Dump: lvol2     on:     /dev/dsk/c1t2d0, 0

# 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)

 

With this o/p i came to know about the primary disk & alternate disk. However how to identify my server is boot on primary disk or alternate disk?

2 REPLIES 2
Bill Hassell
Honored Contributor

Re: Identity boot disk

Unfortunately, it is quite complicated based on PARISC versus Itanium, and is also different between version 10.01 and the different versions of 11.xx. The attached script called bootinfo will show you the boot device used for the last bootup, plus a lot of additional information.

 

Here is a PA-RISC server at 11.23:

 

PA-RISC, 11.23

atl1-11.23 # bootinfo

bootstring using adb:
   Last booted using 0x1f020000 (c2t0d0)

Boot disks and AUTO file boot command:
   /dev/dsk/c2t0d0
      BootCommand: "hpux -lq"
   /dev/dsk/c2t2d0
      BootCommand: "hpux -lq"

boot PATHS:
   Primary bootpath   = 0/0/2/0.0.0, /dev/dsk/c2t0d0
                        (disk) HP 146 GST3146707LC

   Alternate bootpath = 0/0/2/0.2.0, /dev/dsk/c2t2d0
                        (disk) HP 146 GST3146707LC


Automatic boot settings from setboot:
   Autoboot is ON (enabled)
   Autosearch is OFF (disabled)


lvlnboot -v:

   Boot Definitions for Volume Group /dev/vg00:
   Physical Volumes belonging in Root Volume Group:
        /dev/dsk/c2t0d0 (0/0/2/0.0.0) -- Boot Disk
        /dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
        /dev/dsk/c1t0d0 (0/0/1/1.0.0)
        /dev/dsk/c1t2d0 (0/0/1/1.2.0)
   Boot: lvol1  on:     /dev/dsk/c2t0d0
                        /dev/dsk/c2t2d0
   Root: lvol3  on:     /dev/dsk/c2t0d0
                        /dev/dsk/c2t2d0
   Swap: lvol2  on:     /dev/dsk/c2t0d0
                        /dev/dsk/c2t2d0
   Dump: lvol2  on:     /dev/dsk/c2t0d0, 0

 

Here is an Integrity system at 11.31

 

Itanium @ 11.31
===============

atl6-11.31 # bootinfo

bootstring using adb:
   Last booted using 0x1000004 (disk5 or c0t0d0)

Boot disks and AUTO file boot command:
   /dev/disk/disk5_p2
      BootCommand: "boot vmunix"
   /dev/disk/disk41_p2
      BootCommand: "boot vmunix"

boot PATHS:
   Primary bootpath    = 0/1/1/0.0.0.0.0, /dev/rdsk/c0t0d0
                       = 0/1/1/0.0x5000c50007153089.0x0, /dev/rdisk/disk5
                       = (disk) 64000/0xfa00/0x1

   Alternate bootpath  = 0/1/1/0.0.0.6.0, /dev/rdsk/c0t6d0
                       = 0/1/1/0.0x5000c5000abec39d.0x0, /dev/rdisk/disk41
                       = (disk) 64000/0xfa00/0x32

   HA Alt bootpath     = 0/1/1/0.0.0.6.0, /dev/rdsk/c0t6d0
                       = 0/1/1/0.0x5000c5000abec39d.0x0, /dev/rdisk/disk41
                       = (disk) 64000/0xfa00/0x32


Automatic boot settings from setboot:
   Autoboot is ON (enabled)


lvlnboot -v:

   Boot Definitions for Volume Group /dev/vg00:
   Physical Volumes belonging in Root Volume Group:
        /dev/disk/disk5_p2 -- Boot Disk
        /dev/disk/disk41_p2 -- Boot Disk
   Boot: lvol1  on:     /dev/disk/disk5_p2
                        /dev/disk/disk41_p2
   Root: lvol3  on:     /dev/disk/disk5_p2
                        /dev/disk/disk41_p2
   Swap: lvol2  on:     /dev/disk/disk5_p2
                        /dev/disk/disk41_p2
   Dump: lvol2  on:     /dev/disk/disk5_p2, 0

 



Bill Hassell, sysadmin
Pawan Rawat_1
Frequent Advisor
Solution

Re: Identity boot disk

Hi

 

on B.11.11 ,we can get the boot disk path with following cmd--

 

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

 

 

Regards

Pawan