Operating System - HP-UX
1855535 Members
13794 Online
104112 Solutions
New Discussion

New Install on a different disk

 
SOLVED
Go to solution
Haitham Hamad
Regular Advisor

New Install on a different disk

I have a remote server that has HP10.2 os on a 9G disk in addition to users data. To have a separate disk for the os, we will install HP 11.0 on a 4G disk and use the whole 9G for Oracle and users data. During the installation, will the system considers the 4G as the new primary disk after the first rebootand boot it first. Any special handling (interrupting the boot process and specifying the 4G disk...). what do I need to do to wipe the first os from the 9G, just pvcreate -f the 9G after booting from the 4G??... thanks Haitham
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: New Install on a different disk

You can install 11.0 on the 4GB disk and the installation will automatically set it as your primary boot disk as a part of the installation. If you want to keep the user data that is currently on the 9GB disk, then you can do a vgimport of the 9GB disk after the install. You can then mount all of the filesystems that were on the 9GB, including the old OS files, just in case you need something like the passwd file or group file. Otherwise, you can just create a new volume group on the 9GB drive and start putting data on it.

I would seriously reconsider installing the new OS on the 4GB drive though. You are liable to run short of space pretty quickly. If would get another 9GB disk to install the new OS on. I don't think I would use anything less than a 9GB disk if that is going to be the only disk in my root VG.
paul courry
Honored Contributor

Re: New Install on a different disk

Reminder..............

You control which drive is BO PRI and BO ALT by setting these values at boot time. Just interupt the boot process at the 10 second mark and use the command provided, PATH PRI 0/0/0/0/0/0/0.0.0.0.0.0.0 SEARCH will provide you with the correct address.
Ajitkumar Rane
Trusted Contributor

Re: New Install on a different disk

If at all you are thinking of importing the old OS disk for user data I would suggest create a map file with vgexport and keep a backup, if the lvol name is not conventional.
Also once you r set with the new OS you can wipe the old OS lvols and extend your user data partitions.

goodluck
Amidsts difficulties lie opportunities
Haitham Hamad
Regular Advisor

Re: New Install on a different disk

I wasn't sure if I will be able to vgimport the old vg00 since I will have a new vg00 on the 4G so I moved user data from the 9G to another disk. All I have now on the 9G is the os. After I install on the 4G, I want to be able to reconfigure the 9G from assigning it a new volume group, logical volumes,... so that I can install oracle software on it and another mount point for data. So what do I need to start with after I boot the system on the 4G disk?
Patrick Wallek
Honored Contributor
Solution

Re: New Install on a different disk

Once the OS has been installed on the 4GB disk, just create your volume group on the 9GB like you would normally create a VG. Either manually (pvcreate, vgcreate, etc.) or through SAM. If you do it through SAM it will do everything for you.
Haitham Hamad
Regular Advisor

Re: New Install on a different disk

Thanks for the tips everyone, now I have a clearer plan. I was wondering if I didn't move userdata from the 9G and wanted to bring it back "online" after the installation. Can I do vgimport the old vg00 map to a new vg0X (since vg00 will already be taken by the new os)
Ajitkumar Rane
Trusted Contributor

Re: New Install on a different disk

yes you can vgimport the old os disk with the new VG name. say VG0X

the commands are
mkdir /dev/vg0X
mknod /dev/vg0X group c 64 0x0X0000
vgimport -v /dev/vg0X /dev/dsk/CXtYdZ ...
if you r using the map file then add the option -m /filepath.

vgchange -a y /dev/vg0X

mkdir /xyz
and mount the lvols to the mountpoints.
Please referto manual to verfiy

Goodluck
Amidsts difficulties lie opportunities