Installing Veritas Storage Foundation Cluster File System High Availability using yum

You can install SFCFSHA using yum. yum is supported for Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6.

To install SFCFSHA using yum

  1. Run the installsfcfsha -pkginfo command to get SFCFSHA RPMs.
    # ./installsfcfsha -pkginfo
  2. Add the SFCFSHA RPMs into the yum repository. You can add SFCFSHA RPMs into either a new repository or an existing repository with other RPMs. Use the createrepo command to create or update the repository. The operating system package createrepo-ver-rel.noarch.rpm provides the command.

    • To create the new repository /path/to/new/repository/ for SFCFSHA RPMs

      1.

      Create an empty directory, for example: /path/to/new/repository. The yum client systems should be able to access the directory with the HTTP, FTP, or file protocols.

      # rm -rf /path/to/new/repository
      # mkdir -p /path/to/new/repository

      2.

      Copy all the SFCFSHA RPMs into /path/to/new/repository/.

      # cp -f VRTSvlic-* VRTSperl-* ... VRTSsfcpi60-*\
      /path/to/new/repository 

      3.

      Use the createrepo command to create the repository.

      # /usr/bin/createrepo /path/to/new/repository

      Output resembles:

      27/27 - VRTSsfcpi60-6.0.000.000-GA_GENERIC.noarch.rpm
      Saving Primary metadata
      Saving file lists metadata
      Saving other metadata 

      4.

      The metadata for this repository is created in /path/to/new/repository/repodata.

    • To use an existing repository in /path/to/existing/repository/ for SFCFSHA RPMs

      1.

      Copy all the SFCFSHA RPMs into /path/to/existing/repository/. The yum client systems should be able to access the directory with the HTTP, FTP, or file protocols.

      # cp -f VRTSvlic-* VRTSperl-* ... VRTSsfcpi60-*\
      /path/to/existing/repository 

      2.

      Use the createrepo command with the --update option to update the repository's metadata.

      # createrepo --update /path/to/existing/repository

      Output resembles:

      27/27 * VRTSsfcpi60-6.0.000.000-GA_GENERIC.noarch.rpm
      Saving Primary metadata
      Saving file lists metadata
      Saving other metadata 

      3.

      The metadata in /path/to/existing/repository/repodata is updated for the newly added RPMs.

    • To create a packge group for SFCFSHA RPMs when the repository is created or updated (optional)

      1.

      Create an XML file, which you can name SFCFSHA_group.xml in the repository directory. In the file specify the name, the id, the package list, and other information for the group. An example of this XML file for SFCFSHA is:

      # cat SFCFSHA_group.xml
      <comps>
        <group>
          <id>SFCFSHA60</id>
          <name>SFCFSHA60</name>
          <default>true</default>
          <description>RPMs of SFCFSHA 6.0</description>
          <uservisible>true</uservisible>
          <packagelist>
            <packagereq type="default">VRTSvlic</packagereq>
            <packagereq type="default">VRTSperl</packagereq>
             ... [other RPMs for SFCFSHA]
            <packagereq type="default">VRTSsfcpi60</packagereq>
          </packagelist>
        </group>
      </comps> 
      

      2.

      Create the group when the repository is created or updated. You can generate this XML file using the installer with the option -yumgroupxml.

      # createrepo -g SFCFSHA_group.xml /path/to/new/repository/

      Or

      # createrepo -g SFCFSHA_group.xml --update /path/to/existing\
      /repository/
    Refer to the Red Hat Enterpirse Linux Deployment Guide for more information on yum repository configuration.
  3. Configure a yum repository on a client system.

    • Create a .repo file under /etc/yum.repos.d/. An example of this .repo file for SFCFSHA is:

      # cat /etc/yum.repos.d/SFCFSHA.repo
      [repo-SFCFSHA]
      name=Repository for SFCFSHA
      baseurl=file:///path/to/repository/
      enabled=1
      gpgcheck=0
      

      The values for the baseurl attribute can start with http://, ftp://, or file://. The URL you choose needs to be able to access the repodata directory. It also needs to access all the SFCFSHA RPMs in the repository that you create or update.

    • Check the yum configuration. List SFCFSHA RPMs.

      # yum list 'VRTS*'
      Available Packages
      VRTSperl.x86_64        5.10.0.7-RHEL5.3           repo-SFCFSHA
      VRTSsfcpi60.noarch       6.0.000.000-GA_GENERIC     repo-SFCFSHA
      VRTSvlic.x86_64        3.02.52.000-0              repo-SFCFSHA
      ... 

    The SFCFSHA RPMs may not be visible immediately if:

    • the repository was visited before the SFCFSHA RPMs were added, and

    • the local cache of its metadata has not expired.

    To eliminate the local cache of the repositories' metadata and get the latest information from the specified baseurl, run the following commands:
    # yum clean expire-cache
    # yum list 'VRTS*'

    Refer to the Red Hat Enterpirse Linux Deployment Guide for more information on yum repository configuration.

  4. Install the RPMs on the target systems.

    • To install all the RPMs

      1.

      Specify each RPM name as its yum equivalent. For example:

      # yum install VRTSvlic VRTSperl ... VRTSsfcpi60 

      2.

      Specify all of SFCFSHA's RPMs by its package glob. For example:

      # yum install 'VRTS*'

      3.

      Specify the group name if a group is configured for SFCFSHA's RPMs. In this example, the group name is SFCFSHA60:

      # yum install @SFCFSHA60

      Or

      # yum groupinstall SFCFSHA60
    • To install one RPM at a time

      1.

      Run the installsfcfsha -pkginfo command to determine package installation order.

      2.

      Use the same order as the output from the installsfcfsha -pkginfo command:

      # yum install VRTSvlic
      # yum install VRTSperl
        ...
      # yum install VRTSsfcpi60 
  5. After you install all the RPMs, use the /opt/VRTS/install/installsfcfsha script to license, configure, and start the product.

    If the VRTSsfcpi60 package is installed before you use yum to install SFCFSHA, this package is not reinstalled. The /opt/VRTS/install/installsfcfsha script may not be created. If the script is not created, use the /opt/VRTS/install/bin/UXRT60/add_install_scripts script to create the installsfcfsha or uninstallsfcfsha scripts after all the other SFCFSHA RPMs are installed.

    # /opt/VRTS/install/bin/UXRT60/add_install_scripts
    Creating install/uninstall scripts for installed products
    Creating /opt/VRTS/install/installsfcfsha for UXRT60
    Creating /opt/VRTS/install/uninstallsfcfsha for UXRT60