Operating System - HP-UX
1838727 Members
6858 Online
110129 Solutions
New Discussion

Disable alternate boot path / boot only from primary

 
SOLVED
Go to solution
dark-sun
Frequent Advisor

Disable alternate boot path / boot only from primary

Hello,
I just make some tests on a (11i) system. So I "found out", that HPUX will boot automatically boot from alternate boot path, if the primary path not works (normally this will be correct and fine).

Actuell I splitt the root-VG (LV's), so the root data are save (still on not mirrored mirror), when I install patches etc.
In case of a big problem (f.e. /stand/vmunix moved away), HPUX will use automatically the alternate bootpath and everything looks OK.

How can I configure the system, that the information about the alternate bootpath was deleted? (I know, booting interactive I can say "use primary bootpath")
In #lvlnboot and #setboot I can't find an option to remove the deposited alternate bootinformations.
Will be enshure (and without have a look on the console) that system use "original", new data and not the old (splitted) data/LV's.

Michael
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: Disable alternate boot path / boot only from primary

Hi Michael:

I don't believe that you can null the alternate boot path. However, you can specify a tape or CD/DVD device path as your alternate.

Regards!

...JRF...
RAC_1
Honored Contributor
Solution

Re: Disable alternate boot path / boot only from primary

Set primary and laternate boot path to same disk. Should work.
There is no substitute to HARDWORK
dark-sun
Frequent Advisor

Re: Disable alternate boot path / boot only from primary

OK,
I set the alt and prim bootpath with #setboot to the same device, but the system still boot fine:
# setboot
Primary bootpath : 0/0/2/0.2.0
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)
-------------------------
But lvlnboot still have the splitted mirror information, so I think he boots successfully from the mirror:
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
--------------------------------

# ls /stand/vm* => show no bootimage!
/stand/vmunix.moved /stand/vmunix.prev

But server is coming up ;-)
---------------------
How can I disable the c1-Device as bootable, in ISL-mode? Command-line (with #lvlnboot I didn't find an option)

Michael
IT_2007
Honored Contributor

Re: Disable alternate boot path / boot only from primary

you have to disable AUTOBOOT and AUTOSEARCH to OFF. you can do this by setboot command.

setboot -b off -s off /dev/rdsk/altdisk

setboot -v

should show both are off.
IT_2007
Honored Contributor

Re: Disable alternate boot path / boot only from primary

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
================================

You can check with which disk been booted ..

echo "boot_string/S" |adb /stand/vmunix /dev/mem

if it is vpar then use /dev/kmem
dark-sun
Frequent Advisor

Re: Disable alternate boot path / boot only from primary

vmunix not exists actuall, only vmunix.moved:
# echo "boot_string/S" |adb /stand/vmunix.moved /dev/kmem
boot_string:
boot_string: disk(0/0/2/0.2.0.0.0.0.0;0)/stand/vmunix
---------------

#lvdisplay /dev/vg00/lvol1:
LE PV1 PE1 Status 1
00000 /dev/dsk/c1t2d0 00000 current

-------------

So, what was the actuall booting device? c1 or c2 ?

IT_2007
Honored Contributor

Re: Disable alternate boot path / boot only from primary

vmunix not exists actuall, only vmunix.moved:
# echo "boot_string/S" |adb /stand/vmunix.moved /dev/kmem
boot_string:
boot_string: disk(0/0/2/0.2.0.0.0.0.0;0)/stand/vmunix
---------------

#lvdisplay /dev/vg00/lvol1:
LE PV1 PE1 Status 1
00000 /dev/dsk/c1t2d0 00000 current

-------------

So, what was the actuall booting device? c1 or c2 ?
==================================

When you run adb command against vmunix.moved kernel above shows it booted off from c2 device. Is it really a soft link to vmunix in /stand. can you post ll /stand.
It seems this is a vpar. Am I correct? If so, then setboot won't work. You can change boot paths using parmodify command. What Priamy, alternate and HA available paths set for?
dark-sun
Frequent Advisor

Re: Disable alternate boot path / boot only from primary

No, we have no vpar or something like this.

Here is the output:
# ll /stand/vm*
-rwxr-xr-x 1 root sys 27188528 Jul 17 13:19 /stand/vmunix.moved
-rwxr-xr-x 1 root sys 27188512 Feb 7 2006 /stand/vmunix.prev
-----

After disable the autosearch and autoboot, I try and saw, only c2 is bootable.

Before I make any changes on the system. I make:
# setboot
Primary bootpath : 0/0/2/0.2.0 (c2)
Alternate bootpath : 0/0/1/1.2.0 (c1)

- Than I type #lvsplit /dev/vg00/lvol[1-7]
- Than I move the kernel to vmunix.moved
- Reboot

Now I'm wondering: It seems, that (when I start my tests) the system was running from the alternate boot path, because when I now reboot, only from c2 is vmunix accessable/bootable. I thouhgt, I move from primary path (c2) the kernel away. But c2 still works/boots.
What happens?

Michael
IT_2007
Honored Contributor

Re: Disable alternate boot path / boot only from primary

Move all vm* files from /stand to someother directory and see