Hi, I wanted to write a full upgrade process using update-ux, incluiding moving to dsf etc.
But I was in a hurry to deploy the server, and the last bit of configuration I didn't have time to write it down.
Posted it anyway, hope it helps, it has nice links to hp docs...
Nice webcast, with good slides:
http://h20338.www2.hp.com/enterprise/w1/en/os/hpux11i-kod-upgrade-to-v3....
Upgrading from 11.23 to 11.31
1.Before starting , You should check all the pre-requisite steps in this web page: http://www.hp.com/go/tov3
2. Install/Run the check tool:
MSV2V3Check B.11.23.XXX HP-UX 11iv2 to 11iv3 Mass Storage Check Utility
# msv2v3check
* VALIDATION RESULT: 0 errors, and 22 warnings.
Congratulations! This system will install and boot HP-UX 11i
v3 successfully. However, please review all WARNING
messages as your current mass-storage configuration may
not fully operate on HP-UX 11i v3.
You should check all the pre-requisite steps in this web page: http://www.hp.com/go/tov3
Once we pass the Tests we are ready to keep going.
3.We are going to use DRD for 2 things:
-Easy failback just in case the update goes wrong
-Resizing our filesystems (/stand or / ) if needed
Install latest DRD version from:
www.hp.com/go/drd
Once installed we need a disk the same size of the total assinged space on vg00:
# vgdisplay vg00 |grep -e "PE Size" -e Alloc
PE Size (Mbytes) 64
Alloc PE 1399
We need a disk 64 x 1399 = 90Gigs.
I map a 90 gig SAN disk and DrD clone it:
# drd clone -p -v -t /dev/dsk/c4t0d0 ---> first a preview
======= 11/12/09 13:59:36 MET BEGIN Clone System Image Preview (user=root)
======= 11/12/09 13:59:43 MET END Clone System Image Preview succeeded. (user=root)
# drd clone -v -t /dev/dsk/c4t0d0
======= 11/12/09 14:00:55 MET BEGIN Clone System Image (user=root)
* Reading Current System Information
* Selecting System Image To Clone
* Selecting Target Disk
* Selecting Volume Manager For New System Image
* Analyzing For System Image Cloning
* Creating New File Systems
* Copying File Systems To New System Image
* Making New System Image Bootable
* Unmounting New System Image Clone
* System image: "sysimage_001" on disk "/dev/dsk/c4t0d0"
======= 11/12/09 14:15:26 MET END Clone System Image succeeded. (user=root)
#drd mount && drd mount ---> just to check it works
Now I am goint to get and Ignite Image, to have a nice backup of our server just before we start modifiying
#make_net_recovery -s server -x inc_entire=vg00 -n 2
Once ignite Image has finished we are safe(hope so!.) to start with the update.
First we need to do some preparation work as recomended by HP:
Take a list of the software:
-List the bundles and products installed on your system.
Make sure to save the output of the swlist command so you can reference it later.
#/usr/sbin/swlist -l bundle -l product>/tmp/software_list
Test compiling the kernel:
As root, enter:/usr/bin/mk_kernel –o /stand/vmunix
Fix any problems listed in the mk_kernel output.
Reboot your system to ensure that your new kernel boots.
Rename sw logs:
Enter:
cd /var/adm/sw
As root, rename each log file. For example:
mv swagent.log swagent_old.log
Enter:
cd /var/opt/swm
Enter:
mv swm.log swm_old.log
Run “swverify \*” and take action if there are any problems with existing packages or patches.
IMPORTANT NOTE ON VXFS USING 5.0 BY DEFAULT:
Default install of VxFS changed from 4.1 to 5.0 Starting with the September 2008
release, VxFS 4.1 and 5.0 were included in the OEUR or AR media and VxFS 4.1 would
have been installed by default. From September 2009 OEUR and beyond, VxFS 5.0 is
installed by default. However, both VxFS 4.1 and 5.0 continue to be included as they
were in past OEURs. Explicit de-selection of VxFS 5.0 in the Ignite-UX tool is required
if you prefer stay on VxFS 4.1. (See the white paper referenced above.)
ONE IMPORTANT NOTE IF YOU USE ONLINEJFS:
Updates from HP-UX 11i v2 with OnlineJFS 4.1 to HP-UX 11i v3 with OnlineJFS 5.0
To update HP-UX 11i v2 systems that are installed with HP-UX 11i v2 OnlineJFS 4.1
and that you want to update to HP-UX 11i v3 with OnlineJFS 5.0 (B3929FB), you must
deselect HP-UX 11i v3 OnLineJFS 4.1 (B3929EA) during the update. This can be done
in the update-ux command line as follows:
update-ux -s source_location !B3929EA B3929FB
The !B3929EA entry on the command line ensures that 11i v3 OnLineJFS 4.1 is not
installed from the depot during the update.
We have to install the 11.31 version of update-ux so we have the -p preview option, we run the preview update-ux on the active image, so we can check if any of our filesystems needs more space for the update:
#swinstall -s sdprinte:/var/opt/ignite/depot/Rel_B.11.31/releases/11.31v5-0909 Update-UX
#update-ux -p -s sd:/var/opt/ignite/depot/Rel_B.11.31/releases/11.31v5-0909 HPUX11i-BOE
(After the preview if update-ux tells us that we need a larger size filesystem, we can use our DRD clone to extend the filesystems that need it, this part of extending file systems with DrD I am going to write it in a separate paper, and I will publish it here very soon.)
My Update-Ux summary, all wen't perfect, so I am going to update(cross your fingers)
* Analysis Summary
- Reboot needed: Yes
- Kernel build needed: Yes
- Number of check scripts run: 121 (7 excluded, 0 failed)
- Install: 60 bundles 1079 filesets
- Update: 49 bundles 943 filesets
Once it has finished installing, reboot time...
* Installing fileset "vmGuestLib.GUEST-LIB,r=B.04.10" (2021 of 2022).
* Installing fileset "vmProvider.VM-PROV-CORE,r=B.04.10" (2022 of 2022).
NOTE: More information may be found in the Software Manager logfile "/var/opt/swm/swm.log".
======= 11/13/09 09:46:59 MET Operating Environment Update - Saving State and Rebooting (user=root) (jobid=000002)
IT reboots once more after configuring the filesets, then when it comes up we have:
# uname -a
HP-UX rxppcv01 B.11.31 U ia64 1673824161 unlimited-user license
It's time to check everything is ok:
First check all the logs, looking for errors, you can check:
/var/adm/sw/update-ux.log
/var/opt/swm/swm.log
First get rid of any old software that could be left over from 11.23:
# swlist -l bundle | grep -i 11.23 (11-13 10:10)
B3901BA C.11.23.12 HP C/ANSI C Developer's Bundle (S800)
B3913DB C.11.23.12 HP aC++ Compiler (S800)
B9073BA B.11.23.08.03.00.22 HP-UX iCOD Instant Capacity (iCAP)
B9901AA A.11.23.15.01 HP IPFilter 3.5alpha5
BUNDLE B.2008.11.27 MDEF-11.23-JUN08
BUNDLE11i B.11.23.0409.3 Required Patch Bundle for HP-UX 11i v2 (B.11.23), September 2004
HPUXBaseAux B.11.23.0712 HP-UX Base OS Auxiliary
HPUXBaseOS B.11.23 HP-UX Base OS
Judy B.11.23.04.17 Judy Library and Related files
FREEWARE A.2.0 Coleccisn de Software libre para HP-UX 11.23
MSV2V3Check B.11.23.0710 HP-UX 11iv2 to 11iv3 Mass Storage Check Utility
I swremove all of them except for FREEWARE(to lazy to download all of them for 11.31 again, I will do in a future ;D)
After that a nice swverify, and fix all the file sets that had errors, for example:
# swverify \* (11-13 10:23)
======= 11/13/09 10:23:12 MET BEGIN swverify SESSION
(non-interactive) (jobid=rxppcv01-0065)
ERROR: File "/./sbin/init.d/rstemsListener" should have mode "500"
but the actual mode is "555".
ERROR: Fileset "Isee_EmsListener.ISEE-EMSLSTNR,l=/,r=A.11.12.09" had
file errors.
just chmod 500 /sbin/init.d/rstemsListener , and swverify again:
>swverify Isee_EmsListener
* The analysis phase succeeded for "rxppcv01:/".
* Verification succeeded.