1833758 Members
2606 Online
110063 Solutions
New Discussion

Boot Disk checking

 
SOLVED
Go to solution
vjta
Regular Advisor

Boot Disk checking

Dear All,
Pls tell me how to check boot device in os
The way in which i thought i am confusing

As per me:
#bdf
/dev/vg00/lvol3 2097152 977176 1111272 47% /
/dev/vg00/lvol1 2051553 268195 1578202 15% /stand
.
.
.

so /stand will be boot device i.e. /ev/vg00/lvol1

now if i seen lvdisplay of /dev/vg00/lvol1

by command

#lvdisplay -vk /dev/vg00/lvol1 |grep /dev/|tail +3

its showing :

/dev/disk/disk7_p2 64 64
/dev/disk/disk9_p2 64 64

so my boot disk is disk7 & disk9

but now as i m seeing thru
#setboot -v

Primary bootpath : 4/0/1/1/0.0x0.0x0 (/dev/rdisk/disk12)
HA Alternate bootpath :
Alternate bootpath : 4/0/8/1/0.0x0.0x0 (/dev/rdisk/disk15)
.
.
.

so boot disk is: 4/0/1/1/0.0x0.0x0 (/dev/rdisk/disk12)

HA Alternate bootpath :
Alternate bootpath : 4/0/8/1/0.0x0.0x0 (/dev/rdisk/disk15)

now as i seen through :

#ioscan -m dsf | grep disk12

/dev/rdisk/disk12 /dev/rdsk/c0t0d0
/dev/rdisk/disk12_p1 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk12_p2 /dev/rdsk/c0t0d0s3
/dev/rdisk/disk12_p3 /dev/rdsk/c1t2d0

#ioscan -m dsf | grep disk7

/dev/rdisk/disk7 /dev/rdsk/c0t0d0
/dev/rdisk/disk7_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk7_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk7_p3 /dev/rdsk/c0t0d0s3

so are they alternate link.
Also pls tell thru "lssf"
Pls put ur views as i m new in this field.

Thanx in Advance

with regards
Vjta
Vijeta Bhedi
16 REPLIES 16
Ivan Krastev
Honored Contributor

Re: Boot Disk checking

Use:


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


regards,
ivan
Jeeshan
Honored Contributor
Solution

Re: Boot Disk checking

Hi

Try to chek the command

#lvlnboot â v

it will show you the boot disks.
a warrior never quits
whiteknight
Honored Contributor

Re: Boot Disk checking


Vjta

lvlnboot -v

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t5d0 (8/16/5.5.0) -- Boot Disk
/dev/dsk/c2t6d0 (8/16/5.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t5d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c2t5d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c2t5d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c2t6d0, 0


WK
Problem never ends, you must know how to fix it
vjta
Regular Advisor

Re: Boot Disk checking

dear ivan
by using that comand its giving error:

bootdev:
adb: warning: Unrecognized format character - 'X'.

thanks ahsan & wk ,but my problem is why its showing different thru setboot .

Thanks & regards
Vjta
Vijeta Bhedi
Adam Winebaugh
Regular Advisor

Re: Boot Disk checking

vijeta,
The simplest way is a lvlnboot -v your output will look similar to the below, if you have a mirror.

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c4t8d0 (1/0/4/1/0.8.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c4t8d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c4t8d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c4t8d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0



If you don't have a mirror you will only show one boot disk.
Ivan Krastev
Honored Contributor

Re: Boot Disk checking

What is your OS version and platform ?
I have posted for PA-RISC. For Integrity add '-o' after adb.

regards,
ivan
Ramesh S
Esteemed Contributor

Re: Boot Disk checking

Hi

Try this one,
#echo "boot_string/S" | adb /stand/vmunix /dev/kmem

lvlnboot -v, looks like
/dev/dsk/c2t5d0 (8/16/5.5.0) -- Boot Disk
/dev/dsk/c2t6d0 (8/16/5.6.0) -- Boot Disk

what is the outptu of,
strings /etc/lvmtab
ioscan -fnC disk
ioscan -m dsf
ioscan -m hwpath

Best Regards,
Ramesh
Tim Nelson
Honored Contributor

Re: Boot Disk checking

FYI,

this is 11.31 (indicated by the agile device naming od /dev/disk/diskxx) and the older adb strings do not work.

I have yet to find the correct ones for 11.31.

Torsten.
Acclaimed Contributor

Re: Boot Disk checking

#ioscan -m dsf | grep disk12

/dev/rdisk/disk12 /dev/rdsk/c0t0d0
/dev/rdisk/disk12_p1 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk12_p2 /dev/rdsk/c0t0d0s3
/dev/rdisk/disk12_p3 /dev/rdsk/c1t2d0

#ioscan -m dsf | grep disk7

/dev/rdisk/disk7 /dev/rdsk/c0t0d0
/dev/rdisk/disk7_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk7_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk7_p3 /dev/rdsk/c0t0d0s3




There is something wrong in the first ioscan result.
_p1 is mapped to s2 ???
_p2 to s3 and
_p3 to another disk?


Let's see what is the result of (please complete results):

# ioscan -fn
# strings /etc/lvmtab
# vgdisplay -v vg00
# ioscan -m dsf
# lvlnboot -v

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!   
vjta
Regular Advisor

Re: Boot Disk checking

dear ivan
my Os & Platform is:
HP-UX B.11.31 U ia64
Platform Info:
Model: "ia64 HP superdome server SD32B"

dear all
lvlnboot is the ok but my doubt is in ioscan section of this querry.

regards
Vjta
Vijeta Bhedi
vjta
Regular Advisor

Re: Boot Disk checking

Dear torsten
pls see the o/p:
ioscan -fn
disk 1 4/0/1/1/0.0.0 sdisk CLAIMED DEVICE COMPAQ BF14689BC5
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1
/dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3
.
.
disk 12 4/0/1/1/1.2.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-5170A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0

O/P of "strings /etc/lvmtab" :
/dev/vg00
/dev/disk/disk7_p2
/dev/disk/disk9_p2
/dev/vg01
/dev/disk/disk6
/dev/disk/disk10
/dev/vg02
/dev/disk/disk8
/dev/disk/disk11
/dev/vg03
/dev/dsk/c5t0d2

o/p of "vgdisplay -v vg00" :

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8694
Alloc PE 8000
Free PE 694
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 35840
Current LE 1120
Allocated PE 2240
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 640
Allocated PE 1280
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 320
Allocated PE 640
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 320
Allocated PE 640
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 40960
Current LE 1280
Allocated PE 2560
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 192
Allocated PE 384
Used PV 2


--- Physical volumes ---
PV Name /dev/disk/disk7_p2
PV Status available
Total PE 4347
Free PE 347
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk9_p2
PV Status available
Total PE 4347
Free PE 347
Autoswitch On
Proactive Polling On

o/p of "ioscan -m dsf "
Persistent DSF Legacy DSF(s)
========================================
.
.
/dev/rdisk/disk12 /dev/rdsk/c0t0d0
/dev/rdisk/disk12_p1 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk12_p2 /dev/rdsk/c0t0d0s3
.
/dev/rdisk/disk7 /dev/rdsk/c0t0d0
/dev/rdisk/disk7_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk7_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk7_p3 /dev/rdsk/c0t0d0s3
.
/dev/rdisk/disk12_p3 /dev/rdsk/c1t2d0
.
.

o/p of " lvlnboot -v"
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk7_p2 -- Boot Disk
/dev/disk/disk9_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk7_p2
/dev/disk/disk9_p2
Root: lvol3 on: /dev/disk/disk7_p2
/dev/disk/disk9_p2
Swap: lvol2 on: /dev/disk/disk7_p2
/dev/disk/disk9_p2
Dump: lvol2 on: /dev/disk/disk7_p2, 0



with above i know boot disk are :
/dev/disk/disk7_p2 AND /dev/disk/disk9_p2

but my doubt is why its showing in setboot as
Primary bootpath : 4/0/1/1/0.0x0.0x0 (/dev/rdisk/disk12)
HA Alternate bootpath :
Alternate bootpath : 4/0/8/1/0.0x0.0x0 (/dev/rdisk/disk15)

that means

/dev/rdisk/disk12 AND /dev/rdisk/disk15

pls clear

Thanks & regards
Vjta
Vijeta Bhedi
Sajjad Sahir
Honored Contributor

Re: Boot Disk checking

but my doubt is why its showing in setboot as
Primary bootpath : 4/0/1/1/0.0x0.0x0 (/dev/rdisk/disk12)
HA Alternate bootpath :
Alternate bootpath : 4/0/8/1/0.0x0.0x0 (/dev/rdisk/disk15)

that means

/dev/rdisk/disk12 AND /dev/rdisk/disk15


there is need of confusion u have to boot disk
first one is u primary boot path
second one is alternate one
u can change u boot disk
ok

thanks and regards

Sajjad
vjta
Regular Advisor

Re: Boot Disk checking

Dear sajjad
disk12 & disk15 are mirrored disk
& disk7 & disk9 are thier alternate links ?

pls tell how to check alternate link.

thanks & regards
Vjta
Vijeta Bhedi
Torsten.
Acclaimed Contributor

Re: Boot Disk checking

IMHO this doesn't fit together!

Remember, I said

"Let's see what is the result of (please complete results)".

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!   
vjta
Regular Advisor

Re: Boot Disk checking

Thanx to all


regards
vjta
Vijeta Bhedi
vjta
Regular Advisor

Re: Boot Disk checking

Thanx
Vijeta Bhedi