1748210 Members
2749 Online
108759 Solutions
New Discussion юеВ

Re: 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!