Operating System - HP-UX
1824944 Members
3660 Online
109678 Solutions
New Discussion юеВ

HPUX10.20 and HPUX11.00 on the same station

 
HP chez GEMSE
Occasional Contributor

HPUX10.20 and HPUX11.00 on the same station

hi,
I have a HP9000/785 J5000 with three disks ( 9 and 9 and 18 )
this work with hpux10.20 on one disk and two VG.
VG 00 from the two 9 G disk with 6 LV "system" and one from
data, installed partially on the first disk and totaly on the second.
VG 02 is with the last disk and only this.

i want preserve hpux10.20 and installing hp11 on the second 9G disk and booted alternatively with one or other OS.
but the two OS must see the VG02 volume as data.
Do you want that is possible ? anybody you try it ?
thanks
4 REPLIES 4
unixdaddy
Trusted Contributor

Re: HPUX10.20 and HPUX11.00 on the same station

I think you probably can do it using vgexport/vgimport commands. However once you start doing lv commands on volume groups/logical volumes in 11.0 i.e. extending logical volumes etc... I would think your 10.20 install would begin having problems. For one thing your vg??.conf files in /etc/lvmconf on the different installs wouldn't match and I suspect there would be other problems. I'm sure others will add something to your thread.
Shannon Petry
Honored Contributor

Re: HPUX10.20 and HPUX11.00 on the same station

Yes, this is possible.
From the boot admin you can choose what drive to boot to/from as a primary and secondary.

The data disk needs to have EXACTLY the same name between the two systems.

I think you already know how to install HP-UX, so I won't go there, but here are some basics for getting data to the 2nd OS.
Step 1. Make sure that you have the disk addresses marked very clearly. NOTE: In 11.0 the controller number may change from 10.20!

Step 2. After the 2nd OS is installed, do this to get the VG imported...
I.
mkdir /dev/vg0x
x= the same number as the old OS
II.
mknod /dev/vg01/group c 64 0x0x0000
x should be the same number you used in "I"
III.
vgimport /dev/vg0x /dev/dsk/c#t#d# ...
Once again "x" must be the same as in I and II.
... is any other disks in the volume group.
NOTE: It is very important that you DO NOT USE THE RAW DISK!
Also, make sure that the first time, you have all disks on the same vgimport line! You can use a -p option if you like to preview!
NOTE: After issuing this command, you will see the logical volumes in /dev/vg0x.

IIII.
vgchange -a y
this will make the volume group available.

V.
vgcfgbackup /dev/vg0x

VI.
mount -options /dev/vg0x/lvol0x /mountpoint

It is well worth BACKING UP YOUR DATA before doing any of this!

Regards,
Shannon
Microsoft. When do you want a virus today?
melvyn burnard
Honored Contributor

Re: HPUX10.20 and HPUX11.00 on the same station

Having set all this up, you can then run the setboot command to change the primary boot path before a reboot to automatically allow the system to boot to the OS of choice.
man setboot
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Mohamed Alhassani
New Member

Re: HPUX10.20 and HPUX11.00 on the same station

Hi,
this is possible when you are doing this steps:

1: Create a map file from the secong VG
vgexport -p -v -m vgn.map /dev/vgn
2: Install HP-UX 11 on the second disk
3: Booting from HP-UX 11 disk.
4: mknod /dev/vgx/group c 64 0x0n0000
5: vgimport -v -m vgn.map /dev/vg0n /dev/dsk/cnnnnn---> the disk on witch the second VG are reside.
6: vgchange -a y /dev/vgn

PS: ist is possible the the option s for sharing the Volume Group are needed.

Regards Mohamed


pvcreate -B /dev/rdsk/cnnnn intialize the new-Disk
mkboot -l /dev/rdsk/cnnnn Create LVM-Disk info
mkboot -a "hpux"
hp-ux is wunderfull