Operating System - HP-UX
1825768 Members
3533 Online
109687 Solutions
New Discussion

want to build different 0/S on different h/w path

 
SOLVED
Go to solution
hi_5
Frequent Advisor

want to build different 0/S on different h/w path

Currently, i have 11i O/S mirror to EMC disk. I was able to boot from internal and external disk without any problems. For testing purposes, I want to have the external or internal disk to be booting on 11.0. Is there any restriction on how to do this? If possible, could you help me to lay out the procedure on how to do so?
Thanks for your suggestion and your time.
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: want to build different 0/S on different h/w path

You should have no problem with this so long as the drive is connected and the system can see it.

To boot off the alternate volume, you'll probably need to intervene ato boot time off the console.

Interupt at the 10 second prompt.

sea

bo p#

replace # with the number of the alternate boot drive.

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
S.K. Chan
Honored Contributor

Re: want to build different 0/S on different h/w path

As long as you know which disks are currently loaded with 11i so that you don't overwrite them, there should not be any restriction. See this thread which talks about the "dual-boot" process. I mentioned something about how non-vg00 import if you have any of these configured.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83717cffe265d711abdc0090277a778c,00.html
Helen French
Honored Contributor
Solution

Re: want to build different 0/S on different h/w path

It's simple if you just wanted to load 11.0 on an internal or external disk. Just boot from the CD and when prompted, give the h/w path of your disk as the root disk.

But if you are talking about the same internal and external disks which you now use as 11i root disks (mirrors), then you need to break the mirror. Then determine which one you wanted as 11i and which as 11.0. If you have additional disks, you can make mirror disks too.

In both cases, you may vgimport all VGs and disks, create mount points and access your data.
Life is a promise, fulfill it!
hi_5
Frequent Advisor

Re: want to build different 0/S on different h/w path

Hello all,
currently, my o/s is mirroring to the same device, both of my internal and external are currently on 11.i O/S. Now I want to take the
external disk and boot it to 11.0? As you mention, I have to break the mirror to do so, would you give me more details. Once the mirror has broken, the external disk is available for other usuage. do I have to do anything to it? such pvcreate -f -B etc???
S.K. Chan
Honored Contributor

Re: want to build different 0/S on different h/w path

To break the mirror ..(the example use c2t2d0)..
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t2d0
==> Repeat for all other vg00 LVs.
# vgreduce vg00 /dev/dsk/c2t2d0
# lvlnboot -v
==> Check to make sure they are gone (the mirrored LVs).

If you're loading 11.0 from the CD onto c2t2d0, there is no need to run pvcreate prior to it.
Helen French
Honored Contributor

Re: want to build different 0/S on different h/w path

First, I wouldn't do this if it's just a test. Instead of disturbing the existing root disks, I would choose another free disk in the system and load 11.00 on it.

But to answer your question, yes you need to follow certain steps to accomplish the task. Read this thread which was opened by me a while ago (read the steps to break the mirror, vg backups, lvreduce, free disk etc):

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf1c5a2db8513d6118ff40090279cd0f9,00.html

You may not require all the steps, but you will get a good idea what to do!
Life is a promise, fulfill it!
hi_5
Frequent Advisor

Re: want to build different 0/S on different h/w path

IS the order of lvreduce important, because when i did the mirroring of the O/S, the order of lvextend is important ...
so once the lvreduce of the mirror is done,
reboot the system, and interrupt the boot prompt and give it the h/w path of the disk that was reduce from vg00?
S.K. Chan
Honored Contributor

Re: want to build different 0/S on different h/w path

==> Order of lvreduce..
No, the order of lvreduce is not important. However the order of lvextend is important because when you mirror you got to make sure /,/stand and pri-swap are contigous. In lvreduce you're "deleting" them so the order should not matter.
==> Boot prompt ..
Yes give it the hw path of the disk that was reduced (or removed) from the 11i vg00.
Helen French
Honored Contributor

Re: want to build different 0/S on different h/w path

The order of lvreduce is not very important, but I will do /stand, / and swap at the last. Remember to check the output of lvlnboot -v before you reboot the system. It should show only one boot disk at that time. When you reboot, give the *freed* disk as new (11.0) root disk when prompted by install screen.
Life is a promise, fulfill it!
hi_5
Frequent Advisor

Re: want to build different 0/S on different h/w path

let me recap the steps that i plan to do :
1. lvreduce -m 0 for all lvol in vg00
2. vgreduce the disk in vg00
3. lvlnboot to make sure it has only 1 disk
4. vgexport -m map file to a different system
5. vgdisplay and bdf to check
6. load 11.0 on the free device

------------
my next questions are :
- so currently, i have two different O/S on 2 separate h/w paths. I now want to mirror these vg00 in case i need to do any patch update or anythings. I should be able to do this using the procedure on how to create mirror for vg00. Because of your forum, i was successfully doing that.
- this might be a silly question, but i got to ask :
as for single 0/s , we have 2 h/w path the primary and the secondary using mirror to mirror the os. so one can boot to either the primary and secondary disk to the same 0/s.
since, now i have configure 2 dual boot on the same system, I should be able to mirror the O/S ?
so for example :
- currently boot O/S 11i on the primary boot,
then do lvextend for mirroring. set the alternative boot device, and reboot the sytem to tetst whether or not it works
- now I want to boot the 0/s to 11.0, reboot
the system, interrupt the boot prompt , and now i can give it the hardware path for the disk that has the 11.0 0/s on it and boot it from there? Is this correct? Once it has booted successfully i can mirror this 0/s
S.K. Chan
Honored Contributor

Re: want to build different 0/S on different h/w path

The plan looks right. You would only need the vgexport -m step if you wanted to import you non-vg00 later. If all you need is the map (not actually doing the export) then add a "-p" (preview) option to it. For the other question ..
Yes having dual boot (dual OS'es) does not stop you from performing your usual vg00 mirror/ux process. They remain the same. Basically you can have ..
diskA - 11i - primary boot
diskB - 11i - secondary boot
diskC - 11.0 - primary boot
diskD - 11.0 - secondary boot
Remember to use "setboot" command everytime you make the changes so that you will always boot up from the correct hw path. For exmple you DO NOT want to set diskA as you primary path and diskC or diskD as your secondary boot path.
S.K. Chan
Honored Contributor

Re: want to build different 0/S on different h/w path

The plan looks right. You would only need the vgexport -m step if you wanted to import you non-vg00 later. If all you need is the map (not actually doing the export) then add a "-p" (preview) option to it. For the other question ..
Yes having dual boot (dual OS'es) does not stop you from performing your usual vg00 mirror/ux process. They remain the same. Basically you can have ..
diskA - 11i - primary boot
diskB - 11i - secondary boot
diskC - 11.0 - primary boot
diskD - 11.0 - secondary boot
Remember to use "setboot" command everytime you make the changes so that you will always boot up from the correct hw path. For exmple you DO NOT want to set diskA as you primary path and diskC or diskD as your secondary boot path.
Helen French
Honored Contributor

Re: want to build different 0/S on different h/w path

You donot need to vgexport anything. If you took it from my old thread, that was an upgrade and it does wanted a vgexport. In your case, you just need to make some map files with -p (preview only and not an actual export) and copy it to a tape or other system.

For your questions, if I understand it correctly, then you can do that. Boot from 11i, make your mirror disk. Boot from 11.00 make your mirror disk. You cannot make mirror to the disk which you are using for booting from another OS. If all of them are seperate disks, you are goot to go.

I would make sure that I will have a good recovery tape before doing all these.
Life is a promise, fulfill it!