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 4.1 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
-
Install all the prerequisite patches on system01 and system02. See Required HP-UX patches.
If this step is being performed in any phase other than the first phase of the upgrade, the llthosts
need to be replace to prevent vxfen
from starting after reboot by running the following commands.
-
Move
/etc/llthosts
to /etc/llthosts.bak
on all the nodes to be upgraded.
# mv /etc/llthosts /etc/llthosts.bak
-
Install all the prerequisite patches and reboot the machines.
-
Move
/etc/llthosts
to /etc/llthosts.bak
on all the nodes to be upgraded.
# mv /etc/llthosts.bak /etc/llthosts
-
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
.
-
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
# vxfenconfig -U
-
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. For example, system01.
# /opt/VRTS/bin/hastart
# /opt/VRTS/bin/haconf -makerw
# hagrp -unfreeze cvm -persistent
# hagrp -unfreeze
service_group -persistent
# /opt/VRTS/bin/hares -delete qlogckd
# /opt/VRTS/bin/haconf -dump -makero
# /opt/VRTS/bin/hastop -all -force
where service_group is the command that displays the service groups by hagrp -dep cvm
.
-
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
-
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 7, step 9, and step 16 on rest of the nodes to be upgraded.