1753716 Members
4685 Online
108799 Solutions
New Discussion юеВ

Re: finding boot disk

 
madhudeepan
Frequent Advisor

finding boot disk

how to find the physical boot disk and secondary boot disk apart from lvlnboot -v /dev/vg00
8 REPLIES 8
R.K. #
Honored Contributor

Re: finding boot disk

Hi Madhudeepan,

# setboot

This will show the path set for primary and alternate boot disk.

Regds,
R.K.
Don't fix what ain't broke
Aneesh Mohan
Honored Contributor

Re: finding boot disk


Primary Boot Disk you can find out by using:-

On HPUx 11.23

# echo "bootdev/x"|adb -n /stand/vmunix /dev/kmem
bootdev:
0x1f020002
# ll /dev/dsk
total 0
brw-r----- 1 bin sys 31 0x020000 Oct 8 2004 c2t0d0
brw-r----- 1 bin sys 31 0x020001 Oct 8 2004 c2t0d0s1
brw-r----- 1 bin sys 31 0x020002 Oct 8 2004 c2t0d0s2------------->>
brw-r----- 1 bin sys 31 0x020003 Oct 8 2004 c2t0d0s3
brw-r----- 1 bin sys 31 0x031000 Oct 13 2004 c3t1d0
brw-r----- 1 bin sys 31 0x034000 Oct 13 2004 c3t4d0
#


On PA-RISC

# echo "boot_string/S" |adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/1/1.15.0.0.0.0.0;0)/stand/vmunix
#ioscan -fnH 0/0/1/1.15.0.0.0.0.0



Regards,
Aneesh
Lijeesh N G_1
Respected Contributor

Re: finding boot disk

Hi Madhudeepan,

You can find the boot disk(Presently booted)from the following outputs,

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

# ioscan -fnH 0/1/1/0.1.0
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GMAP3147NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
===========================================

For finding Primary /Secondary boot deivice you use the following commnd,
# setboot
Primary bootpath : 0/1/1/0.1.0
HA Alternate bootpath :
Alternate bootpath : 0

Autoboot is ON (enabled)
---------------------------------------
Regards
LIJEESH N G
Vinod Kumar Yadav
Trusted Contributor

Re: finding boot disk

Hi,

For Finding the Physical Boot Disk & Seconday Boot Disk.

Check with setboot & lifls -l command.

root # setboot
Primary bootpath : 0/1/1/0.1.0
Alternate bootpath : 0/1/1/1.2.0

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

Then on the Primary bootpath & alternate boot path to check boot related information with the help of disk address.

root # lifls -l /dev/rdsk/c2t1d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ODE -12960 584 880 0 06/06/23 13:08:19
MAPFILE -12277 1464 128 0 06/06/23 13:08:19
SYSLIB -12280 1592 354 0 06/06/23 13:08:19
CONFIGDATA -12278 1952 254 0 06/06/23 13:08:19
SLMOD2 -12276 2208 145 0 06/06/23 13:08:19
SLDEV2 -12276 2360 164 0 06/06/23 13:08:19
SLDRV2 -12276 2528 836 0 06/06/23 13:08:19
SLSCSI2 -12276 3368 125 0 06/06/23 13:08:19
MAPPER2 -12279 3496 147 0 06/06/23 13:08:19
IOTEST2 -12279 3648 1313 0 06/06/23 13:08:19
PERFVER2 -12279 4968 557 0 06/06/23 13:08:19
PVCU -12801 5528 64 0 06/06/23 13:08:19
SSINFO -12286 5592 2 0 06/06/23 13:08:19
ISL -12800 5600 306 0 02/05/10 16:25:44
AUTO -12289 5912 1 0 02/05/10 16:25:44
HPUX -12928 5920 848 0 02/05/10 16:25:44
PAD -12290 6768 1580 0 02/05/10 16:25:45
LABEL BIN 8352 8 0 06/11/14 14:48:25

root # lifls -l /dev/rdsk/c3t2d0
volume ISL10 data size 7984 directory size 8 02/05/10 16:25:44
filename type start size implement created
===============================================================
ISL -12800 584 306 0 02/05/10 16:25:44
AUTO -12289 896 1 0 02/05/10 16:25:44
HPUX -12928 904 848 0 02/05/10 16:25:44
PAD -12290 1752 1580 0 02/05/10 16:25:45
LABEL BIN 3336 8 0 06/12/07 11:45:21

Thanks
Vinod Kumar yadav
Jai Shiv Shankar
Roopesh Francis_1
Trusted Contributor

Re: finding boot disk

please use below command to findout booted root disk
For ITANIUM,
echo "bootdev/x" | adb -n /stand/vmunix /dev/kmem

from the output
# ll /dev/dsk/* | grep -i

For PA-RISC
echo "boot_string/S" | adb -n /stand/vmunix /dev/kmem

You can get configured primary & secondary disk in the system by setboot -v command

Roopesh Francis_1
Trusted Contributor

Re: finding boot disk

HI guys,

there would be corruption in my previouse post

please see the original below

For ITANIUM,
echo "bootdev/x" | adb -n /stand/vmunix /dev/kmem

from the output
# ll /dev/dsk/* | grep -i

For PA-RISC
echo "boot_string/S" | adb /stand/vmunix /dev/kmem

You can get configured primary & secondary disk in the system by setboot -v command
Shiv007
Frequent Advisor

Re: finding boot disk

Hi,

try "lvlnboot -v" to get the Physicla Disk Path which the system is booted up with.

also you can use setboot, but this might not guarentee you of the disk you are booted with.

thanks
Shi
Suraj K Sankari
Honored Contributor

Re: finding boot disk

Hi,

Please assign some points who give there valuable time for your problem.

To know how to assign points please go through the below link.


http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj