1829743 Members
1534 Online
109992 Solutions
New Discussion

cold install 11

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

cold install 11

I have a HP-UX wally B.10.20 A 9000/803 with "Test Database" Oracle 7.3.4.4 database and Oracle Apps 10.7 SC16.1., and the following my file system:

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 86016 30282 52717 36% /
/dev/vg00/lvol1 47829 19001 24045 44% /stand
/dev/vg00/lvol8 258048 88453 164672 35% /var
/dev/vg00/lvol7 770048 381798 364020 51% /usr
/dev/vg01/u02 4103345 2467867 1225143 67% /u02
/dev/vg01/u01 2540465 1453080 833338 64% /u01
/dev/vg00/lvol4 32768 10428 20960 33% /tmp
/dev/vg01/redolog4 99669 41034 48668 46% /redolog4
/dev/vg01/redolog3 99669 41034 48668 46% /redolog3
/dev/vg01/redolog2 99669 41034 48668 46% /redolog2
/dev/vg01/redolog1 99669 41034 48668 46% /redolog1
/dev/vg00/lvol6 1024000 223753 751185 23% /opt
/dev/vg00/lvol5 20480 7688 12046 39% /home
/dev/vg01/d0reports
977075 343663 535704 39% /d0reports
/dev/vg01/d03 16013350 9829131 4582884 68% /d03
/dev/vg01/d02 8206922 4112043 3274186 56% /d02
/dev/vg01/d01 30776631 18209812 9489155 66% /d01

With cold install of 11, all existing data in the above file system will be erased during this process.
Please advise me what are the steps I need to take to cold install 11 over 10.20.
I am pretty new in sys admin.

Thanks in advance.

8 REPLIES 8
Sandip Ghosh
Honored Contributor

Re: cold install 11

You can keep your vg01 intact. Create a map file for the vg01 with -s option. After loading 11.00 you can do a vgimport with that map file. Also preserve the following files before installation.

# /.forward
# /.profile
# /etc/profile
# /etc/group
# /etc/hosts
# /etc/inetd.conf
# /etc/inittab
# /etc/nsswitch
# /etc/ntp.conf
# /etc/passwd
# /etc/rc.config.d/netconf
# /etc/rc.config.d/netdaemons
# /etc/rc.config.d/nfsconf
# /etc/resolv.conf
# /etc/sendmail.cf
# /etc/services
# /etc/shells
# /etc/shutdown.allow
# /var/adm/cron/*.allow
# /var/adm/fbackupfiles/*
# /var/spool/cron/crontabs/*
# /sbin/init.d/


Also you can look at the document KBAN00000716.

Sandip
Good Luck!!!
Cheryl Griffin
Honored Contributor

Re: cold install 11

Start here to learn about the cold install:
http://devresource.hp.com/STK/hpux_faq.html

And:


Here is the 11.0 documentation site http://docs.hp.com/hpux/os/11.0/index.html

Here is the 11i documentation site http://docs.hp.com/hpux/os/11i/
Under Installing and Updating, look for "HP-UX 11.0 Installation and Update Guide (HP-UX 11.0)" or "HP-UX 11i Installation and Update Guide (HP-UX 11i)"

Good Luck!
Cheryl
"Downtime is a Crime."
James R. Ferguson
Acclaimed Contributor

Re: cold install 11

Hi:

There are a very large number of posts in this forum dealing with this issue. Do a search using keywords like "install +cold".

If you do a cold-install (which is virtually guaranteed to work!) instead of an upgrade, then, your boot (vg00) is wiped clean and a new OS loaded from the Core OS CDROM.

If you have non-vg00 disks, leave them alone. Instead, before the cold install, 'vgexport' the volume groups representing any data you want preserved. After the installation completes, 'vgimport' them and you will have your data.

There are a great number of post discussing cold-installation and the 'vgexport/vgimport' process. Here are a couple of links to get you started:

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

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

Regards!

...JRF...
Helen French
Honored Contributor

Re: cold install 11

I would do something like this:

1) make two recovery tapes ( make_tape_recovery)
2) make two good full backup of the file system.
3) Create exported VG map files for all VGs (vgexport -p -m -s)
4) Create copies (hard and soft) of all system specific configuration files (normally under /etc)
5) Plan the new OS file system lay out
6) Plan the application upgrades/installation.
7) Make copies of all profiles, scripts etc.
8) Export all non-vg00 volume groups.
9) Cold Install the new OS
10) Import all VGs back
11) Install and configure all system paramaters, network, user accounts etc.
12) Install and configure the applications and softwares

Check this guide too:

TKB #KBAN00000716:

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058931458

Life is a promise, fulfill it!
Dave Chamberlin
Trusted Contributor
Solution

Re: cold install 11

Start by doing a full backup!
There are several threads in this forum that detail which files are useful to preserve etc. The actual install process uses Ignite -here is a link to check out:
http://www.software.hp.com/products/IUX/
Also read the release notes for the version of 11 you are upgrading to.
You can find out a lot by reading posts on this forum - do a search for "Upgrade from 10.20 to 11.0" and you will find many useful posts.

If you want to preserve oracle exactly as is,you can export the vg01 volume group:
vgexport -m vg01.mapfile /dev/vg01

Save this file so you can restore it to the system after the OS rebuild. Then you can import the same with:
vgimport -m vg01.mapfile /dev/vg01

and reactivate the group with:
vgchange -a y vg01

The only down side here is that you will be running 10.20 binaries on an 11 OS, though I have had no problems doing this. If this is a test system, I would (and did) do a reinstall of Oracle for the experience. You could then restore the oracle datafiles and refresh the instance. This worked well as a learning experience for me. If this is what you will do - do the vgexport and vgimport for the experience there.

Angus Crome
Honored Contributor

Re: cold install 11

In addition to all the above steps, I would recommend replacing the boot disk(s), so you still have the old one(s) to fall back on. Disks are so cheap now, it doesn't make any sense not to.
If it is internal, you could always connect another externally and install to that target id instead.
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown
Tim D Fulford
Honored Contributor

Re: cold install 11

IF you system is mirrored you can re-import your OLD 10.20 root disk. vg01 you will simply re-attach...

1 - Install new system on One DISK (see all the above posts)
2 - when system is up do not mirror just yet...
re-import the old vg00
a) mkdir /dev/vgold00
b) mknod group c 64 0x020000 # 0x02000 MUST be unique
c) vgimport vgold00 /dev/dsk/c?t?d0
d) vgchange -a e -q n vgold00
e) mount dirs..
mkdir /oldroot
mount /dev/vgold00/lvol3 /oldroot
mount /dev/vgold00/lvol4 /oldroot/tmp
mount /dev/vgold00/lvol5 /oldroot/home (you will almost definitely need this one!! home dirs)
mount /dev/vgold00/lvol6 /oldroot/opt
mount /dev/vgold00/lvol7 /oldroot/usr
mount /dev/vgold00/lvol8 /oldroot/var

you can simply copy any files you inadvertently forgot, or look them up in /oldroot

Once you are satisfied the system is running correctly....
umount /oldroot/var
umount ....
vgexport vgold00

re-mirror...
pvcreate -fB /dev/dsk/c?t?d0
vgextend vg00 /dev/dsk/c?t?d0
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3
lvextend ....

** the first 3 lvols MUST be in this order else you will not be able to boot from mirror. Personally I try to make the mirror disk exactly the same layout as the primary (see pvdisplay -v /dev/dsk/c?t?do for pri dsk)

Add diags....

Tim




-
Tim D Fulford
Honored Contributor

Re: cold install 11

oops

vgchange -a y -q n vgold00!!!!

Tim
-