- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which disk did I boot from?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:13 AM
07-14-2003 09:13 AM
How can you tell which disk the box booted with?
Thanks-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:17 AM
07-14-2003 09:17 AM
Re: Which disk did I boot from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:24 AM
07-14-2003 09:24 AM
Re: Which disk did I boot from?
One way is:
# echo 'boot_string/S'|adb /stand/vmunix /dev/mem
...you will see something like:
boot_string:
boot_string: disc(10/0.6.0;0)/stand/vmunix
...which can be quickly related to the disk device file by examining the output of 'lvlnboot -v'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:26 AM
07-14-2003 09:26 AM
Re: Which disk did I boot from?
# echo "bootdev/X" | adb /stand/vmunix /dev/kmem
bootdev:
bootdev: 1F03F000
# ll /dev/dsk/* |grep 03F000
# ll /dev/dsk/*
brw-r----- 1 bin sys 31 0x004000 Oct 17 2002 /dev/dsk/c0t4d0
brw-r----- 1 bin sys 31 0x01f000 Oct 2 2002 /dev/dsk/c1t15d0
brw-r----- 1 bin sys 31 0x03f000 Oct 2 2002 /dev/dsk/c3t15d0
However, since there are only 2 drives in these boxes, it was easy enough to identify.
Thanks for your help!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 09:36 AM
07-14-2003 09:36 AM
Re: Which disk did I boot from?
lvdisplay -v /dev/vg00/lvol1 | grep " \{2\}/dev/dsk/c*"
The grep looks for at least two spaces in front of the disk path.
This works because lvol1 (/stand) must be contiguous.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 10:26 AM
07-14-2003 10:26 AM
Re: Which disk did I boot from?
Could you please explain the output for me?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 10:56 AM
07-14-2003 10:56 AM
Re: Which disk did I boot from?
# lvdisplay -v /dev/vg00/lvol1 | grep " \{2\}/dev/dsk/c*"
/dev/dsk/c1t6d0 28 28
#
the /dev/dsk/c1t6d0 identifies the disk and the first number trailing is the LE (Logical Extents - usually 4mb - in this case 112mb for /stand) on the PE (Physical Volume) and the second number is the PE (Physical Extents) on the PV (Physical Volume).
This is a "sniplet" of the
lvdisplay -v /dev/vg00/lvol1
command:
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t6d0 28 28
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 11:10 AM
07-14-2003 11:10 AM
Re: Which disk did I boot from?
Do: bdf /stand (will find the LV of kernel)
you will get /dev/vgXX/lvolX
Then: vgdisplay -v vgXX | grep dev/dsk/c
(will get the device for)
you will get /dev/dsk/cXtXdX
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 11:20 AM
07-14-2003 11:20 AM
Re: Which disk did I boot from?
Thanks, but what I was looking for was which disk I had booted *from*, not which were available.
Stace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 11:39 AM
07-14-2003 11:39 AM
Re: Which disk did I boot from?
Your confusion over the boot device not being listed results from not fully understanding the device number.
1F03F000
The first 2 hex digits (1F) - 31 Decimal indecate the major device number. An lsdev indicates that blk device 31 is "sdisk" SCSI disk.
The next two hex digits 03 - 3 decimal indicate the controller instance number "c3".
The next hex digit (F) - 15 decimal indicates the SCSI ID (or "target") "t15".
The next hex digit (0) indicates the logical unit number (LUN) "d0".
The last two hex digits are driver specific.
You need to look for a device with major number
31 and minor number 0x03f000 and you should se that under /dev/dsk.
Thus 1F03F000 corresponds to /dev/dsk/c3t15d0.
This technique can be very useful because soon or later you are going to have to decode those dreaded "LBOLT" messages and the device number is done exactly the same way.