1839267 Members
2883 Online
110137 Solutions
New Discussion

booted up disk

 
gany59
Regular Advisor

booted up disk

how to determine from which disk the server is booted up from the primary or secondary boot disk
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: booted up disk

Shalom,

lvlnboot -v

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
gany59
Regular Advisor

Re: booted up disk

hello Steve,

I know that lvlnboot -v shows the boot disk paths both primary and secondary, but i need to know from which disk the server is booted
James R. Ferguson
Acclaimed Contributor

Re: booted up disk

Tim Nelson
Honored Contributor

Re: booted up disk

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

11.11
echo boot_string/S|adb /stand/vmunix /dev/mem
AVV
Super Advisor

Re: booted up disk

Hi,

Try with the below..

# dmesg|grep -i boot
Boot device's HP-UX HW path is: 0/1/2/0.1.0

# ioscan -fnH 0/1/2/0.1.0


It may helps you (I believe)



@AVV
Torsten.
Acclaimed Contributor

Re: booted up disk

This information is written to console during boot and written to dmesg buffer / syslog /console log, e.g.

Boot device's HP-UX HW path is: 2/0/12/1/0/4/0.15.4.0.0.0.1



But why does it matter?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
bloodrain
New Member

Re: booted up disk

rp4440a[/]#echo boot_string/s|adb /stand/vmunix /dev/kmem
boot_string:
boot_string: disk(0/1/1/1.0.0.0.0.0.0;0)/stand/vmunix
command"ioscan" to make sure the boot pathï¼
rp4440a[/]#ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAU3036NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 2 0/1/1/1.0.0 sdisk CLAIMED DEVICE HP 36.4GMAU3036NC
2ã Itanium:
# echo "bootdev/x" | adb /stand/vmunix /dev/kmem
ä¾ å¦ ï¼
rx6600a[/]#echo "bootdev/x" | adb /stand/vmunix /dev/kmem
bootdev:
0x1f051002
you can find the boot path from the resultï¼ c5t0d0s2
rx6600a[/]#ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 0 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 29 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146ABAB4
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
/dev/dsk/c5t0d0s1 /dev/rdsk/c5t0d0s1
/dev/dsk/c5t0d0s2 /dev/rdsk/c5t0d0s2
/dev/dsk/c5t0d0s3 /dev/rdsk/c5t0d0s3
disk 30 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG146ABAB4
/dev/dsk/c5t1d0 /dev/rdsk/c5t1d0
/dev/dsk/c5t1d0s1 /dev/rdsk/c5t1d0s1
/dev/dsk/c5t1d0s2 /dev/rdsk/c5t1d0s2
/dev/dsk/c5t1d0s3 /dev/rdsk/c5t1d0s3
rx6600a[/]#