This chapter provides step-by-step procedures for upgrading a two-node Sun Cluster 2.2 configuration to Sun Cluster 3.0 software.
The following step-by-step instructions are in this chapter.
For overview information about planning your Sun Cluster configuration, see Chapter 1, Planning the Sun Cluster Configuration. For a high-level description of the related procedures in this chapter, see "Upgrading From Sun Cluster 2.2 to Sun Cluster 3.0 Software".
Perform the following tasks to upgrade your two-node cluster from Sun Cluster 2.2 to Sun Cluster 3.0 software.
Table 3-1 Task Map: Upgrading From Sun Cluster 2.2 to Sun Cluster 3.0 Software
Task |
For Instructions, Go To ... |
---|---|
Read upgrade conditions and restrictions, and plan a root disk partitioning scheme to support Sun Cluster 3.0 software. |
"Overview of Upgrading From Sun Cluster 2.2 to Sun Cluster 3.0 Software" |
Take the cluster out of production. | |
If your cluster uses VERITAS Volume Manager (VxVM), deport disk groups and remove VxVM software packages. | |
Upgrade to the Solaris 8 operating environment if necessary, add a new /globaldevices file system, and change file system allocations to support Sun Cluster 3.0 software. If your cluster uses Solstice DiskSuite software, remove mediators and upgrade Solstice DiskSuite software. | |
Upgrade to Sun Cluster 3.0 framework software. If your cluster uses Solstice DiskSuite software, recreate mediators. | |
Update the PATH and MANPATH. | |
Upgrade to Sun Cluster 3.0 data services software. If necessary, upgrade third-party applications. | |
Assign a quorum device, finish the cluster software upgrade, and start device groups and data services. If your cluster uses VERITAS Volume Manager (VxVM), reinstall VxVM software packages and import and register disk groups. If your cluster uses Solstice DiskSuite software, restore mediators. | |
Verify that all nodes have joined the cluster. |
This section provides conditions, restrictions, and planning guidelines for upgrading from Sun Cluster 2.2 to Sun Cluster 3.0 software.
The following conditions must be met to upgrade from Sun Cluster 2.2 to Sun Cluster 3.0 software.
The cluster must have exactly two nodes and be a supported configuration for Sun Cluster 3.0 software. The upgrade does not support clusters of three or more nodes.
Only Ethernet adapters are supported. Transport adapters must have a transmission rate of 100 Mbit/sec or greater.
All cluster hardware must be stable and working properly.
All third-party applications must be functioning properly.
The cluster must be running on, or upgraded to, the Solaris 8 operating environment.
You must upgrade all Sun Cluster software, framework, and data services at the same time.
Sun Cluster 3.0 software does not support upgrading directly to Sun Cluster 3.0 software from Solstice HA 1.3, Sun Cluster 2.0, or Sun Cluster 2.1 software.
Sun Cluster 3.0 software does not support converting from one volume manager product to another during upgrade.
The upgrade from Sun Cluster 2.2 to Sun Cluster 3.0 software cannot be reversed after the scinstall(1M) command has been started on a node, even if the command does not complete successfully. To restart a failed upgrade, you must first reinstall Sun Cluster 2.2 software on the node.
To support Sun Cluster 3.0 software, you probably need to change your current system disk layout. Consider the following when planning your new partitioning scheme.
Global devices namespace - On each node you must create a file system of at least 100 MBytes and set its mount point as /globaldevices. This file system will be converted during upgrade to the appropriate global device namespace. If necessary, you can remove some of the swap space for this purpose, or use an external disk that is not shared with any other node.
Mirrored root - If your root disks are mirrored, you must unmirror them before modifying partitions. The mirror can be used to recover the original configuration if the upgrade procedure fails. Refer to your volume manager documentation for information.
Root (/) file system allocation - If you need to upgrade your configuration to the Solaris 8 operating environment, you probably need to increase the size of your root (/) partition on the root disks of all Sun Cluster nodes.
Refer to "System Disk Partitions" for more information about disk space requirements to support Sun Cluster 3.0 software.
Before upgrading the software, take the cluster out of production.
Have available the CD-ROMs, documentation, and patches for all the software products you are upgrading.
Solaris 8 operating environment
Solstice DiskSuite software or VERITAS Volume Manager
Sun Cluster 3.0 framework
Sun Cluster 3.0 data services
Third-party applications
Solstice DiskSuite software and documentation are now part of the Solaris 8 product.
These procedures assume you are installing from CD-ROMs. If you are installing from a network, ensure that the CD-ROM image for each software product is loaded on the network.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
Notify users that the cluster will be down.
Become superuser on each node of the cluster.
Search the /var/adm/messages log for unresolved error or warning messages.
Correct any problems.
Verify that no logical hosts are in the maintenance state.
Become superuser on a node of the cluster.
Use the hastat(1M) command to display the status of the cluster.
# hastat HIGH AVAILABILITY CONFIGURATION AND STATUS ------------------------------------------- ... LOGICAL HOSTS IN MAINTENANCE STATE |
If the screen output displays NONE, no logical hosts are in the maintenance state. Proceed to Step 6.
If a logical host is in the maintenance state, use the haswitch(1M) command to perform switchover.
# haswitch hostname logicalhostname |
Specifies the name of the node that is to own the logical host
Specifies the name of the logical host
Run the hastat command to verify the switchover completed successfully.
Ensure that the size of each logical host administrative file system is at least 10 Mbytes.
# df -k /logicalhostname |
A logical host administrative file system that is not the required minimum size of 10 Mbytes will not be mountable after upgrade to Sun Cluster 3.0. If a logical host administrative file system is smaller than 10 Mbytes, follow your volume manager documentation procedure for growing this file system.
Back up your system.
Ensure that all users are logged off the system before you back it up.
Stop the Sun Cluster 2.2 software on each node of the cluster.
# scadmin stopnode |
Run the hastat command to verify that no nodes are in the cluster.
If your cluster uses VERITAS Volume Manager, go to "How to Uninstall VERITAS Volume Manager Software". If your cluster uses Solstice DiskSuite software, to upgrade or prepare the Solaris operating environment to support Sun Cluster 3.0 software, go to "How to Upgrade the Solaris Operating Environment".
If your cluster uses VERITAS Volume Manager (VxVM), perform this procedure on each node of the cluster to uninstall the VxVM software. Existing disk groups are retained and automatically reimported after you have upgraded all software.
To upgrade to Sun Cluster 3.0 software, you must remove VxVM software and later reinstall it, regardless of whether you have the latest version of VxVM installed.
Become superuser on a cluster node.
Deport all VxVM disk groups.
Refer to your VxVM documentation for procedures.
Ensure that disks containing data to be preserved are not used for other purposes during the upgrade.
Unencapsulate the root disk, if it is encapsulated.
Refer to your VxVM documentation for procedures.
Shut down VxVM.
Refer to your VxVM documentation for procedures.
Remove all installed VxVM software packages.
Refer to your VxVM documentation for procedures.
Remove the VxVM device namespace.
# rm -rf /dev/vx |
To upgrade or prepare the Solaris operating environment to support Sun Cluster 3.0 software, go to "How to Upgrade the Solaris Operating Environment".
Perform this procedure on each node in the cluster to upgrade or prepare the Solaris operating environment to support Sun Cluster 3.0 software.
Become superuser on the cluster node.
If your volume manager is Solstice DiskSuite and you are using mediators, unconfigure mediators.
Run the following command to verify that no mediator data problems exist.
# medstat -s setname |
Specifies the diskset name
If the value in the Status field is Bad, repair the affected mediator host by following the procedure "How to Fix Bad Mediator Data".
See the medstat(1M) man page for more information.
List all mediators.
Use this information to determine which node, if any, has ownership of the diskset from which you will remove mediators.
# metaset -s setname |
Save this information for when you restore the mediators during the procedure "How to Upgrade Cluster Software Packages".
If no node has ownership, take ownership of the diskset.
# metaset -s setname -t |
Takes ownership of the diskset
Unconfigure all mediators.
# metaset -s setname -d -m mediator_host_list |
Specifies the diskset name
Deletes from the diskset
Specifies the name of the node to remove as a mediator host for the diskset
Refer to the mediator(7) man page for further information about mediator-specific options to the metaset command.
Remove the mediator software.
# pkgrm SUNWmdm |
Does your configuration currently run Solaris 8 software?
If no, go to Step 4.
If yes,
Create a file system of at least 100 Mbytes and set its mount point as /globaldevices.
The /globaldevices file system is necessary for Sun Cluster 3.0 software installation to succeed.
Reallocate space in other partitions as needed to support Sun Cluster 3.0 software.
Refer to "System Disk Partitions" for guidelines.
Go to Step 6.
Determine which procedure to use to upgrade to Solaris 8 software.
Volume Manager |
Procedure to Use |
For Instructions, Go To ... |
---|---|---|
Solstice DiskSuite |
Upgrading both Solaris and Solstice DiskSuite software |
Solstice DiskSuite installation documentation |
VxVM |
Performing a standard Solaris software installation |
Solaris 8 installation documentation |
Upgrade to Solaris 8 software, following the procedure you selected in Step 4.
During installation, make the following changes to the root disk partitioning scheme.
Create a file system of at least 100 Mbytes and set its mount point as /globaldevices. The /globaldevices file system is necessary for Sun Cluster 3.0 software installation to succeed.
Reallocate space in other partitions as needed to support Sun Cluster 3.0 software.
Refer to "System Disk Partitions" for partitioning guidelines.
The Solaris interface groups feature is disabled by default during Solaris software installation. Interface groups are not supported in a Sun Cluster configuration and should not be enabled. Refer to the ifconfig(1M) man page for more information about Solaris interface groups.
Install any Solaris software patches.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
Install any hardware-related patches.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
For Solstice DiskSuite software, install any Solstice DiskSuite software patches.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
The following example shows the mediator host phys-schost-1 unconfigured from the Solstice DiskSuite diskset schost-1 before the upgrade to Solaris 8 software.
(Check mediator status:) # medstat -s schost-1 (List all mediators:) # metaset -s schost-1 (Unconfigure the mediator:) # metaset -s schost-1 -d -m phys-schost-1 (Remove mediator software:) # pkgrm SUNWmdm (Begin software upgrade) |
To upgrade to Sun Cluster 3.0 software, go to "How to Upgrade Cluster Software Packages".
Perform this procedure on each node. You can perform this procedure on both nodes simultaneously if you have two copies of the Sun Cluster 3.0 framework CD-ROM.
The scinstall(1M) upgrade command is divided into a two-step process: the -u begin option and the -u finish option. This procedure runs the begin option. The finish option is run in "How to Finish Upgrading Cluster Software".
Become superuser on a cluster node.
If your volume manager is Solstice DiskSuite, install the latest Solstice DiskSuite mediator package (SUNWmdm) on each node.
If you are installing from the CD-ROM, insert the Sun Cluster 3.0 CD-ROM into the CD-ROM drive on a node.
If the volume daemon vold(1M) is running and configured to manage CD-ROM devices, it automatically mounts the CD-ROM on the /cdrom/suncluster_3_0 directory.
Change to the /cdrom_image/suncluster_3_0/SunCluster_3.0/Packages directory.
# cd /cdrom_image/suncluster_3_0/SunCluster_3.0/Packages |
Add the SUNWmdm package.
# pkgadd -d . SUNWmdm |
Reboot the node.
# shutdown -g 0 -y -i 6 |
Repeat on the other node.
Reconfigure mediators.
Determine which node has ownership of the diskset to which you will add the mediator hosts.
# metaset -s setname |
Specifies the diskset name
If no node has ownership, take ownership of the diskset.
# metaset -s setname -t |
Takes ownership of the diskset
Recreate the mediators.
# metaset -s setname -a -m mediator_host_list |
Adds to the diskset
Specifies the names of the nodes to add as mediator hosts for the diskset
Repeat for each diskset.
On each node, begin upgrade to Sun Cluster 3.0 software.
On one node, change to the /cdrom_image/suncluster_3_0/SunCluster_3.0/Tools directory.
# cd /cdrom_image/suncluster_3_0/SunCluster_3.0/Tools |
Upgrade the cluster software framework.
To Upgrade The ... |
Use This Command ... |
---|---|
First node |
./scinstall -u begin -F |
Second node |
./scinstall -u begin -N clusternode1 |
Specifies that this is the first node in the cluster that will be upgraded
Specifies the name of the first node in the cluster that will be upgraded, not the name of the second node to be upgraded
Refer to the scinstall(1M) man page for more information.
Reboot the node.
# shutdown -g 0 -y -i 6 |
When the first node reboots into cluster mode, it establishes the cluster. The second node waits if necessary for the cluster to be established before completing its own processes and joining the cluster.
Repeat on the other cluster node.
On each node, install any Sun Cluster patches.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
The following example shows the beginning process of upgrading a two-node cluster from Sun Cluster 2.2 to Sun Cluster 3.0 software. The cluster node names are phys-schost-1, the sponsor node, and phys-schost-2, which joins the cluster that phys-schost-1 established. The volume manager is Solstice DiskSuite and both nodes are used as mediator hosts for the diskset schost-1.
(Install the latest Solstice DiskSuite mediator package on each node:) # cd /cdrom/suncluster_3_0/SunCluster_3.0/Packages # pkgadd -d . SUNWmdm (Restore the mediator:) # metaset -s schost-1 -t # metaset -s schost-1 -a -m phys-schost-1 phys-schost-2 (Begin upgrade on the first node:) phys-schost-1# cd /cdrom/suncluster_3_0/SunCluster_3.0/Tools phys-schost-1# ./scinstall -u begin -F (Begin upgrade on the second node:) phys-schost-2# cd /cdrom/suncluster_3_0/SunCluster_3.0/Tools phys-schost-2# ./scinstall -u begin -N phys-schost-1 (Reboot each node:) # shutdown -g 0 -y -i 6 |
To update the directory paths, go to "How to Update the Root User's Environment".
Perform the following tasks on each node of the cluster.
Set the PATH to include /usr/sbin and /usr/cluster/bin.
For VERITAS Volume Manager, also set your PATH to include /etc/vx/bin. If you installed the VRTSvmsa package, also add /opt/VRTSvmsa/bin to your PATH.
Set the MANPATH to include /usr/cluster/man. Also include the volume manager-specific paths.
For Solstice DiskSuite software, set your MANPATH to include /usr/share/man.
For VERITAS Volume Manager, set your MANPATH to include /opt/VRTSvxvm/man. If you installed the VRTSvmsa package, also add /opt/VRTSvmsa/man to your MANPATH.
(Optional) For ease of administration, set the same root password on each node.
Start a new shell to activate the environment changes.
To upgrade to Sun Cluster 3.0 data service software, go to "How to Upgrade Data Service Software Packages".
Perform this procedure on each cluster node.
Become superuser on a node of the cluster.
Upgrade applications and apply application patches as needed.
Refer to your application documentation for installation instructions.
If the applications are stored on shared disks, you must master the relevant disk groups and manually mount the relevant file systems before you upgrade the application.
Add data services.
Insert the Sun Cluster 3.0 data services CD-ROM into the CD-ROM drive on the node.
Enter the scinstall(1M) utility.
# scinstall |
Follow these guidelines while using the interactive scinstall utility.
Interactive scinstall enables you to type ahead. Therefore, do not press Return more than once if the next menu screen does not appear immediately.
Unless otherwise noted, pressing Control-D returns you either to the start of a series of related questions or to the Main Menu.
To add data services, type 4 (Add support for a new data service to this cluster node).
Follow the prompts to add data services.
Eject the CD-ROM.
Install any Sun Cluster data service patches.
Refer to Sun Cluster 3.0 Release Notes for the location of patches and installation instructions.
Repeat Step 1 through Step 4 on the other node of the cluster.
Shut down the second node to be upgraded to Sun Cluster 3.0 software.
Leave the second node shut down until after the first, or sponsor, node has been rebooted.
phys-schost-2# shutdown -g 0 -y -i 0 |
Reboot the first, sponsor node of the cluster.
Ensure that the second node has been shut down before rebooting the first node. Otherwise, rebooting the first node while the second node is still up will panic the second node because quorum votes have not yet been assigned.
phys-schost-1# shutdown -g 0 -y -i 6 |
After the first node has completed booting, boot the second node.
phys-schost-2# boot |
After both nodes have rebooted, verify from either node that both nodes are cluster members.
# scstat -n Node Node Name: phys-schost-1 Status: Online Node Name: phys-schost-2 Status: Online |
See the scstat(1M) man page for more information about displaying cluster status.
To assign a quorum device and finish the upgrade, go to "How to Finish Upgrading Cluster Software".
This procedure finishes the scinstall(1M) upgrade process begun in "How to Upgrade Cluster Software Packages". Perform these steps on each node of the cluster.
Become superuser on each node of the cluster.
Choose a shared disk to be the quorum device.
You can use any disk shared by both nodes as a quorum device. From either node, use the scdidadm(1M) command to determine the shared disk's device ID (DID) name. You specify this device name in Step 5, in the -q globaldev=devicename option to scinstall.
# scdidadm -L |
If your volume manager is VxVM, reinstall the VxVM software on each node of the cluster.
Whenever you must reboot, you must shut down the second node of the cluster before rebooting the first, or sponsor, node. After rebooting the first node, then bring the second node back up. Otherwise, rebooting the first node while the second node is still up will panic the second node because quorum votes have not yet been assigned.
Install VxVM software, including any patches.
Follow the procedures in "How to Install VERITAS Volume Manager Software".
Configure VxVM.
Follow the procedures listed in "Configuring VxVM for Sun Cluster Configurations".
Insert the Sun Cluster 3.0 data services CD-ROM into the CD-ROM drive on the node.
This step assumes that the volume daemon vold(1M) is running and configured to manage CD-ROM devices.
Finish the cluster software upgrade on that node.
# scinstall -u finish -q globaldev=devicename \ -d /cdrom_image/scdataservices_3_0 -s srvc[,srvc] |
Specifies the name of the quorum device
Specifies the directory location of the CD-ROM image
Specifies the name of the data service to configure
An error message similar to the following might be generated. You can safely ignore it.
** Installing Sun Cluster - Highly Available NFS Server ** Skipping "SUNWscnfs" - already installed |
Eject the CD-ROM.
Repeat Step 4 through Step 6 on the other node.
When completed on both nodes, the cluster is removed from install mode and all quorum votes are assigned.
If your volume manager is Solstice DiskSuite, from either node bring pre-existing disk device groups online.
# scswitch -z -D disk-device-group -h node |
Performs the switch
Specifies the name of the disk device group, which for Solstice DiskSuite software is the same as the diskset name
Specifies the name of the cluster node that serves as the primary of the disk device group
From either node, bring pre-existing data service resource groups online.
At this point, Sun Cluster 2.2 logical hosts are converted to Sun Cluster 3.0 resource groups, and the names of logical hosts are appended with the suffix -lh. For example, a logical host named lhost-1 is upgraded to a resource group named lhost-1-lh. Use these converted resource group names in the following command.
# scswitch -z -g resource-group -h node |
Specifies the name of the resource group to bring online
You can use the scrgadm -p command to display a list of all resource types and resource groups in the cluster. The scrgadm -pv command displays this list with more detail.
If you are using the Sun Management Center product to monitor your Sun Cluster configuration, install the Sun Cluster module for the Sun Management Center product.
Ensure that you are using the most recent version of Sun Management Center software (formerly Sun Enterprise SyMON).
Refer to the Sun Management Center documentation for installation or upgrade procedures.
Follow guidelines and procedures in "Installation Requirements for Sun Management Center Software for Sun Cluster Monitoring" to install the Sun Cluster module packages.
The following example shows the finish process of upgrading a two-node cluster upgraded from Sun Cluster 2.2 to Sun Cluster 3.0 software. The cluster node names are phys-schost-1 and phys-schost-2, the device group names are dg-schost-1 and dg-schost-2, and the data service resource group names are lh-schost-1 and lh-schost-2.
(Determine the DID of the shared quorum device:) phys-schost-1# scdidadm -L (Finish upgrade on each node:) phys-schost-1# scinstall -u finish -q globaldev=d1 \ -d /cdrom/suncluster_3_0 -s nfs phys-schost-2# scinstall -u finish -q globaldev=d1 \ -d /cdrom/suncluster_3_0 -s nfs (Bring device groups and data service resource groups on each node online:) phys-schost-1# scswitch -z -D dg-schost-1 -h phys-schost-1 phys-schost-1# scswitch -z -g lh-schost-1 -h phys-schost-1 phys-schost-1# scswitch -z -D dg-schost-2 -h phys-schost-2 phys-schost-1# scswitch -z -g lh-schost-2 -h phys-schost-2 |
To verify that all nodes have joined the cluster, go to "How to Verify Cluster Membership".
Perform this procedure to verify that all nodes have joined the cluster.
Become superuser on any node in the cluster.
Display cluster status.
Verify that cluster nodes are online and that the quorum device, device groups, and data services resource groups are configured and online.
# scstat |
See the scstat(1M) man page for more information about displaying cluster status.
On each node, display a list of all devices the system checks to verify their connectivity to the cluster nodes.
The output on each node should be the same.
# scdidadm -L |
The cluster upgrade is complete. You can now return the cluster to production.