1849569 Members
6041 Online
104044 Solutions
New Discussion

Re: Duel boot

 
SOLVED
Go to solution
Etienne Holm
Frequent Advisor

Duel boot

Deciding to do a "duel boot" adding a second disk to the server and cold install 11 on that disk leaving the original disk at 10.20.
What is involved in doing this ?
Where can I find more information on how to do this?
What is the risks involved?
12 REPLIES 12
Phil Daws_1
New Member

Re: Duel boot

Add a new disk to the system. Make a note of the current boot path. Slap in your CD and install UX11 to the new disk. Once complete the system will not boot straight into UX11 I think ;) If you interrupt the ISL you can then boot from the 10.20 disk. You can always turn of AutoBoot so that you decide which system to boot into.
Ian Dennison_1
Honored Contributor

Re: Duel boot

You can switch the Primary Boot Path within the PDC Code, and leave the 10.20 disk spinning in the System as a Alternate Boot Path. This will give you a quick failover, but the disk could be overwritten by an enthusiastic sysadm.

If you are upgrading, will a OS Disk alone be enough to perform a quick reversion? If you are installing 11.0 Applications on the System, they will probably not work with a 10.20 Boot Disk.

Do you have Ignite-UX?

Can I ask what the end result you hope achieve is? Fast reversion to 10.20 in case of failure?

Share and Enjoy! Ian
Building a dumber user
Animesh Chakraborty
Honored Contributor

Re: Duel boot

Hi,
Set alternate boot path at ISL for the 2nd hard disk then do
bo pri or bo alt as you desire.
For ISL commands see the link
http://us-support.external.hp.com/cki/bin/doc.pl/sid=c0d5130c0387d9d414/screen=ckiDisplayDocument?docId=200000057066314
Did you take a backup?
Etienne Holm
Frequent Advisor

Re: Duel boot

I am intending to do a upgrade from 10.20 to 11
after posting a question it was pointed out it is best to do a cold install of 11 and as a second option have 1 disk at 10.20 and another at 11. This will give the opertunaty to import the settings from the old vg00. And a week later do a vgimport of the other filesystems and upgrade the applecations to run against v11
Santosh Nair_1
Honored Contributor

Re: Duel boot

Yes, its absolutely possible to dual boot HPUX 11.x and 10.20. As mentioned above, just install 11.x on a spare disk and make that disk your alternate boot disk and you should be able to boot back and forth between 10.20 and 11.0. You can also vgimport the original 10.20 volume group in 11.0 and copy over all your configuration files. You will however have to re-install all your HP apps with the equivalent 11.0 version.

-Santosh
Life is what's happening while you're busy making other plans
Wim Rombauts
Honored Contributor

Re: Duel boot

Hello,

I did my upgrade from 10.20 to 11.0 in exactly the same way :with a second boot disk, while the 10.20 disk remained operational.

So, a few thing to consider :

You will need some configuration data from your current root disk (/etc/passwd, /etc/group, /var/adm/inetd.sec, ...) In fact, you need to make yourself a list from all system files that you have modified. Copy them to a tar file and apply them to your 11.0 configuration.
It is *NOT* a good idea to just dump those files in your 11.0 configuration, because those files may not be the same as the ones you started from at 10.20. Always cut and past the part you need into the part that is supplied by default by the OS.
Therefor, it's not a good idea to just import the 10.20 vg00 into your 11.0 config.

Also, it's not a good idea to just import your software volume groups. Software not only installs in /opt, but mostly also in /var, /etc and sometimes in /usr/lib !! Some software is different for 10.20 and for 11.0. The best way is to just reinstall all software on your 11.0 configuration (this needs extra disk space of course). This way, you can get your 11.0 config fully operational and tested before you definitly switch to 11.0

By the way : your data LV's from 10.20 can easily be exported and imported into 11.0 and back again to 10.20. This is not supported by HP, but I tested it and it worked without a problem.
Etienne Holm
Frequent Advisor

Re: Duel boot

What files can I take over as it is and what files do I need to copy and past from?

All the software I would like to reinstall but the data I want to import from the other non root vg's. Do I need to do a vgexport of the volume groups in 10.20 before I install 11.
Wim Rombauts
Honored Contributor

Re: Duel boot

About the files to copy : I think nobody can tell this for sure. I should copu NO file at all, not even /etc/passwd, and check every file for differences with the "diff" command. This way you know where the differences are and where/what to cut and paste.

For instance : HP-UX 11.0 has a newer version of CDE, sendmail, DNS, ... Has another way of using /etc/nsswitch.conf and probably a couple of other files.
The best way to go throughit, is to start installing 11.0 and test every functionality, copy configuration files, cut & paste until you have everything as you want it to be.


For the data disks : I should do an export on 10.20 before importing them on 11.0, but as long as your are busy with your 11.0 system configuration and you don't need your data, there is no need for the data disks. Importing them into 11.0 can be done at any moment.

If I'm right, you just need the file that is created by vgexport, you don't need to really export the volumegroup (use the -p option). This way you can easily switch between 10.20 and 11.0, but take care not to reconfigure your filesystems on 11.0 or you will no longer be able to use then on 10.20 !
Roger Baptiste
Honored Contributor
Solution

Re: Duel boot

Hi,

I would like to reemphasize the point on
taking a make_recovery ignite tape of 10.20 before you start of this process.
Now to answer your question:

<>

Before you start the install of 11.00, take
the VG maps of the non-vg00 groups on 10.20 ;
vgdisplay -v >/tmp/info/vgv.out
cat /etc/fstab |grep -v vg00 >fstab.out
ll /dev/*/group >/tmp/info/vg-major-minor
(take a printout of this vg-major-minor file)
vgexport -v -f /tmp/info/vgxx.file -m /tmp/vgxx.map vgxx (for each non-root vg)

netstat -in >/tmp/info/netstat-in.out
netstat -r >/tmp/info/netstat-r.out
(note the IP address and router configuration)
***
This is all you would need *initially* before starting the 11.00 install. Save the above files on another accessible system or on a tape. Also take printouts of the netstat
and vgmajornumber output.

Install O/S and during install enter the network ip and router info as per the prinout you have. Now, that will bring up the system in 11.00. Once this is done, vgimport the non-vg00 info,
mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x??0000 (as per the printout)
vgimport -v -f /tmp/vgxx,file -m /tmp/mapfile
vgimport -p -v -m /tmp/1020vg /dev/vg00
(note the -p here)
**

Now, append the old fstab entries to the /etc/fstab file.

You can then mount the 10.20 vg00 as a separate vg by doing:
mkdir /dev/1020VG
mknod ..
vgimport -v -m /tmp/1020vg00 /dev/1020VG

You can mount the oldVG00 lvs with separate mountpoints: eg: mount /dev/1020VG/lvol1 /oldroot and so on.
Then, you can copy from the 1020 mountpoints:
the files under
/etc/rc.config.d/*
/sbin/init.d/*
/etc/passwd (append it selectively)
/etc/group
and anything else which you feel is needed.
Once you are sure all is done, unmount the 1020 mountpoints and knock of the 1020VG.


HTH
raj
Take it easy.
Etienne Holm
Frequent Advisor

Re: Duel boot

If I do not have ignite installed what is the best way around it then.

Is Ignite a seperate license I need to get or can I just get it from some where and install it
harry d brown jr
Honored Contributor

Re: Duel boot

There's no license key required for igniteux. You should have it available on the current sept 2001 cd's, or download it from:

http://software.hp.com/products/IUX/download.html

And as Rajman said, please do a make_recovery tape of your existing 10.20, and a data backup of your other volumes!


live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: Duel boot

Hi Etienne,

There should be no problem. However if you want to use the data /VG configured in 10.20, then you should do a vgexport under 10.20, backup the map file and once you have installed the 11.0 on another disk, do a vgimport from these map files. Now you should be able to access the VG/LV under both 10.20 and 11.0 depending on which disk you boot from.

Hope this helps.

Regds