Phased upgrade
Following procedure assumes a 4 node cluster system01, system02, system03, system04 where system01 and system02 are initially upgraded and rest of the cluster is brought up later.
To upgrade from 3.5 to 5.0
-
Log in as superuser.
-
Select one or more nodes to upgrade, say system01 and system02.
-
Insert the appropriate software disc into your system's DVD drive.
-
Determine the block device file for the DVD drive:
# ioscan -fnC disk
Make a note of the device file as it applies to your system.
-
Create a directory in which to mount the software disc and mount the disc using the appropriate drive name. For example:
# mkdir -p /dvdrom
# /usr/sbin/mount -F cdfs /dev/dsk/c3t2d0 /dvdrom
-
Change to the top-level directory on the disc:
# cd /dvdrom
-
Offline all SFCFS resources on nodes selected in step 2 by running the following commands on one of the cluster nodes.
# hagrp -offline
service_group -sys
system01
# hagrp -offline
service_group -sys
system02
where service_group is the command that displays the service groups by hagrp -dep cvm
.
-
Remove the VRTScavf and VRTSglm 3.5 packages from these nodes and run the following commands on system01 and system02.
# hastop -local
# swremove VRTScavf VRTSglm
-
Uninstall VCS 3.5 from system01 and system02. Run the following commands from one of the nodes.
See the Veritas Cluster Server Installation Guide.
# cd /opt/VRTSvcs/install
# ./uninstallvcs
Note
Ignore any errors from the uninstallvcs
script and proceed with the uninstall of VCS. Also run the following command from rest of the nodes in the cluster on which uninstallation is not performed using ./uninstallvcs
:
#
hastart
-
Upgrade the operating system from HP-UX 11i Version 1 to HP-UX 11i Version 2 on system01 and system02.
See the HP-UX Operating System documentation.
-
Install all the prerequisite patches on system01 and system02. See Required HP-UX patches.
-
Install SFCFS 5.0 on system01 and system02 and reboot these nodes.
See Installing the product.
Note
Do not configure SFCFS after reboot.
-
Shutdown VCS on remaining non-upgraded nodes.
-
Run the following commands from one of the non-upgraded nodes.
# haconf -makerw
# hagrp -unfreeze cvm -persistent
# hagrp -unfreeze
service_group -persistent
# haconf -dump -makero
where service_group is the command that displays the service groups by hagrp -dep cvm
.
-
Run the following commands on all the non-upgraded nodes.
# hastop -local
-
Start
vxfen
on system01 and system02. vxfen
can be started either in disable or enable mode. For starting vxfen
in disabled mode, run the following commands
# echo vxfen_mode=disabled > /etc/vxfenmode
# /sbin/init.d/vxfen start
See the Veritas Cluster Server Installation Guide for information regarding starting vxfen
in enabled mode.
-
Change the configuration files by running the following commands on one of the upgraded nodes, say system01.
# /opt/VRTS/bin/hastart
# /opt/VRTS/bin/haconf -makerw
# hagrp -unfreeze cvm -persistent
# hagrp -unfreeze
service_group -persistent
# /opt/VRTS/bin/hatype -add CVMVxconfigd
# /opt/VRTS/bin/hatype -modify CVMVxconfigd Operations \
OnOnly
# /opt/VRTS/bin/hares -add cvm_vxconfigd CVMVxconfigd cvm
# /opt/VRTS/bin/hares -modify cvm_vxconfigd Enabled 1
# /opt/VRTS/bin/hares -delete qlogckd
# /opt/VRTS/bin/haconf -dump -makero
# /opt/VRTS/bin/hastop -all -force
If you have configured the VCS Cluster Manager (Web Console), complete step a through step d to modify the /etc/VRTSvcs/conf/config/main.cf
file.
-
Remove VRTSweb:
Process VRTSweb (
PathName = "/opt/VRTSvcs/bin/haweb"
Arguments = "10.129.96.64 8181"
)
-
Replace it with:
VRTSWebApp VCSweb (
Critical =0
AppName = vcs
InstallDir = "/opt/VRTSweb/VERITAS"
TimeForOnline = 5
)
-
Add the NIC resource in the ClusterService group. For example, where the name of the NIC resource is named csgnic and the public NIC device is hme0, add:
NIC csgnic (
Device = hme0
-
Add new dependencies for the new resources in the ClusterService group. For example, using the names of the VRTSWebApp, NotifierMngr, IP, and NIC resources, enter lines that resemble:
VCSweb requires webip
ntfr requires csgnic
webip requires csgnic
-
Verify the syntax of the
/etc/VRTSvcs/conf/config/main.cf
file by running the following commands on system01:
# cd /etc/VRTSvcs/conf/config
# /opt/VRTS/bin/hacf -verify .
-
Start VCS on all the upgraded nodes. Run the following command on system01 and system02.
# /opt/VRTS/bin/hastart
# echo 3.5 > /opt/VRTS/install/.SFCFS.upgrade
-
Configure SFCFS on system01 and system02. See Configuring the Components.
Note
VCS configuration files are not changed during this configuration.
-
Upgrade file systems to proper disk layout version as mentioned in Upgrading the disk layout versions.
-
Verify that all the file systems are working properly and data is intact.
See cfsmount
(1M).
-
Run step 8 through step 12, step 14, step 17, step 18 and step 20 on rest of the nodes to be upgraded.