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



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@xxxxxxxxx> 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@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner:
owner-hpux-admin@xxxxxxxxxxxxx

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@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx

Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)



Relevant Pages

  • [HPADM] SUMMARY replacing bad disk in physical volume
    ... replacing bad disk in physical volume ... The volume group vg02 using PV2 and is striped and ... What is the correct procedure for removing the bad disk from ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)
  • [HPADM] SUMMARY: Internal disk on N-class machine
    ... Since it's a production server, I called HP, and they say: it's hot-swapable but HP doesn't recommend replacing it online. ... Internal disk on N-class machine ... The mirror disk of vg00 is faulty. ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)
  • [HPADM] Re: Identify the disk which server booted ( on mirror mair)
    ... If you are not the intended recipient, ... delete without copying and kindly advise us by e-mail of the mistake in ... How do I identify the disk which server booted from ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)
  • [HPADM] [Summary] physical volume powerfailed
    ... The following command will show you the HW path of the disk that is ... Thanks for your suggestions about the powerfailing disk, ... [HPADM] physical volume powerfailed ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)