Upgrading Solaris on a node

The tasks that you need to perform when upgrading the Solaris operating system include the following:

To stop VCS

  1. Make the VCS configuration writable. On the first system, type:

    # haconf -makerw
    
  2. Move all service groups from the node you are plan to upgrade to another system. Keep services from failing over to this server. On the system where you plan to upgrade, type:

    # hasys -freeze -persistent -evacuate upgrade_server
  3. Check if all service groups and resources are offline on the system and online on the other system. Type:

    # hastatus -summary
    
  4. Close the configuration and unload the VCS services on the system that you plan to upgrade. On the system that you plan to upgrade, type:

    # haconf -dump -makero
    # hastop -local
    
  5. Confirm that VCS has stopped. 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 fencing, GAB, LLT, and unload the kernel modules

  1. Unconfigure fencing.

    # vxfenconfig -U
  2. Unload the FENCING module from the kernel. Perform the following:

    • Determine the kernel module ID.

      # modinfo | grep vxfen
    • Unload the module from the kernel.

      # modunload -i vxfen_id
  3. Unconfigure GAB.

    # gabconfig -U
    
  4. 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
      
  5. 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)?
  6. Type Y on each system in response to the message.

  7. Unload the LLT module from the kernel:

    • Determine the kernel module ID:

      # modinfo | grep llt
      

      The module IDs are in the left-hand column of the output.

    • Unload the module from the kernel:

      # modunload -i llt_id
      

To remove the fencing, GAB, and LLT packages and patches

To upgrade the operating system

  1. Follow the Sun installation guide to upgrade the operating system kernel to the new version of Solaris.

  2. As the system comes up, enter single-user mode.

To reinstall fencing, GAB, and LLT from the software disc and restart

  1. In single-user mode, log on as superuser on the system that you have upgraded.

  2. Check whether the /tmp directory is mounted.

    # mount
    
  3. If the /tmp directory is not mounted, then enter:

    # mount /tmp
    
  4. Create a directory for installation:

    # mkdir /tmp/install
    
  5. Insert the software disc with the VCS software into a system drive where you have upgraded. The Solaris volume-management software automatically mounts the disc as /cdrom/cdrom0. Type the command:

    # cd /cdrom/cdrom0
    
  6. Copy the package files from the software disc to the temporary directory:

    # cp -r pkgs/VRTSllt.pkg /tmp/install
    # cp -r pkgs/VRTSgab.pkg /tmp/install
    # cp -r pkgs/VRTSvxfen.pkg /tmp/install
    		
  7. Install the LLT, GAB, and fencing packages and patches. As you enter the command, be sure to install the packages and patches in the order shown:

    • Install the packages.

      # cd /tmp/install
      # pkgadd -d VRTSllt.pkg
      # pkgadd -d VRTSgab.pkg
      # pkgadd -d VRTSvxfen.pkg
      				
  8. Bring up the system in multi-user mode:

    # cd /
    # init 3
    

To restart VCS

  1. 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
  2. If the VCS services are not running, reload the VCS services. Type:

    # hastart
    
  3. Make the configuration writable.

    # haconf -makerw
  4. Unfreeze the upgraded server and save the configuration. On the upgraded server, type:

    # hasys -unfreeze -persistent upgraded_server
    # haconf -dump -makero