ericbj
April 28, 2011, 10:43pm
1
Hi,
I have two disk in a machine
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DH072ABAA6
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/2/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DH072ABAA6
/dev/dsk/c0t1d0 /dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s1 /dev/rdsk/c0t1d0s3
#
How to find out which disk is the boot disk
BR,
Eric
echo "bootdev/x"|adb -n /stand/vmunix /dev/kmem
bootdev:
0x1f020002
ll /dev/dsk | grep 20002
brw-r----- 1 bin sys 31 0x020002 Jul 2 2007 c2t0d0s2
lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0s2 (0/1/1/0/4/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t0d0s2, 0
etc..
uname -a
HP-UX B.11.23 U ia64 1789404231 unlimited-user license
This is executed just now on one of 'my' HP's
Hope that helps.
Also all this stuff is found on ITRC and in document When good disks go bad from HP
Regards
Peasant.
Eric,
Do you want to know which disk the server booted off from (Out of the two)? Or, you want to know how to find the boot disks (Disks which are capable of booting the server) out of these two disks?
-DB
Further to Peasant.
This command shows which discs are bootable and any alternate boot partitions.
lvlnboot -v
This command shows which disc is Primary and which is Alternate boot (if applicable).
setboot