HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check primary and secondary boot disk

 
SOLVED
Go to solution
HPOPSW
Advisor

How to check primary and secondary boot disk

How to check primary and secondary boot disk
6 REPLIES
Ganesan R
Honored Contributor
Solution

Re: How to check primary and secondary boot disk

Hi,

setboot command will give you the details.
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: How to check primary and secondary boot disk

Shalom,

lvlnboot -v

That will display current configuration.

The only way to be sure you can boot off the drive though is to test booting off the drive.

Full soft boot mirror procedure below (overkill)

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sharma Sanjeev
Respected Contributor

Re: How to check primary and secondary boot disk

Hi

lvlnboot -v
setboot will show H/W path

Regards
Sanjeev

Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Johnson Punniyalingam
Honored Contributor

Re: How to check primary and secondary boot disk

>>How to check primary and secondary boot disk<<

lvlnboot -v

Example :-

3 lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t6d0 (0/0/2/1.6.0) -- Boot Disk
/dev/dsk/c1t6d0 (0/0/2/0.6.0) -- Boot Disk


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
rleon
Regular Advisor

Re: How to check primary and secondary boot disk

depending on the system ..
to see which boot disk you booted from:

echo 'boot_string/s' | adb /stand/vmunix /dev/mem
HPOPSW
Advisor

Re: How to check primary and secondary boot disk

Thanks All for your help