[HPADM] Re: SUMMARY- Identify the disk which server booted ( on mirror pair)

From: vinod kumar (vinodkumarmp@yahoo.com)
Date: Thu Jun 14 2007 - 14:08:23 EDT


Thanks to Michal Kapalka and Dave A

1. Simple way ,

dmesg | grep Boot

or try syslog ( if dmesg buffer is full)

grep Boot /var/adm/syslog/syslog.log

Both will give the HW path of the disk booted .

vmunix: Boot device's HP-UX HW path is: 1/0/0/3/0.6.0

if you need to find the device name from this path
(including efi hw path),

ioscan -efnkH 1/0/0/3/0.6.0
Class I H/W Path Driver S/W State H/W
Type Description
=======================================================================
disk 3 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE
    HP 36.4GST336753LC
                           /dev/dsk/c4t6d0
/dev/dsk/c4t6d0s2 /dev/rdsk/c4t6d0
/dev/rdsk/c4t6d0s2
                           /dev/dsk/c4t6d0s1
/dev/dsk/c4t6d0s3 /dev/rdsk/c4t6d0s1
/dev/rdsk/c4t6d0s3
       
Acpi(HWP0002,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part1,Sig2EB7B300-DAE1-11DA-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI

2. adb way

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

this will give you minor number of the booted disk .

do a list of dsk devices and grep for this minor
number .

0x1f046002 --> output from adb . take last 6
charectors only (046002 )

ll /dev/dsk/* | grep 046002

brw-r----- 1 bin sys 31 0x046002 May
14 12:01 /dev/dsk/c4t6d0s2

 
-vinod

--- vinod kumar <vinodkumarmp@yahoo.com> wrote:

> How do I identify the disk which server booted from
> on a mirror root disk .
>
> Ex: I have 2 disks in vg00 , /dev/dsk/c0t6d0 and
> c4t6d0 .
>
> Say if I boot the server manually from HA path ( ie
> c4t6d0 ) , after server comes to munti usermode ,
> how
> to confirm the disk it booted is from c4t6d0 .
>
> The reason I am curius about this is on IA , disk HW
> path on EFI are different ( like Pnu5,Lun6 ... ) .
>
> Thanks
> -vinod
>
>
>
>
____________________________________________________________________________________
> Be a better Heartthrob. Get better relationship
> answers from someone who knows. Yahoo! Answers -
> Check it out.
>
http://answers.yahoo.com/dir/?link=list&sid=396545433
>
> --
> ---> Please post QUESTIONS and
> SUMMARIES only!! <---
> To subscribe/unsubscribe to this list,
> contact majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives:
> ftp.dutchworks.nl:/pub/digests/hpux-admin
> (FTP, browse only)
>
> http://www.dutchworks.nl/htbin/hpsysadmin (Web,
> browse & search)
>
>

      ____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:56 EDT