Operating System - HP-UX
1753850 Members
7210 Online
108807 Solutions
New Discussion юеВ

Re: Which disk i have booted off?

 
joe_91
Super Advisor

Which disk i have booted off?

Can some tell me how to find out which disk i have booted off? (primary or alt)...I have to load patches and my primary disk has stale extents..how do i deal this?

Thanks

Joe
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Which disk i have booted off?

Hi Joe:

If one of your mirrored vg00 disks has stale extents, you had better forget about loading patches and correct the problem!

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Regards!

...JRF...
Jannik
Honored Contributor

Re: Which disk i have booted off?

If this is a system under HP support call HP and get them to change the disk.

If you don't have support on the system change the disk.

If you don't have a disk then reduce the lv's away from the faulted disk you can't use a fail disk for anything anyway.

This document is very usefull you should look at page 31-33:
http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&node=prodITRC/WW_Start/N1|16|11
jaton
Rajeev  Shukla
Honored Contributor

Re: Which disk i have booted off?

You wouldn't be able to find out from a system that is up and running that which disk it booted from as the logging doesn't start when the disk is selected for boot. Also the OS works on VG and LV rather than disks for operations.
In your case i wouldn't be bothered to find which disk it booted from rather fix the stale disk.
AwadheshPandey
Honored Contributor

Re: Which disk i have booted off?

try this

#echo boot_string/S|adb /stand/vmunix /dev/mem

stale shows that ur primary disk may be currupt, do a dd command on primary disk
#dd if=/dev/dsk/cxtxdx of=/dev/null bs=1024

follow the process when disk go bad pdf file.
Regards,
Awadhesh
It's kind of fun to do the impossible
Geoff Wild
Honored Contributor

Re: Which disk i have booted off?

lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c28t5d0 (0/0/0/3/0.5.0) -- Boot Disk
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c28t5d0
/dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0


With dump on c0t6d0 - means that is my boot disk.

Also confirmed with Awadhesh 's answer.

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mridul Shrivastava
Honored Contributor

Re: Which disk i have booted off?

execute the following command:

#echo "bootdev/X" | adb /stand/vmunix /dev/kmem
this will give an output similar to :

bootdev:
bootdev: 1F005000

This number represents the boot device. Here's how to decode it :

1F 00 5 0 00
__ __ _ _ __
| | | | |
major# | target | flags
| |
bus# lun

Per this information:

major# (1F) is 31 in decimal, and major number 31 should be sdisk on your
system (you can use lsdev to verify this).

bus# (00) is the card instance number to which the device is attached.

target (5) is the device's scsi id.

lun (0) is the device's logical unit number.


Therefore, this device maps to /dev/dsk/c0t5d0.

HTH
Time has a wonderful way of weeding out the trivial
Michael Steele_2
Honored Contributor

Re: Which disk i have booted off?

Use kmpath with 11.11 and up, or,

# lvlnboot -v `vgdisplay | grep "VG Name" | awk '{print $3}'

And you'll see something like:

/dev/dsk/c0t5d0 (8/4.5.0) -- Boot Disk



Support Fatherhood - Stop Family Law