Operating System - HP-UX
1825512 Members
1812 Online
109681 Solutions
New Discussion юеВ

How can i confirm USED boot disk

 
SOLVED
Go to solution
Herbert Loevenich
Frequent Advisor

How can i confirm USED boot disk

Dear HP-UX community.

I've recently installed software mirror on an HP-UX 11.11 box.

Using setboot as the final action i've set the initial boot disk to the alternate boot path.
The primary boot path has been set to use the new installed mirrored disk.

# setboot
Primary bootpath : 0/0/1/1.2.0 second disk
Alternate bootpath : 0/0/2/0.2.0 first disk

Autoboot is ON (enabled)
Autosearch is ON (enabled)

# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 3 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0

Where can i find a confirmation the system has booted from "disk 3" /dev/dsk/c1t2d0 ?

Thanks for your help.
50% of all problems are based on communication issues, lets talk
2 REPLIES 2
Rick Garland
Honored Contributor
Solution

Re: How can i confirm USED boot disk

which disk booted from

# echo "bootdev/X" | adb /stand/vmunix /dev/kmem

This will produce the following output;
bootdev:
bootdev: 0x1f012000

Translating this HEX device;
1f = 31
# lsdev 31
Character Block Driver Class
31 -1 tlcots pseudo
188 31 sdisk disk
This indicates an sdisk driver - a disk

01 = c1
2 = t2
0 - d0
discard the last 2 figits

c1t2d0


echo 'boot_string/S'|adb /stand/vmunix /dev/mem
This command did not work on HPUX 11.23 on PA-RISC but did work on HPUX 11.11 on PA-RISC

use lvlnboot -v to match the hardware address
Herbert Loevenich
Frequent Advisor

Re: How can i confirm USED boot disk

Thanks for you help and fast reply.

# echo "bootdev/X" | adb /stand/vmunix /dev/kmem
bootdev:
bootdev: 1F012000

following your translation instruction: c1t2d0

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 3 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/4/2/0.0.0 sdisk CLAIMED DEVICE COMPAQ LOGICAL VOLUME
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
hqa7fh #
hqa7fh # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t2d0
/dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c2t2d0
/dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c2t2d0
/dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c2t2d0, 0

hqa7fh # setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

Major concern fixed.
Minor question:
Why is the dump device still on the initial disk after the reboot ?
Dump: lvol2 on: /dev/dsk/c2t2d0, 0
50% of all problems are based on communication issues, lets talk