Install STA

Installing STA involves multiple procedures. You must complete them in the order listed.

  1. Identify or Create Information Required for the Installation

  2. Verify Installation Prerequisites

  3. Download the STA Installer

  4. Unzip the STA Installer

  5. Run the STA Installer

  6. Verify Successful Installation

  7. Relocate the STA Logs Directory (optional)

  8. Register the Oracle Central Inventory Location

Identify or Create Information Required for the Installation

Identify and, if necessary, create users and locations to run the STA installer.

  1. Review the information in Users, Groups, and Locations Used by the STA Installer to understand the users and locations needed for the STA installer.

  2. On the STA server, open a terminal session. Log in as the system root user.

  3. Determine if there is an Oracle central inventory pointer file /etc/oraInst.loc.

    # cat /etc/oraInst.loc
    
    • If the file exists, you will likely need to identify and record information as outlined in the following steps.

    • If the file does not exist, you will likely need to create users and locations as outlined in the following steps.

  4. Identify or create the Oracle group.

    # groupadd oinstall
    
  5. Identify or create the username and password of the Oracle user. This user must belong to the Oracle group.

    # useradd -g oinstall -d /home/oracle oracle
    # passwd oracle
    

    Depending on your site configuration, some of the activities performed by this user may require system root privileges. You should add the user to the system sudoers file.

  6. Identify or create the Oracle central inventory location. This directory must be owned by the Oracle user.

    # mkdir -p /opt/oracle/oraInventory
    # chown oracle /opt/oracle/oraInventory
    # chgrp oinstall /opt/oracle/oraInventory
    # ls -la /opt/oracle/oraInventory
    
  7. Identify or create Oracle storage home location. This directory must have at least 11 GB of free space. It must be owned by the Oracle user and Oracle group.

    # mkdir /Oracle
    # chown oracle /Oracle
    # chgrp oinstall /Oracle
    
  8. Identify or create the STA installer location. For example:

    # mkdir /Installers
    
  9. Obtain the password for the system root user. The STA installer requires root access to perform certain tasks and will prompt for the password.

  10. Choose usernames for the WebLogic Administrator, STA Administrator, and MySQL accounts that will be created during the installation.

  11. Choose port numbers for the configurable internal and external ports required for STA operations. Ensure that the external ports are open on the required networks.

  12. Obtain your site's domain name for configuring Oracle's Remote Diagnostics Agent (RDA). See the STA User's Guide for details.

Verify Installation Prerequisites

Verify prerequisites before running the STA installer. The installation will fail if any of these prerequisites are not met.

The STA installation assumes 64-bit Linux has been installed with the Linux RPM packages specified in Install Required Linux Packages. If a required package is not installed, the STA installation will display an error message and not allow you to continue until the package is installed. See Requirements for STA for a complete list of installation requirements.

  1. Before choosing to permanently remove or replace existing software, back up files as needed.

  2. On the STA server, open a terminal session. Log in as the Oracle user.

  3. Verify that STA is not installed on the server. For example:

    $ ls /etc/init.d/sta*
    ls: cannot access /etc/init.d/sta*: No such file or directory
    $ ls /usr/bin/STA
    ls: cannot access /usr/bin/STA: No such file or directory
    

    If STA is already installed, you must deinstall it and then install the new version of STA and then upgrade the database. See Upgrade to STA 2.3.1 for details.

  4. Verify that MySQL is not installed on the STA server. For example:

    $ ls /etc/init.d/mysql*
    ls: cannot access /etc/init.d/mysql*: No such file or directory
    $ ls /usr/bin/mysql*
    ls: cannot access /usr/bin/mysql*: No such file or directory
    

    If MySQL is already installed, you must deinstall it before you can install STA.

  5. Verify that the /tmp directory has at least 4 GB of free space. For example:

    $ df -H /tmp
    Filesystem             Size   Used  Avail Use% Mounted on /dev/mapper/vg_tbivb03-lv_root        53G    35G    16G  70% /
    
  6. Verify that the Oracle storage home location has at least 11 GB of free space. This is the default STA and WebLogic installer working location. For example:

    $ df -H /Oracle
    Filesystem             Size   Used  Avail Use% Mounted on /dev/mapper/vg_tbivb03-STA_OracleVol  34G   3.8G    29G  12% /Oracle
    

    If the directory does not have enough space, you can optionally specify a different working directory when you start the STA installer. See STA installer working location for details.

  7. Verify SELinux is disabled.

    $ sestatus
    SELinux status:         disabled
    
  8. Verify the iptables firewall service is running. Depending on your site configuration, this step may require system root privileges.

    Linux 6:

    $ sudo service iptables status
    

    Linux 7:

    $ systemctl status iptables
    
  9. Stop and deconfigure SNMP services.

    To avoid network port collisions and other issues, the STA server must not run other SNMP services. The STA installer will quit in the following situations:

    • The snmpd and snmptrapd daemon services are running,

    • UDP ports 161 (SNMP) and 162 (SNMPTRAP) are not available.

    Perform the following steps as required to stop the SNMP services:

    1. Display the current status of the SNMP snmpd and snmptrapd services.

      Linux 6:

      $ service snmpd status 
      $ service snmptrapd status 
      

      Linux 7:

      $ systemctl status snmpd 
      $ systemctl status snmptrapd 
      
    2. If necessary, stop the SNMP services immediately.

      Linux 6:

      $ service snmpd stop 
      $ service snmptrapd stop
      

      Linux 7:

      $ systemctl stop snmpd 
      $ systemctl stop snmptrapd
      

      If you receive a "FAILED" error, the services may already be stopped.

    3. Disable the SNMP services in the Linux services configuration file so they do not start automatically when Linux reboots. Depending on your site configuration, this step may require system root privileges.

      Linux 6:

      $ sudo chkconfig snmpd off 
      $ sudo chkconfig snmptrapd off 
      

      Linux 7:

      $ systemctl disable snmpd 
      $ systemctl disable snmptrapd 
      
  10. Review and verify the applicable mode-specific requirements, as follows:

Download the STA Installer

Download the STA installation package from the Oracle Software Delivery Cloud.

  1. Go to the Oracle Software Delivery Cloud: http://edelivery.oracle.com/

  2. Sign In or Register.

  3. In the search field, enter StorageTek Tape. Select select StorageTek Tape Analytics.

  4. Click +Add to Cart for the release you want to download.

  5. Click View Cart/Checkout.

  6. Verify the release level is correct, then click Continue.

  7. Read and accept the terms/restrictions. Click Continue.

  8. Download all parts of the STA installation package (for example 1of2 and 2of2).

  9. If prompted, install the Download Manager.

  10. Save the STA download package to an accessible location.

    The download package files include the following, where version is the STA installation version number.

    • sta_install_version_linux64.bin—Required for all installations.

    • sta_install_version_linux64-2.zip—Required for all installations.

    • silentInstallUtility_version.jar—Response file build utility. Required only if you will be using the silent-mode installer or deinstaller.

Unzip the STA Installer

Unzip the download package to the installation directory. Unzip only the top-level zip files (for example, V76699-01of2.zip). Do not unzip any files contained within these files (for example, sta_install_2.1.1.9.16_linux64-2.zip).

  1. Unzip the STA installer to the installation directory created earlier. For example:

    $ unzip V76699-01_1of2.zip -d /Installers
    $ unzip V76699-01_2of2.zip -d /Installers
    
  2. Ensure that the Oracle user has all of the following permissions:

    • Ownership of the installation files

    • Execute permissions to the sta_install_version_linux64.bin file

    • Read access to sta_install_version_linux64-2.zip file and silentInstallUtility_version.jar files

  3. Review the Release Notes, which are included in the installer download package.

Run the STA Installer

Begin the installation by launching either the installation wizard or the silent mode installer.

  1. On the STA server, open a terminal session. Log in as the root user.

  2. Clear as much space as possible in the system temporary directory (/tmp). Remove all files and directories owned by the Oracle user, which may be left over from previous STA installations or installation preparation activities.

    $ rm -rf /tmp/*
    
  3. Switch to the Oracle user. Change to the STA installer location. For example:

    $ cd /Installers
    
  4. Launch the STA installer with one of the following commands:

    • Installation Wizard (recommended)— See Install STA with the Installation Wizard. This mode provides a graphical user interface for installing STA. It requires an X11 display.

      $ ./sta_install_<sta version>_linux64.bin
      

      For example:

      $ ./sta_install_2.3.1_linux64.bin
      
    • Silent Installer — Silent mode allows you to bypass the graphical user interface and supply the installation options in an XML properties file called the response file. This mode is useful for unattended installations and for installing STA on multiple machines. By using a response file, you can supply a single set of parameters and automate the installation. You can run the silent-mode installer either from a script or from the Linux command line.

      $ ../sta_install_<sta version>_linux64.bin –silent  –responseFile <absolute path to response file>
      

      For example:

      $ ./sta_install_2.3.1_linux64.bin –silent –responseFile /Installers/SilentInstall.rsp 
      

      Before using this mode, you must also download the silentInstallUtility_version.jar file and create a response file specifying the installation options.

      See Silent-mode Installer for instructions.

Install STA with the Installation Wizard

Install STA by completing the prompts within the installation wizard.

Note:

System changes are not implemented until you complete all the installer screens and click Install on the summary screen. Anytime before then, you can return to a previous screen and modify your entries.
  1. Before running the installer, review the following to familiarize yourself with the what you will configure during the installation:

  2. Launch the installer by following the instructions in Run the STA Installer.

  3. On the Installation Inventory Setup screen:

    • Central Inventory Directory — Enter an absolute path or click Browse to navigate to the directory to use for the Oracle Central Inventory directory (see Oracle central inventory location). For example /opt/oracle/oraInventory.

    • Operating System Group — Enter the Linux group that will have write permissions to the central inventory group (see Oracle group). For example oinstall.

    Wizard Install Inventory Setup screen with sample values.
  4. Review the Welcome screen, then click Next.

    STA installation wizard Welcome screen
  5. On the Installation Location screen:

    Sample installation location screen.
    • Oracle Storage Home — Enter an absolute path or click Browse to navigate the directory where STA and associated Oracle software will be installed. For example, /Oracle.

      • If the directory already exists, the Oracle user and group must have full permissions to it.

      • If the directory does not exist, the Oracle user and group must have full permissions to the parent directory, so the STA installer can create the Oracle Storage Home directory.

    • STA Home — This cannot be changed. This is the subdirectory within Oracle Storage Home where STA will be installed. This subdirectory is assigned the name StorageTek_Tape_Analytics and it will be created automatically during the installation.

    • View — Click this button to display a list of all software currently installed in the Oracle Storage Home directory you have specified.

  6. On the Prerequisite Checks screen, the installer performs a series of checks which may take several minutes.

    STA installation wizard Prerequisite Checks screen

    The possible outcomes of each verification task are as follows:

    • Success  Success icon—The prerequisite passed successfully.

    • Warning Warning icon—The recommended prerequisite did not pass.

    • Failure  Failure icon—The required prerequisite did not pass.

    You cannot continue the installation if there are any Failures. You should resolve all Warning outcomes before continuing. You can keep the installer up at this screen while you resolve any issues, and then click Rerun to run the verification process again.

    Depending on the nature of a prerequisite, you may need to stop a service, change user privileges, or install a yum package to resolve issues. Click a task in the main window. The task is highlighted in the Message pane with expanded detail.

  7. On the Enter Root Password screen, enter the existing system root password.

  8. On the Set up DB Directories screen, enter:

    • Database Data Location — the absolute path to the directory where the STA database will be located (for example /dbdata).

    • Database Backup Location — the absolute path to the directory where the STA database backups will be located (for example /dbbackup). This cannot be the same as the database data location.

  9. Review the Set up Admin Accounts screen, then click Next. Follow the prompts to enter the username and passwords for each of the following users.

    • WebLogic Administrator

    • STA Administrator

    Caution:

    Make a secure record of the account credentials (passwords) you create. If you lose them, you will not be able to login and must re-install STA.
  10. Review the Set up Database Accounts screen, and then click Next. Follow the prompts to enter the username and passwords each of the following users:

    • Database Root User

    • Database Application User

    • Database Reports User

    • Database Administrator

  11. Review the Enter Communication Ports screen, then click Next. Follow the prompts to enter the ports for the following:

    • WebLogic Admin Console

    • STA Engine

    • STA Adapter

    • STA UI

    The typical ports used are listed in Ports Configured During STA Installation.

  12. On the Set up SNMP Redirection screen, enter the redirection port used for SNMP traps.

  13. On the Configure RDA screen, enter your site's fully qualified domain name. For example, us.example.com.

    STA uses RDA to take snapshots of all logs related to the STA application and database, including operating system, installation, and configuration information.

  14. Review the Installation Summary screen.

    IMPORTANT:

    Once you click Install, you cannot pause or cancel the installation.
    Installation summary screen for the installation wizard.

    Optionally, click Save to save the installation details to a .txt file. Once you are ready to install STA, click Install.

  15. The Installation Progress and Configuration Progress screens will display the current status of the installation. Configuration can take 30-60 minutes to complete.

    IMPORTANT:

    Do not close this window or interrupt the installation, as this may leave incomplete installation components on the server.
    Wizard Configuration Progress screen.
  16. Once the Installation Complete screen displays, you can click Finish.

    Wizard Installation Complete screen.

Verify Successful Installation

Verify that STA is running to make sure the installation was successful.

  1. Verify the STA bin directory is included in the PATH variable for the Oracle user.

    1. On the STA server, open a terminal session. Log in as the Oracle user.

    2. Open the Oracle user profile using a text editor. For example:

      $ vi /home/oracle/.bash_profile
      
    3. Add the STA bin directory to the PATH definition. For example, add the following line to the file:

      PATH=$PATH:<Oracle_storage_home>/StorageTek_Tape_Analytics/common/bin
      

      Where Oracle_storage_home is the Oracle storage home location specified during STA installation.

    4. Save and exit the file.

    5. Log out and log back in as the Oracle user.

    6. Confirm that the PATH variable has been updated correctly.

      $ echo $PATH
      /usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin:/Oracle/StorageTek_Tape_Analytics/common/bin
      
  2. Verify that all STA services are running and active:

    $ STA status all
    mysql is running
    staservd service is running
    staweblogic service is running
    staengine service is running
     .... and the deployed application for staengine is in an ACTIVE state
    staadapter service is running
     .... and the deployed application for staadapter is in an ACTIVE state
    staui service is running
     .... and the deployed application for staui is in an ACTIVE state
    
  3. Proceed as follows:

Relocate the STA Logs Directory (optional)

Relocate the STA and MySQL logs to a location other than the default, which is /var/log/tbi.

After you complete this procedure, STA will write logs to the new location. You can perform this procedure anytime after STA has been installed. See Review STA File System Layout for the location requirements.

  1. On the STA server, open a terminal session. Log in as the system root user.

  2. Stop all STA services:

    # STA stop all
    
  3. Create the new logs directory. For example:

    # mkdir -p /LOGS_DIR/log/
    
  4. Change access permissions to the directory so STA and MySQL can write to it. For example:

    # chmod 777 /LOGS_DIR/log
    
  5. Move the current /var/log/tbi directory to the STA logs directory you have just created.

    # mv /var/log/tbi /LOGS_DIR/log
    
  6. Create a symbolic link from your new STA logs directory to the default location. For example:

    # ln -s /LOGS_DIR/log/tbi /var/log/tbi
    
  7. Restart STA:

    # STA start all
    

Register the Oracle Central Inventory Location

After STA installation, register the Oracle central inventory location on the STA server to create an Oracle central inventory pointer file, /etc/oraInst.loc. The pointer file allows the Oracle central inventory location and Oracle group to be known to all Oracle installers used on the server.

  1. On the STA server, open a terminal session. Log in as the Oracle user.

  2. Display the location, as follows.

    • If the Oracle central inventory has been registered, you can display the contents of the /etc/oraInst.loc pointer file. The location is defined by the inventory_loc parameter, and the Oracle group is defined by the inst_group parameter.

      For example:

      $ cat /etc/oraInst.loc
      inventory_loc=/opt/oracle/oraInventory
      inst_group=oinstall
      
    • If the Oracle central inventory has not been registered or the pointer file has been deleted, you can search for the Oracle central inventory, which has the directory name oraInventory. For example:

      $ find / -name oraInventory
      /opt/oracle/oraInventory
      
  3. Change to the Oracle central inventory directory. You specify this directory the first time an Oracle product is installed on the STA server. For example:

    $ cd /opt/oracle/oraInventory
    
  4. Switch to the root user. Run the registration script, located in that directory.

    # ./createCentralInventory.sh
    

    The Oracle central inventory location and the Oracle group and are now identified in the Oracle central inventory pointer file, /etc/oraInst.loc.