Operating System - HP-UX
1829420 Members
2238 Online
109991 Solutions
New Discussion

Re: setting alternate boot path in HP-UX B11.23

 
SOLVED
Go to solution

setting alternate boot path in HP-UX B11.23

Hi all, I have an rx2620 running HP-UX B11.23.
OS has been installed on /dev/dsk/c2t1d0 and mirrored to /dev/dsk/c2t0d0 using LVM.
The ioscan shows two disks:
/dev/dsk/c2t0d0 at 0/1/1/0.0.0
/dev/dsk/c2t1d0 at 0/1/1/0.1.0

lvlnboot -v shows:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0

The primary boot path is
# setboot
Primary bootpath : 0/1/1/0.1.0

So now I figure that I should set the system to boot from the 'other' member of the mirror.

When I try to set the alternate boot path , I get the following:
# setboot -a 0/1/1/0.0.0
setboot: error accessing boot path - Invalid argument

Question: Is my reasoning correct and if so how do I set the alternate boot path to the disk at path 0/1/1/0.0.0
11 REPLIES 11
Devender Khatana
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

Hi,

I doubt that your mirror is correct. You do not have slice created on the disk. Did you used 11.23 procedure to mirror?

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

Hi,

Check these threads for a good solution,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=414827
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990079

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

Hi,

The command for setboot is correct but the procedure for mirroring seems to be wrong. It is mentioned here have a look

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

See page 26 Onwards.

HTH,
Devender
Impossible itself mentions "I m possible"
Sivakumar TS
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23


Hi,

If it ok to have a reboot of the server,

pls reboot the server,

get PDC>

do a PDC> SEARCH IPL

now you get the list of BOOTABLE disks

and from here you can change the PRI and ALT path,

With Regards,

Siva.
Nothing is Impossible !
Bharat Katkar
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

Hi Frank,
I tried follwing things on my setup.

# setboot
Primary bootpath : 0/1/1/0.0.0
HA Alternate bootpath :
Alternate bootpath : 0/0/3/0

Autoboot is ON (enabled)

# setboot -a 0/1/1/0.1.0
#
# setboot
Primary bootpath : 0/1/1/0.0.0
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.1.0

# setboot -a 0/0/3/0
setboot: "0/0/3/0" is not a proper bootpath


As seen above if you use wrong path it sepcifically tells u that path is not proper or invalid.

I doubt if the disk you are referring to has corrupt boot area or may be some mirroring issues.

Regards,

You need to know a lot to actually know how little you know
Devender Khatana
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

Hi,

I have been repeating that the second stand is not on the device file with s2 in the end, which means the slice (EFI) partition has not been created on the disk. I doubt that the procedure for a PA-RISC mirroring has been followed to mirror the boot disk. Correct me if I am wrong.

HTH,
Devender
Impossible itself mentions "I m possible"
Lolupee
Regular Advisor
Solution

Re: setting alternate boot path in HP-UX B11.23

Frank,
you did not use the procedure to mirror a Itanium server drive.

If you did, the alternate drive should use section 2 i.e /dev/dsk/c2t0d0s2.

Please, use this link
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576


Andrew Rutter
Honored Contributor

Re: setting alternate boot path in HP-UX B11.23

hi,

devender is correct and spotted it straight away.
these should both report s2 for the boot partition
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk

you need to first partition the disk with idisk and and populate the efi partition as well as doing lvm mirroring
time to start again im afraid

Andy

Re: setting alternate boot path in HP-UX B11.23

I definitely did NOT use the 11.23 procedure. I now have a copy of that procedure and will apply it in a short while. Will let you know how it goes. thanks. frank

Re: setting alternate boot path in HP-UX B11.23

Good news all. I followed the procedure in the link provided by Lolupee and everything went smoothly. I can now set my alternate path and even better, I can boot from it!!!
Before I started the new procedure, I undid all the nonsense that I previously did (using lvreduce followed by vgreduce).
Thanks all. regards frank

Re: setting alternate boot path in HP-UX B11.23

complete solution is given in the link provided by Lolupee