1846087 Members
3617 Online
110253 Solutions
New Discussion

Primary boot path

 
SOLVED
Go to solution
David Willams
Super Advisor

Primary boot path

How to change the primary Boot path
34 REPLIES 34
Rita C Workman
Honored Contributor

Re: Primary boot path

man setboot

setboot -p

Rgrds,
Rita
David Willams
Super Advisor

Re: Primary boot path

How will this affect the OS..

I have OS installed on this path.

* Setting primary boot path to "/dev/rdisk/disk10".
Primary boot path set to 1/0/2/2/0.0x4.0x0 (/dev/rdisk/disk10)
* Starting install of the source (HP-UX Core Software).

Does it mean the the OS is installed on this disk which is external to the server.

In this case I want the OS on the Internal drive of thee server.
Rita C Workman
Honored Contributor

Re: Primary boot path

Well if you say that disk (disk10) is external than...yes that is being set as the primary boot path.

But couldn't you let it go that way and then when it's done set up your boot mirror disk on an internal disk, and then switch the boot paths order afterwards.

Just a thought,
Rita
David Willams
Super Advisor

Re: Primary boot path

thats a good idea...

how to set up boot mirror disk on an internal disk.Is there a command to do this ??

Raj D.
Honored Contributor

Re: Primary boot path

David ,
Check this commands to mirror the boot disk: (Source Disk) , to another disk (Target Disk):

In the below example you have to enter SOURCE_DSK and TARGET_DSK details ,


################
#Enter the Target and Source disk "
TARGET_DSK="diskXX" #Example : disk12
SOURCE_DSK="diskYY" #Example : disk13

>/tmp/partfile ; echo "3 \nEFI 500MB \nHPUX 100% \nHPSP 400MB" > /tmp/partfile ; cat /tmp/partfile


idisk -wf /tmp/partfile /dev/rdisk/$TARGET_DSK


idisk /dev/rdisk/$TARGET_DSK

insf -eC disk

ioscan -efnC disk
efi_fsinit -d /dev/rdisk/$TARGET_DSK'_p1'

mkboot -e -l /dev/rdisk/$TARGET_DSK
> /tmp/AUTO.lq ; echo "boot vmunix -lq" > /tmp/AUTO.lq ; cat /tmp/AUTO.lq

efi_cp -d /dev/rdisk/$TARGET_DSK'_p1' /tmp/AUTO.lq /EFI/HPUX/AUTO

>/tmp/x1 ; efi_cp -d /dev/rdisk/$TARGET_DSK'_p1' -u /EFI/HPUX/AUTO /tmp/x1 ; cat /tmp/x1
pvcreate -fB /dev/rdisk/$TARGET_DSK'_p2'
vgextend vg00 /dev/disk/$TARGET_DSK'_p2'

strings /etc/lvmtab | head -n 5 ; echo ""


#checking EFI details on both disks:

efi_ls -d/dev/rdisk/$TARGET_DSK'_p1' EFI/
echo ""
efi_ls -d/dev/rdisk/$SOURCE_DSK'_p1' EFI/
echo "----------------------------------------"


####
echo "Press any key to start Mirroing the lvols... "
read ans
#11: Mirror the LV's of the $TARGET_DSK's _p2 partition .
echo "7.Mirroring the LV's of the $TARGET_DSK's _p2 partition .."

for i in `vgdisplay -v /dev/vg00 | grep lvol | awk '{print $3}' `
do
echo "Mirroring LVOL = $i "
lvextend -m 1 $i /dev/disk/$TARGET_DSK'_p2'
echo "Mirroring Done for $i."
echo "----------------------------"
done



#: Write the content of the LABEL file , i.e set root/boot/swap & dump.

lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00

lvlnboot -v ; echo "\n\n" ; sleep 2 ; setboot -b on ; setboot
# Set the Alternate boot disk path with setboot.



echo " You can reboot and verify with the ALT disk. "
echo " ROOT DISK M I R R O R I N G P R O C E S S C O M P L E T E D. * * * "
#__________________________________________________________________________________________





Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Andrew Rutter
Honored Contributor

Re: Primary boot path

hi,

that mirroring procedure may or may not be right for you?

first you need to have the mirrodisk/ux software installed? have you? without this you cannot mirror like this

then do you have PA or IA type architecture server?

mirroring procedure is different for both systems

Andy
Raj D.
Honored Contributor

Re: Primary boot path

David,

What system do you have ,
Can you provide the output of :

# model
# swlist -l bundle | grep -i hpux | grep OE
# uname -a


* * Also make sure you have assigned points to all the responses who tried to help in this thread, and before closing the thread.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

this is an Integrity servers.... plz give me the procedure
David Willams
Super Advisor

Re: Primary boot path

model : rx7640
OS : 11.31
Raj D.
Honored Contributor

Re: Primary boot path

David,
The above procedure given is for 11.31 Integrity server, root disk mirror. Be careful to specify the source and target disk. Source is the current disk system is booted from.

Source Disk is the current boot disk.
lvlnboot -v vg00 , will show the current boot disk.

- Also string /etc/lvmtab , check the disk under vg00 , that is the current boot disk.

- You can pickup the other disk for mirroring from the internal harddisk (ioscan -fnC disk ) , and go ahead with the mirroring steps.



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

Raj,

is that a script to run...

David Willams
Super Advisor

Re: Primary boot path

fs0 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part1,Sig33D59DF8-376F-11DB-8002-D6217B60E588)
fs1 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part3,Sig33D59E34-376F-11DB-8004-D6217B60E588)
fs2 : Acpi(HWP0002,PNP0A03,102)/Pci(1|0)/Scsi(Pun8,Lun0)/HD(Part1,Sig266DCC6A-93F3-11DE-8000-D6217B60E588)
fs3 : Acpi(HWP0002,PNP0A03,102)/Pci(1|0)/Scsi(Pun8,Lun0)/HD(Part3,Sig266DCCD8-93F3-11DE-8000-D6217B60E588)
blk0 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)
blk1 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part1,Sig33D59DF8
-376F-11DB-8002-D6217B60E588)
blk2 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part2,Sig33D59E16
-376F-11DB-8003-D6217B60E588)
blk3 : Acpi(HWP0002,PNP0A03,100)/Pci(3|0)/Scsi(Pun6,Lun0)/HD(Part3,Sig33D59E34
-376F-11DB-8004-D6217B60E588)
Shell> : Acpi(HWP0002,PNP0A03,100)/Pci(3|1)/Scsi(Pun2,Lun0)


I have the above and when my system boots up.... it picks on 11.23 instaed of 11.31...

when I go to efi and go to fs1>hpux ... now it goes to 11.31...

So looks like some thing to do with the booth path...

Now I want the system to pickup 11.31 and not 11.23...
David Willams
Super Advisor

Re: Primary boot path

when i runt he script i get the following error


Syntax error at line 61 : `"' is not matched.
David Willams
Super Advisor

Re: Primary boot path

I have the following errors after I run the script:-


7.Mirroring the LV's of the 's _p2 partition ..
Mirroring LVOL = /dev/vg00/lvol1
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol1.
----------------------------
Mirroring LVOL = /dev/vg00/lvol2
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol2.
----------------------------
Mirroring LVOL = /dev/vg00/lvol3
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol3.
----------------------------
Mirroring LVOL = /dev/vg00/lvol4
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol4.
----------------------------
Mirroring LVOL = /dev/vg00/lvol5
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol5.
----------------------------
Mirroring LVOL = /dev/vg00/lvol6
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol6.
----------------------------
Mirroring LVOL = /dev/vg00/lvol7
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol7.
----------------------------
Mirroring LVOL = /dev/vg00/lvol8
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol8.
----------------------------
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk9_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk9_p2
Root: lvol3 on: /dev/disk/disk9_p2
Swap: lvol2 on: /dev/disk/disk9_p2
Dump: lvol2 on: /dev/disk/disk9_p2, 0




Primary bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)
Alternate bootpath :

Autoboot is ON (enabled)
David Willams
Super Advisor

Re: Primary boot path

I have the following ioscan:-

I have hpux 11.31 running on disk9. But somehow when i boot the server... it is picking up some other disk on which 11.23 is installed...

# ioscan -fnkNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 6 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/disk/disk6 /dev/disk/disk6_p2 /dev/rdisk/disk6 /dev/rdisk/disk6_p2
/dev/disk/disk6_p1 /dev/disk/disk6_p3 /dev/rdisk/disk6_p1 /dev/rdisk/disk6_p3
disk 7 64000/0xfa00/0x1 esdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/disk/disk7 /dev/rdisk/disk7
disk 8 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/disk/disk8 /dev/rdisk/disk8
disk 9 64000/0xfa00/0x3 esdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/disk/disk9 /dev/disk/disk9_p2 /dev/rdisk/disk9 /dev/rdisk/disk9_p2
/dev/disk/disk9_p1 /dev/disk/disk9_p3 /dev/rdisk/disk9_p1 /dev/rdisk/disk9_p3
David Willams
Super Advisor

Re: Primary boot path

could someone help on this plz
David Willams
Super Advisor

Re: Primary boot path

# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk9_p2
Raj D.
Honored Contributor
Solution

Re: Primary boot path

David,
If the disk9 is having 11.31 , so it has to be set as primary boot disk. Which is currently not.

As per the above setboot output it is pri boot disk refering to disk6.

You can do below to set pri boot path:

# setboot -p /dev/rdisk/disk9

To check again with:
# setboot



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

I have a different script which when used... gives the following error:-


Please Enter original Root disk device file : /dev/rdsk/disk9
Please Enter disk device file to be mirrored : /dev/rdsk/disk6



Original Root Disk : /dev/rdsk/disk9
Mirror Disk: /dev/rdsk/disk6

Confirm your selection are correct : [Y/N] Y
Started mirroring
Init disk with DD (For safety)
3662+1 records in
3662+1 records out
pvcreate -B
Couldn't stat physical volume "/dev/rdsk/disk6":
pvcreate: Couldn't open physical volume "/dev/rdsk/disk6":
No such file or directory
ERROR pvcreate of disk6
Raj D.
Honored Contributor

Re: Primary boot path

It looks like the above steps trying dd to mirror the boot disk, However boot disk mirroring can not be done with dd .



Check this document 'page 81' , for boot disk mirror for Integrity system:

http://docs.hp.com/en/5992-4589/5992-4589.pdf



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Primary boot path

You are trying /dev/rdsk/disk6
It should be /dev/rdisk/disk6

" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

Now I have the following error:-

Please Enter original Root disk device file : /dev/rdsk/c4t8d0
Please Enter disk device file to be mirrored : /dev/rdsk/c0t6d0



Original Root Disk : /dev/rdsk/c4t8d0
Mirror Disk: /dev/rdsk/c0t6d0

Confirm your selection are correct : [Y/N] Y
Started mirroring
Init disk with DD (For safety)
3662+1 records in
3662+1 records out
pvcreate -B
Creating "/etc/lvmtab_p".
Physical volume "/dev/rdsk/c0t6d0" has been successfully created.
Extending VG00 for mirroring (vgextend)
vgextend: Warning: Max_PE_per_PV for the volume group (4356) too small for this PV (4375).
Using only 4356 PEs from this physical volume.
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Boot Programme of Mirror copy (mkboot)
Bringing-up LIF Area of Mirror (mkboot)
-a specified but no current boot area on /dev/rdsk/c0t6d0
ERROR copying the LIF
Raj D.
Honored Contributor

Re: Primary boot path

Why not use agile addressing (i.e /dev/rdisk/disk6) as per the document to mirror the disk6 with boot disk disk9.

Please take a look page81 of the document ,
http://docs.hp.com/en/5992-4589/5992-4589.pdf

Start from the scratch and you will be done.

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
David Willams
Super Advisor

Re: Primary boot path

raj,

I have run your script now....

# sh diskdisk
3
EFI 500MB
HPUX 100%
HPSP 400MB
idisk version: 1.44
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? y
User Aborting!
idisk version: 1.44
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
insf: Installing special files for sdisk instance 0 address 1/0/0/3/0.6.0
insf: Installing special files for sdisk instance 1 address 1/0/0/3/1.2.0
insf: Installing special files for sdisk instance 2 address 1/0/1/1/0/4/1.6.0
insf: Installing special files for sdisk instance 3 address 1/0/2/1/0.8.0
insf: Installing special files for sdisk instance 4 address 1/0/2/1/0.10.0
insf: Installing special files for sdisk instance 5 address 1/0/4/1/0.1.0
insf: Installing special files for esdisk instance 6 address 64000/0xfa00/0x0
insf: Installing special files for esdisk instance 7 address 64000/0xfa00/0x1
insf: Installing special files for esdisk instance 8 address 64000/0xfa00/0x2
insf: Installing special files for esdisk instance 9 address 64000/0xfa00/0x3
insf: Installing special files for esdisk instance 10 address 64000/0xfa00/0x4
insf: Installing special files for esdisk instance 11 address 64000/0xfa00/0x5


efi_fsinit: open device failed(errno = 5)
You must first run idisk to create EFI and HP-UX partitions.
boot vmunix -lq
efi_cp: open device failed(errno = 5)
Invalid EFI partition: /dev/rdisk/disk9_p1
efi_cp: open device failed(errno = 5)
pvcreate: Couldn't open physical volume "/dev/rdisk/disk9_p2":
I/O error
Couldn't open physical volume "/dev/rdisk/disk9_p2":
Verification of unique LVM disk id on each disk in the volume group
vg00 failed.
/dev/vg00
/dev/disk/disk9_p2
/dev/dsk/c0t6d0

efi_ls: open device failed(errno = 5)

efi_ls: open device failed(errno = 5)
----------------------------------------
Press any key to start Mirroing the lvols...


{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol5.
----------------------------
Mirroring LVOL = /dev/vg00/lvol6
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol6.
----------------------------
Mirroring LVOL = /dev/vg00/lvol7
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol7.
----------------------------
Mirroring LVOL = /dev/vg00/lvol8
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [PhysicalVolumePath ... | PhysicalVolumeGroupName ...]
"m": Illegal option.
Mirroring Done for /dev/vg00/lvol8.
----------------------------
lvlnboot: Physical Volume "/dev/disk/disk9_p2" on which Logical
Volume "/dev/vg00/lvol3" resides is not a Boot Physical Volume.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk9_p2
/dev/dsk/c0t6d0 -- Boot Disk
Root: lvol3 on: /dev/disk/disk9_p2
Swap: lvol2 on: /dev/disk/disk9_p2
Dump: lvol2 on: /dev/disk/disk9_p2, 0




setboot: error accessing boot path - Invalid argument
setboot: Check if boot path is to a valid boot device
Primary bootpath : 1/0/2/1/0.0x8.0x0 (/dev/rdisk/disk9)
HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)
Alternate bootpath :

Autoboot is ON (enabled)
You can reboot and verify with the ALT disk.
ROOT DISK M I R R O R I N G P R O C E S S C O M P L E T E D. * * *



I am in trouble now... plz help