Re: Installing HP-UX and Linux on the same physical disk (204 Views)
Reply
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 1 of 19 (205 Views)
Accepted Solution

Installing HP-UX and Linux on the same physical disk

Hi,

Is there a way to install HP-UX and Linux on the same physical disk drive?

Thanks
Peter
Honored Contributor
Patrick Wallek
Posts: 13,784
Registered: ‎06-21-2000
Message 2 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

No, not that I know of.

When using LVM, the entire disk must be part of the VG00. That would make it impossible to install Linux on the same disk.

Your only chance, and I don't know if this would even work, MIGHT be if you had a raid card in the server and could use it to somehow split the disks when creating your RAID groups.

Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

Shalom,

No way.

You need a second disk as Patrick says due to limitations of LVM on HP-UX.

Linux LVM permits you to install two operating systems on the same disk because a disk can be in two volume groups. Not so with HP-UX

There is at present no way to build HP-UX in a portion of a disk managed by Linux, say grub or something like that.

Also, just in case it occurs to you, no way to run Linux in an HP-UX vpar.

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
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 4 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

Yes,

this should work.

You have to create another partition on the disk (see man idisk). Of course you need an Integrity system loaded with at least HP-UX 11.23). Doing so you will have multiple (partitioned) disk devices, e.g c1t0d0s1,s2,s3,s4.
Be aware you are acting outside of the standards, but it should work.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 5 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

perhaps the better solution:

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

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 6 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

Thanks Torsten,

I would like to precise my problem. I have two disks. One will host HP-UX 11.23. Can I arrange the second disk so that I have a couple raw logical volumes there (to be used by HP-UX) AND a Linux installation. (I am not entirely sure if EFI allows me to boot Linux from the second disk.) If PV does not take up the entire disk, this should be somehow feasible. Or is it LVM which will hog the entire (second) disk, once I create a PV on it??? Then, apparently, the only option I have left is really the VM beta.

Thanks again.

Peter
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 7 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

The question which I forgat to ask: Can I have raw logical volumes on a partition created with idisk?

Thanks
Peter
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 8 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

In theory yes.

You can create multiple partitions win idisk.
see http://docs.hp.com/en/B2355-60105/idisk.1M.html

HP-UX and LVM will sitting on the partition device, like c1t0d2s2 or even c1t0d2s5, depending on your partition layout.

I'm not sure about linux, but IMHO hp-ux will handle this.

If you are going to try this, please post your results.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 9 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

Peter,

let's make a concept.

We have 1 disk with hp-ux 11.23 (assume this is c1t0d0).
The layout is like this:
c1t0d0s1 EFI
c1t0d0s2 HPUX
c1t0d0s3 Service

Now we are on the second disk (let's say this is c2t0d0).
You install linux and you create 4 partitions:
c2t0d0s1 EFI (needed for boot)
c2t0d0s2 Linux
c2t0d0s3 HPUX
c2t0d0s4 Service

IMHO, Linux should be able to handle this.
From the hp-ux point of view, you should see all of this in your ioscan.
Of course you can create a physical volume using the c2t0d0s3 device and use this as a PV for a VG01 - you apparently do the same with c1t0d0s2 on your first disk (compare with "vgdisplay -v vg00" and "lvlnboot -v").

Give this a try and post your results, please.


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 10 of 19 (205 Views)

Re: Installing HP-UX and Linux on the same physical disk

BTW, you have multiple threads about this topic - why not closing them and refer to this thread?

This will make things much easier.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 11 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

> why not closing them and refer to this thread?

Done!

Implementing the installation plan you outlined will take some time (a couple of days, maybe), because I will probably need to perform my first time ever installation of HP-UX ( http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1094669 ) and I also have other tasks to do (and, also, I am not always in the physical vicinity of the machine which is obviously required for OS installations).

Needless to say how much I appreciate your help, Torsten.

Thanks
Peter
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 12 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

You can even do an installation if you are not in front of the system using ignite or a swdepot in conjunction with the MP functionality - but this is another topic.

Good luck and come back with your results.

Have fun!

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 13 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

Okay,

In light of your latest post, I'll change my answer.

With two disks, you can have a dual boot system. You can't run both OS' at the same time with vpar, but there is no reason that if HP-UX has its own disk, you can't try a Linux install on a secondary disk.

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
Honored Contributor
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 14 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

Ah - but if you have Itanium and VSE - you can setup up a HP-UX host, a HP-UX Virtual Server and a Virtual Linux Server.

Since VSE allows you to share resources, you should be able to have a Virtual Linux and HP-UX on the same disk!

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 15 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

Just to say it more clearly.

I think to remember your system is a rx26x0.

Virtual Partitions (vPar) is not possible, because it is not supported for this system and it can run HP-UX only.

If you have 2 disks and you install each OS on a separate disk, you can boot on OS at a time without problems.

If you try to join the beta program of HP Integrity Virtual Machines, you will be able to install HP-UX across the system as the host OS. From this environment you can install Guest systems and run all of them at the same time. The guests are able to handle either real disks, partitions, logical volumes (LVM) or even files as virtual disks.
The current version is supported for HP-UX and Windows server 2003 as guest systems only, but the beta will be able to run redhat linux too.

The last method (and this is what I understand you want to do) is to install HP-UX on the first disk, Linux on the second and use a part of the second disk for HP-UX data. In this case you can only run one OS at a time, of course.

Your HP-UX partitioning will look like this:

c1t0d0 - the whole disk
c1t0d0s1 - EFI partition
c1t0d0s2 - HP-UX partition
c1t0d0s3 - Service partition

If you now going to install Linux, you will create 4 partitions (using the linux install program for example):

c2t0d0 - the second disk
c2t0d0s1 - EFI
c2t0d0s2 - Linux
c2t0d0s3 - HP-UX (used for data)
c2t0d0s4 - Service

In this case, your HP-UX OS will show you all of these device files and you are able to use c2t0d0s3 as a disk for HP-UX. Create a volume group on this device, a logical volume and create your file system.

But you have to be very careful to not overwrite this partition by any tool accessing the (default) service area.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 16 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

> you will create 4 partitions (using the linux install program for example)

I intially thought of performing the following steps when going about the layout of the second disk (it is clear that the very first step is to install HP-UX on the first disk):

1) Creating EFI and Linux as part of the Linux installation
2) After Linux has been installed, rebooting to HP-UX (on the first disk)
3) Using idisk to create the HP-UX partitions (data + Service) on the remaining free space of the second disk.

Is it then better to create the HP-UX partitions on the second disk as part of the linux installation?

What is the purpose of the Service partition, and how large should it be?

What if the device names follow a pattern which is slightly different from that in your example: they are c2t0d0 for one disk and c2t1d0 for the other. Does it make any difference?

Thanks

Peter
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 17 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

I guess idisk is not able to create partitions on free space.

Normally it works like this:

You create a file with the partition data:

# cat </tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF

Now you run idisk with this file as parameter on the questionable disk:

# idisk -wf /tmp/partitionfile /dev/rdsk/c3t2d0

This creates 3 partitions
500MB for EFI
all remaining space (total-500-400) for HPUX
400MB for service

The service space is reserved for offline diagnostic tools.

In your case you need to specify another (4th) partition. I think you can do this while installing Linux with the linux installer -or- before installaing Linux from HP-UX.

In this case the partitionfile could look like this (assuming a 72GB disk):

4
500MB EFI
40000MB HPUX
400MB HPSP
30000MB LINUX

It is worth to try, I guess.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 18 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

Not knowing which partition type to use under the Linux installer, I decided to create the EFI and / partitions with the Linux installer.

I then rebooted to HP-UX and tried to create the remaining partitions:

# cat </tmp/partitionfile
> 2
> HPUX 100%
> HPSP 400MB
> EOF
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
idisk version: 1.31
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
idisk: Error in partition data file. An EFI partition type must be specified.


I think I will leave it at that.

Thanks for your help
Peter
Frequent Advisor
Peter Kovacs 1.0rc
Posts: 48
Registered: ‎01-16-2007
Message 19 of 19 (204 Views)

Re: Installing HP-UX and Linux on the same physical disk

I meant:

Not knowing which partition type to use under the Linux installer *to create the HP-UX partitions*...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.