Upgrading Solaris on a node
Tasks involved in upgrading the Solaris operating system include:
-
Stopping VCS
-
Stopping GAB and LLT and unloading the kernel modules
-
Removing packages
-
Upgrading Solaris operating system
-
Reinstalling GAB and LLT from the software disc
-
Restarting VCS
To stop VCS
-
Make the VCS configuration writable. On the first system, type:
# haconf -makerw
-
Move all service groups from the system you are upgrading to another system and keep services from failing over to this server. On the system you are upgrading, type:
# hasys -freeze -persistent -evacuate
upgrade_server
-
Check if all service groups and resources are offline on the this system and online on the other system. Type:
# hastatus -summary
-
Close the configuration and unload the VCS services on the system you are upgrading. On the upgrading system, type:
# haconf -dump -makero
# hastop -local
-
Confirm that VCS has shut down. On the upgrading system, type:
# gabconfig -a
Output resembles:
GAB Port Memberships
=======================================
Port a gen 23dc0001 membership 01
Note that the output shows no membership for port h.
To stop GAB and LLT and unload the kernel modules
-
Unconfigure GAB. Type:
# gabconfig -U
-
Unload the GAB module from the kernel.
-
Determine the kernel module ID:
# modinfo | grep gab
-
Unload the module from the kernel:
# modunload -i
gab_id
-
Unconfigure LLT. On each system, type:
# lltconfig -U
The following message is displayed on the console:
lltconfig: this will attempt to stop and reset LLT.
Confirm (y/n)?
-
Type
Y
on each system in response to the message.
-
Unload the LLT module from the kernel.
To remove GAB and LLT packages
-
On each node, use the
pkgrm
command to remove the GAB and LLT packages.
# pkgrm VRTSgab VRTSllt
To upgrade Solaris
-
Follow the Sun installation guide to upgrade the operating system kernel to the new version of Solaris.
-
As the system comes up, enter single-user mode.
To reinstall GAB, LLT from the software disc and restart
-
In single-user mode, log in as superuser on the system you are upgrading.
-
Check whether the /tmp directory is mounted.
# mount
-
If the /tmp directory is not mounted, then enter:
# mount /tmp
-
Create a directory for installation:
# mkdir /tmp/install
-
Insert the software disc with the VCS software into a drive connected to the system you are upgrading. The Solaris volume-management software automatically mounts the disc as /cdrom/cdrom0. Type the command:
# cd /cdrom/cdrom0
-
Copy the compressed package files from the software disc to the temporary directory:
# cp -r cluster_server/pkgs/VRTSllt.tar.gz /tmp/install
# cp -r cluster_server/pkgs/VRTSgab.tar.gz /tmp/install
-
If your system does not have the gunzip utility, copy it from the disc:
#
cp /
cdrom_path
/gnu/gunzip /tmp/install
-
Go to the temporary directory and unzip the compressed package files:
# cd /tmp/install
# gunzip VRTSllt.tar.gz
# gunzip VRTSgab.tar.gz
The following files are now present in the temporary directory:
VRTSgab.tar
VRTSllt.tar
-
Extract the required VCS files from the compressed files:
# tar -xvf VRTSllt.tar
# tar -xvf VRTSgab.tar
-
Install the LLT and GAB packages. As you enter the command, be sure to list the packages in the order shown:
# pkgadd -d . VRTSllt VRTSgab
-
Bring system up in multi-user mode:
# cd /
# init 3
To restart VCS
-
Verify that VCS services are running on the upgraded server. On the upgraded server, type:
# ps -ef | grep ha
root 576 1 0 16:54:12 ? 0:02 /opt/VRTSvcs/bin/had
root 578 1 0 16:54:13 ? 0:00 /opt/VRTSvcs/bin/hashadow
-
If the VCS services are not running, reload the VCS services. Type:
# hastart
-
Unfreeze the upgraded server and save the configuration. On the upgraded server, type:
# hasys -unfreeze -persistent
upgraded_server
# haconf -dump -makero