4 Installing Oracle HSM and QFS Software

Oracle HSM uses the Image Packaging System (IPS) that became standard with Oracle Solaris 11. IPS is a network-centric package management system that streamlines and coordinates installation, upgrade, and removal of software packages. It greatly simplifies patch management and eases deployment into production environments.

Using the Solaris Package Manager graphical desktop application or IPS terminal commands, administrators access an Oracle Solaris software repository and locate, download, and install the required software packages, while IPS automatically handles dependency checking and package validation. IPS makes changes to a snapshot of the system so that new software can be deployed non-disruptively, during a maintenance window. So changes can be rolled back, if necessary. Installations and updates can thus be applied safely to running, production systems.

Check Installation Requirements

For the latest information on installation requirements, including the supported versions of the Oracle Solaris and Linux operating systems, Oracle Cluster software, and other required or supported software packages, consult the Oracle HSM release notes, Oracle support services at support.oracle.com, and the Oracle HSM wiki pages at wikis.oracle.com/display/hsmqfs/Home.

Download the HSM Installation Package

Download the installation package for your level of HSM. The download method depends on the version.

To Download Versions 6.1.3 and Below

For versions 6.1.3 and below, use the Oracle Software Delivery Cloud.

  1. Go to: edelivery.oracle.com

  2. Sign in, or register.

  3. Search for "HSM". Locate the correct version and click Add to Cart.

  4. Click Check Out in the upper right.

  5. Select a language/platform. Click Continue.

  6. Read and accept the terms. Click Continue.

  7. Select the package and then click Download. Save to a directory accessible from all Oracle HSM hosts. For the examples in this chapter, we download the file to the /hsmqfs directory on a network file server named sw_install

  8. While still on the download page, click View Digest. Save these values for comparison to the download. For instructions on calculating checksums from a file, see the Solaris dgst and md5 man pages.

To Download Versions 6.1.4 and Above

For versions 6.1.4 and above, use My Oracle Support.

  1. Go to: support.oracle.com

  2. Sign in, or register.

  3. Click the Patches & Updates tab.

  4. Within the Patch Search panel, click the Search tab.

  5. Click Product or Family (Advanced).

  6. In the Product field, enter HSM. Select Oracle Hierarchical Storage Manager (HSM) and StorageTek QFS Software from the product list.

  7. Select the Include all products in family checkbox.

  8. In the Release field, select either:

    • Oracle Hierarchical Storage Manager (HSM) 6.1.4.0.0

    • StorageTek QFS Software 6.1

  9. Click Search.

  10. Within the Patch Advanced Search Results panel, click the link in the Patch Name column (this will likely be a number, such as 87654321).

  11. Click Download.

  12. Within the File Download pop-up, click the link for the .zip file. Save it to a directory accessible from all Oracle HSM hosts.

Unzip the Download

Once you have downloaded the ZIP file, unzip it in the local directory.

In the example, we unzip the Oracle Hierarchical Storage Manager and StorageTek QFS Software zip file in the /hsmqfs subdirectory and then list the contents:

root@sw_install:~# cd /hsmqfs
root@sw_install:~# unzip Q12345-02.zip
root@sw_install:~# ls Q12345-02/
./ COPYRIGHT.txt linux.iso README.txt
../ iso.md5 Oracle-HSM_6.1-04/
root@sw_install:~# ls Oracle-HSM_6.1-04/
total 42
./ COPYRIGHT.txt linux1/ solaris_sparc/
../ README.txt linux2/ solaris_x64/

Check and Update the Solaris Operating System

Oracle HSM 6.1.4 requires Solaris 11. If running Solaris 11.4, it must be SRU 9 or later. Solaris 10 and earlier releases are no longer supported. Make sure that all Solaris hosts have been upgraded before proceeding:

  1. Log into the host as root.

    root@hsmhost:~#  
    
  2. Display the Solaris version number. Use the command uname -v.

    In the example, the host is running Solaris 11.4:

    root@hsmhost:~# uname -v
    11.4.6.4.0
    root@hsmhost:~# 
    
  3. If the uname -v command does not return 11.x, upgrade the host operating system using the procedures documented in the Oracle Solaris 11 Information Library, which is available from the Oracle Help Center at: https://docs.oracle.com/en/operating-systems/solaris.html.

  4. Repeat the three preceding steps until all host have been checked and, if necessary, upgraded.

  5. If you are preparing a high-availability file-system, go to "Install Solaris Cluster Software (High-Availability Configurations Only)".

  6. If you are upgrading a multi-host, shared file system, go to "Upgrade Shared Oracle HSM File Systems".

  7. Otherwise, go directly to "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host".

Install Solaris Cluster Software (High-Availability Configurations Only)

  1. On each host, install the Oracle Solaris Cluster and SUNW.HAStoragePlus data service software, as described in the installation and data-service administration documents in the online Information Library for the Solaris Cluster software.

  2. Then go to "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host".

Upgrade Shared Oracle HSM File Systems

If you are upgrading the software for a shared file-system that needs to remain available during the upgrade process, consider a rolling upgrade. When one or more potential metadata servers are configured, in addition to the active server, you can update an inactive server, activate the updated server, and then configure and re-activate the primary server before upgrading remaining potential metadata servers and clients. This rolling upgrade process keeps an active Oracle HSM metadata server available at all times, so that file-system data remains accessible to clients.

To perform a rolling upgrade, carry out the following tasks:

Upgrade Any Significantly Older Releases of Oracle HSM

At any given time, the Oracle HSM software on the metadata server and clients of a shared file system must be, at most, one release apart. If your shared file-system configuration includes hosts that are running Oracle HSM (or SAM-QFS) software that is more than one release behind the targeted upgrade release, you cannot upgrade to the desired release until you carry out corrective action.

  1. If any client hosts are not running the same release of the Oracle HSM (or SAM-QFS) software as the metadata server, upgrade them to the release used on the server before proceeding.

  2. If the Oracle HSM (or SAM-QFS) software on the active metadata server is more than one release behind the targeted upgrade release and if the file system needs to remain mounted during the upgrade, repeatedly carry out the rolling upgrades, one release level at a time, until all hosts are fully up to date.

  3. If the Oracle HSM (or SAM-QFS) software on the active metadata server is more than one release behind the targeted upgrade release and if the file system does not need to remain mounted during the upgrade, do not attempt a rolling upgrade. Stop the archiving and staging processes, unmount the file system, and upgrade each host individually, as described in "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host" or "Install or Update Oracle HSM Client Software on a Linux Host".

Carry Out the Rolling Upgrade

  1. Make sure that you upgrade any significantly older releases of Oracle HSM before continuing!

    If any host is more than one release behind the targeted upgrade release when you attempt a rolling upgrade, the upgrade will fail, at best leaving the file systems in an inconsistent state.

  2. Log in to the currently active (first) metadata server as root. Then log in to the currently potential (second) metadata server, also as root.

    In the example, we log in to the active metadata server, mds1. Then, in a second terminal window, we use secure shell (ssh) to log in to the inactive, potential metadata server, mds2:

    root@mds1:~# 
    
    root@mds1:~# ssh root@mds2
    Password:
    root@mds2:~# 
    
  3. Upgrade the currently inactive, second metadata server. Install the updated Oracle HSM software using the procedures in "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host" or "Install or Update Oracle HSM Client Software on a Linux Host".

  4. Once the upgrade steps are complete, prepare to activate the second server. If the first, active metadata server mounts an Oracle HSM or SAM-QFS archiving file system, stop any new archiving and staging activity, idle media drives, and wait for current jobs to finish. Then stop the library-control daemon.

    For full description of how to stop archiving activity, see the Oracle Hierarchical Storage Manager and StorageTek QFS Software Maintenance and Administration Guide.

    root@mds1:~# samcmd aridle
    root@mds1:~# samcmd stidle
    root@mds1:~# samcmd 901 idle
    ...
    root@mds1:~# samcmd a
     ...
    Waiting for :arrun
    root@mds1:~# samcmd r
    ...
    ty   eq status      act  use  state     vsn
    li  801  ---------p    0   0%  off
                    empty
    ...
    root@mds1:~# samd stop
    root@mds1:~# 
    
  5. On the second metadata server, load the Oracle HSM configuration files and start Oracle HSM processes. Use the command samd config.

    root@mds2:~# samd config
    root@mds2:~# 
    
  6. On the second metadata server, mount the Oracle HSM file system.

    root@mds2:~# mount sharefs1
    root@mds2:~# 
    
  7. Activate the newly updated second metadata server. From the second metadata server, issue the command samsharefs -s server file-system, where server is the hostname of the newly updated metadata server and file-system is the name of the Oracle HSM shared file system.

    In the example, the potential metadata server is mds2 and the file system name is sharefs1:

    root@mds2:~# samsharefs -s mds2 sharefs1
    root@mds2:~# 
    
  8. Upgrade the now-inactive first metadata server. Install the updated Oracle HSM software using the procedures in "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host" or "Install or Update Oracle HSM Client Software on a Linux Host".

  9. Once the upgrade steps are complete, prepare to re-activate the first metadata server. If the currently active second metadata server mounts an Oracle HSM archiving file system, stop any new archiving and staging activity, idle media drives, and wait for current jobs to finish. Then stop the library-control daemon.

    root@mds2:~# samcmd aridle
    root@mds2:~# samcmd stidle 
    ...
    root@mds2:~# samd stop
    root@mds2:~# 
    
  10. On the first metadata server, load the Oracle HSM configuration files and start Oracle HSM processes. Use the command samd config.

    root@mds1:~# samd config
    root@mds1:~# 
    
  11. On the first metadata server, mount the Oracle HSM file system.

    root@mds1:~# mount sharefs1
    root@mds1:~# 
    
  12. Re-activate the first metadata server. From the first metadata server, issue the command samsharefs -s server file-system, where server is the hostname of the potential metadata server and file-system is the name of the Oracle HSM shared file system.

    In the example, the potential metadata server is mds1 and the file system name is sharefs1:

    root@mds1:~# samsharefs -s mds1 sharefs1
    root@mds1:~# 
    
  13. Update the remaining clients. Install the updated Oracle HSM software using the procedures in "Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host" or "Install or Update Oracle HSM Client Software on a Linux Host"..

  14. Stop here. The upgrade is complete.

Install, Upgrade, or Downgrade Oracle HSM on an Oracle Solaris Host

To install, upgrade, or downgrade Oracle HSM packages on a Solaris host, start by carrying out the following tasks:

Then carry out the installation task that best fits your situation:

Prepare the Host for Software Changes

  1. If Oracle HSM software is not currently installed on the host system, go to "Locate the Packages for Your Host Architecture".

  2. Otherwise, log in to the host as root.

    root@solarishosthost:~# 
    
  3. If Oracle HSM software is currently installed on the host system, idle all archiving processes. Use the command samcmd aridle.

    This command will allow current archiving and staging to complete, but will not start any new jobs:

    root@solarishosthost:~# samcmd aridle
    root@solarishosthost:~# 
    
  4. Idle all staging processes. Use the command samcmd stidle.

    This command will allow current archiving and staging to complete, but will not start any new jobs:

    root@solarishosthost:~# samcmd stidle
    root@solarishosthost:~# 
    
  5. Wait for active archiving jobs to complete. Check on the status of the archiving processes using the command samcmd a.

    When archiving processes are Waiting for :arrun, the archiving process is idle:

    root@solarishosthost:~# samcmd a
    Archiver status samcmd     6.1.4 10:20:34 Feb 20 2015
    samcmd on host
    sam-archiverd:  Waiting for :arrun
    sam-arfind: ...
    Waiting for :arrun
    
  6. Wait for active staging jobs to complete. Check on the status of the staging processes using the command samcmd u.

    When staging processes are Waiting for :strun, the staging process is idle:

    root@solarishosthost:~# samcmd u
    Staging queue samcmd      6.1.4  10:20:34 Feb 20 2015
    samcmd on solaris.demo.lan
    Staging queue by media type: all
    sam-stagerd:  Waiting for :strun
    root@solarishosthost:~# 
    
  7. Idle all removable media drives before proceeding further. For each drive, use the command samcmd idle equipment-number, where equipment-number is the equipment ordinal number assigned to the drive in the /etc/opt/SUNWsamfs/mcf file.

    This command will allow current archiving and staging jobs to complete before turning drives off, but will not start any new work. In the example, we idle four drives, with ordinal numbers 801, 802, 803, and 804:

    root@solarishosthost:~# samcmd idle 801
    root@solarishosthost:~# samcmd idle 802
    root@solarishosthost:~# samcmd idle 803
    root@solarishosthost:~# samcmd idle 804
    root@solarishosthost:~# 
    
  8. Wait for running jobs to complete.

    We can check on the status of the drives using the command samcmd r. When all drives are notrdy and empty, we are ready to proceed.

    root@solarishosthost:~# samcmd r
    Removable media samcmd     6.1.4 10:37:09 Feb 20 2014
    samcmd on host
    ty   eq   status      act  use  state  vsn
    li  801   ---------p    0   0%  notrdy
              empty
    li  802    ---------p    0   0%  notrdy
              empty
    li  803   ---------p    0   0%  notrdy
              empty
    li  804   ---------p    0   0%  notrdy
              empty
    root@solarishosthost:~# 
    
  9. When the archiver and stager processes are idle and the tape drives are all notrdy, stop the library-control daemon. Use the command samd stop.

    root@solarishosthost:~# samd stop
    root@solarishosthost:~# 
    
  10. If file systems are shared through NFS or SMB/CIFS, unshare the file systems. On the metadata server, use the command unshare mount-point, where mount-point is the mount point directory of the Oracle HSM file system.

    In the first example, we stop NFS sharing of the Oracle HSM standalone file system hsmqfs1.

    root@solarishosthost:~# unshare /hsmqfs1
    root@solarishosthost:~# 
    

    In the second example, we stop NFS sharing of the Oracle HSM shared file system samqfs2:

    root@solarishostserver:~# unshare /hsmqfs2
    root@solarishostserver:~# 
    
  11. Unmount all Oracle HSM file systems.

    In the first example, we unmount the unshared, standalone file system hsmqfs1:

    root@solarishosthost:~# umount hsmqfs1
    

    In the second example, we unmount the shared file system hsmqfs1, first from the clients and then from the server, allowing 60 seconds for clients to unmount.

    root@solarishostserver:~# ssh root@samqfs2client1
    Password: 
    [root@solarishostclient1:~# umount /hsmqfs2
    [root@solarishostclient1:~# exit
    root@solarishostserver:~# 
    
    root@solarishostserver:~# ssh root@samqfs2client1
    Password: 
    root@solarishostclient2:~# umount /hsmqfs2
    root@solarishostclient2:~# exit
    root@solarishostserver:~# umount -o await_clients=60 /sharefs2
    
  12. If you currently have SAM-QFS 5.3 or earlier installed, uninstall all packages. Use the command pkgrm SUNWsamfsu SUNWsamfsr (pkgrm SUNWqfsu SUNWqfsr if only QFS is installed).

    Remove the packages in the order specified, starting with SUNWsamfsu and ending with SUNWsamfsr. In the example, we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishosthost:~# yes | pkgrm SUNWsamfsu SUNWsamfsr
    
  13. Next, locate the Oracle HSM packages for your host architecture.

Locate the Packages for Your Host Architecture

  1. Log in to the Oracle HSM host as root.

    root@solarishost:~# 
    
  2. Change to the directory where the Oracle HSM download file was unpacked, and locate the subdirectory where packages for the desired version are stored.

    The initially released packages are stored in the Oracle_HSM_release-number (or STK_QFS_release-number) subdirectory, where release-number is a major and a minor release number, joined by a dot: Oracle_HSM_6.1.4+/. Patch releases (if any) are located in a similar subdirectory with an additional -patch-number suffix, where patch-number is a two-digit patch sequence number: Oracle_HSM_6.1.4-01/.

    In the example we change to the download directory for the initial release of the software, Oracle_HSM_6.1.4/ and list the contents:

    root@solarishost:~# cd /net/sw_install/hsmqfs/Oracle_HSM_6.1.4/
    root@solarishost:~# ls -1
    ./
    ../
    linux1/
    linux2/
    Notices/
    README.txt
    solaris_sparc/
    solaris_x64/
    
  3. Change to the subdirectory that corresponds to your host architecture, either solaris_sparc/ or solaris_x64/, and list the contents.

    In the example, we change to the solaris_sparc/ subdirectory:

    root@solarishost:~# cd solaris_sparc/
    root@solarishost:~# ls -1
    ./
    ../
    S11.0/
    S11.4/
    S11.0_ips/
    S11.4_ips/
    

    IMPORTANT:

    Choose the correct directory:
    • S11.0 for Solaris 11.0 - 11.3

    • S11.4 for Solaris 11.4

    • S11.4 for SVr4 packages

    • S11.4_ips for IPS packages

  4. When Solaris 11 or later is installed on the host, you can install, upgrade, or downgrade the software using the Image Packaging System. Go to one of the following:

  5. When Solaris 11 or later is installed on the host, you can also choose to install, upgrade, or downgrade the software using the pkgadd method. See "Upgrade or Downgrade the Software Using SVR4 pkgrm and pkgadd Commands".

  6. When Solaris 10 is installed on the host, you can install, upgrade, or downgrade the software using the pkgadd method. Go to "Upgrade or Downgrade the Software Using SVR4 pkgrm and pkgadd Commands".

Install the Software Using the Image Packaging System (IPS)

In general, you should use Image Packaging System (IPS) commands to install, upgrade, or downgrade Oracle HSM software on hosts running Solaris 11 or later. For each host, including metadata servers and shared file-system clients (if any), proceed as follows:

  1. If you have not already done so, locate the Oracle HSM packages for your host architecture.

  2. Change to the repository directory for the Solaris 11 IPS packages, repo.samqfs/.

    In the example, we change to repository directory for Oracle HSM 6.1.4, Oracle_HSM_6.1.4/solaris_sparc/S11_ips/repo.samqfs:

    root@solarishost:~# cd repo.samqfs/
    root@solarishost:~# 
    
  3. To install both the Oracle Hierarchical Storage Manager and StorageTek QFS Software packages, use the command pkg install -g . --accept SUNWsamfs SUNWsamqassy, where . is the current directory (the repository) and SUNWsamfs and SUNWsamqassy are the Oracle HSM Image Packaging System package names.

    root@solarishost:~# pkg install -g . --accept SUNWsamfs SUNWsamqassy
    Creating plan
    ...
    * The licence and distribution terms for any publically available version or
     * derivative of this code cannot be changed.  i.e. this code cannot simply be
     * copied and put under another distribution licence
     * [including the GNU Public Licence.]
     */
               Packages to install:   2
           Create boot environment:  No
    Create backup boot environment: Yes
    DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
    Completed                                2/2       520/520    21.4/21.4    0B/s
    PHASE                                          ITEMS
    Installing new actions                       693/693
    Updating package state database                 Done 
    Updating image state                            Done 
    Creating fast lookup database                   Done
    
  4. To install only the QFS Software packages, use the command pkg install -g . --accept SUNWqfs SUNWsamqassy, where . is the current directory (the repository) and SUNWqfs and SUNWsamqassy are the Oracle HSM Image Packaging System package names.

    root@solarishost:~# pkg install -g . --accept SUNWqfs SUNWsamqassy
    Creating plan
    ...
    * The licence and distribution terms for any publically available version or
     * derivative of this code cannot be changed.  i.e. this code cannot simply be
     * copied and put under another distribution licence
     * [including the GNU Public Licence.]
     */
               Packages to install:   2
           Create boot environment:  No
    Create backup boot environment: Yes
    DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
    Completed                                2/2       520/520    21.4/21.4    0B/s
    PHASE                                          ITEMS
    Installing new actions                       693/693
    Updating package state database                 Done 
    Updating image state                            Done 
    Creating fast lookup database                   Done
    
  5. When the packages finish installing, run the post-installation script, sam-qfs-post-install. It is located in the util/ subdirectory of the Oracle HSM installation directory (either /opt/SUNWsamfs/ or /opt/SUNWqfs/).

    In the example, we run /opt/SUNWsamfs/util/sam-qfs-post-install:

    root@solarishost:~# /opt/SUNWsamfs/util/sam-qfs-post-install
    SUNWsamfs IPS package installed.
    
    inquiry.conf may have been updated for this release.
    ...
    root@solarishost:~# 
    
  6. Add the Oracle HSM directories /opt/SUNWsamfs/bin and /opt/SUNWsamfs/sbin (or /opt/SUNWqfs/bin and /opt/SUNWqfs/sbin) to the system PATH variable, if they are not already in path.

  7. Add the Oracle HSM directory /opt/SUNWsamfs/man (or /opt/SUNWqfs/man) to the system MANPATH variable, if it is not already in the man path.

  8. If the planned Oracle HSM configuration includes additional Solaris hosts, repeat this procedure from the beginning until the software is installed on all hosts.

  9. If the planned Oracle HSM configuration includes Linux hosts as shared file-system clients, go to "Install or Update Oracle HSM Client Software on a Linux Host".

  10. Otherwise, go to "Using the samsetup Configuration Wizard" or "Configuring the Basic File System".

Upgrade or Downgrade the Software Using the Image Packaging System (IPS)

Use Image Packaging System (IPS) commands to upgrade or downgrade Oracle HSM software that was originally installed using IPS.

For each host, including metadata servers and shared file-system clients (if any), proceed as follows:

  1. If you have not yet done so, locate the Oracle HSM packages for your host architecture.

  2. To upgrade the Oracle Hierarchical Storage Manager and StorageTek QFS Software packages to the latest versions in the repository, use the command pkg update -g . --accept SUNWsamfs SUNWsamqassy, where . is the current directory (the repository) and SUNWsamfs and SUNWsamqassy are the Oracle HSM Image Packaging System package names.

    root@solarishost:~# pkg update -g . --accept SUNWsamfs SUNWsamqassy
    ...
    root@solarishost:~# 
    
  3. To upgrade only the QFS Software packages to the latest versions in the repository, use the command pkg update -g . --accept SUNWqfs SUNWsamqassy, where . is the current directory (the repository) and SUNWqfs and SUNWsamqassy are the Oracle HSM Image Packaging System package names.

    [host1]root@solarishost:~# pkg update -g . --accept SUNWqfs SUNWsamqassy
    ...
    root@solarishost:~# 
    
  4. To downgrade the Oracle HSM packages or to upgrade them to a specified version, first obtain the fault managed resource identifier (FMRI) for the desired packages. Use the command pkg info -r -g . package-name, where . specifies the current directory and package-name is the name of the Oracle HSM package.

    In the example, Oracle HSM version 6.1.4.0 is installed on the host:

    root@solarishost:~# samcmd l  
    Usage information samcmd      6.1.4.0 14:06:20 Feb  20 2015 ...
    root@solarishost:~# 
    

    We need to downgrade to SAM-QFS 5.4.6. So we run the pkg info commands for SUNWsamfs and SUNWsamqassy in the IPS repository for version 5.4.6, Oracle_HSM_6.1.4/solaris_sparc/S11_ips/repo.samqfs:

    root@solarishost:~# pwd
    /net/Oracle_HSM_6.1.4/solaris_sparc/S11_ips/repo.samqfs
    root@solarishost:~# pkg info -r -g . SUNWsamfs
              Name: SUNWsamfs
           Summary: StorageTek SAM and StorageTek SAM-QFS software
       Description: StorageTek Storage and Archive Manager File System
          Category: System/File System
             State: Not installed
         Publisher: samqfs
           Version: 5.4
     Build Release: 5.11
            Branch: None
    Packaging Date: Tue Jul 08 22:56:56 2014
              Size: 88.64 MB
              FMRI: pkg://hsmqfs/SUNWsamfs@5.4,5.11:20140708T225656Z
    
    root@solarishost:~# pkg info -r -g . SUNWsamqassy
              Name: SUNWsamqassy
           Summary: StorageTek QFS and Storage Archive Manager SAM-QFS IPS assembly services
       Description: SAM-QFS IPS Assembly Services
          Category: System/File System
             State: Installed
         Publisher: samqfs
           Version: 5.4
     Build Release: 5.11
            Branch: None
    Packaging Date: Fri Sep 26 17:21:35 2014
              Size: 15.15 kB
              FMRI: pkg://hsmqfs/SUNWsamqassy@5.4,5.11:20140926T172135Z
    root@solarishost:~# 
    
  5. Then, to downgrade the Oracle HSM packages or to upgrade them to a specified version, run the command pkg update -g . fmri, where . specifies the current directory and fmri specifies the fault managed resource identifier of the desired software version.

    In the example, we specify the FMRIs of the 5.4.6 versions of the SUNWsamfs and SUNWsamqassy packages:

    root@solarishost:~# pkg update -g . SUNWsamfs@5.4,5.11:20140708T225656Z 
               Packages to update:   1
           Create boot environment:  No
    Create backup boot environment: Yes
    DOWNLOAD                                PKGS         FILES    XFER (MB)  
     SPEEDCompleted                               1/1        160/160    19.2/19.2  3.4M/s
    PHASE                                          ITEMS
    Updating modified actions                    172/172
    Updating package state database                 Done
    Updating package cache                           1/1
    Updating image state                            Done
    Creating fast lookup database                   Done
    Updating package cache                           3/3
    root@solarishost:~# pkg update -g . SUNWsamqassy@5.4,5.11:20140926T172135Z 
    ...
    root@solarishost:~# 
    
  6. Once the pkg update command has finished, restart the system. Use the Solaris reboot command.

    root@solarishost:~# reboot
    
  7. If the planned Oracle HSM configuration includes additional Solaris hosts, repeat this procedure from the beginning until the software has been updated or downgraded on all hosts.

  8. If the planned Oracle HSM configuration includes Linux hosts as shared file-system clients, go to "Install or Update Oracle HSM Client Software on a Linux Host".

Install the Software Using SVR4 pkgrm and pkgadd Commands

Use SVR4 package commands when you are installing Oracle HSM software on hosts that run Solaris 10 and when you are upgrading software that was originally installed using SVR4 commands.

For each Oracle HSM Solaris host, including metadata servers and shared file-system clients (if any), proceed as follows:

  1. If you have not already done so, locate the Oracle HSM packages for your host architecture.

  2. To install both the Oracle Hierarchical Storage Manager and StorageTek QFS Software packages, use the command pkgadd -d . SUNWsamfsr SUNWsamfsu and accept all defaults.

    Note that you must install the SUNWsamfsr package before installing the SUNWsamfsu package. In the example, we make sure that we are in the directory for our operating system, Oracle_HSM_6.1.4/solaris_sparc/S10. Then we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# pwd 
    /net/Oracle_HSM_6.1.4/solaris_sparc/s10
    root@solarishost:~# yes | pkgadd -d . SUNWsamfsr SUNWsamfsu
    
  3. To install only the QFS Software packages, use the command pkgadd -d . SUNWqfsr SUNWqfsu and accept all defaults.

    Note that you must install the SUNWqfsr package before installing the SUNWqfsu package. In the example, we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# yes | pkgadd -d . SUNWqfsr SUNWqfsu
    
  4. If the planned Oracle HSM configuration includes Linux hosts as shared file-system clients, go to "Install or Update Oracle HSM Client Software on a Linux Host".

  5. Otherwise, go to Chapter 5, "Using the samsetup Configuration Wizard" or Chapter 6, "Configuring the Basic File System".

Upgrade or Downgrade the Software Using SVR4 pkgrm and pkgadd Commands

Use SVR4 package commands when you are upgrading or downgrading Oracle HSM software on hosts that run Solaris 10 and when you are upgrading or downgrading software that was originally installed using SVR4 commands.

For each Oracle HSM Solaris host, including metadata servers and shared file-system clients (if any), proceed as follows:

  1. If you are downgrading the Oracle HSM software to SAM-QFS 5.3, start by restoring configuration files to the locations specified by the older software. Use the command /opt/SUNWsamfs/sbin/backto 5.3.

    The backto command restores files to their previous locations and formats. See the backto man page for more information.

    In the example, we convert Oracle HSM 6.1.4 configuration files for use with Oracle SAM 5.3:

    root@solarishost:~# /opt/SUNWsamfs/sbin/backto 5.3 ...
    root@solarishost:~# 
    
  2. Uninstall all Oracle HSM packages that are currently installed. Use the command pkgrm SUNWsamfsu SUNWsamfsr (pkgrm SUNWqfsu SUNWqfsr if only QFS is installed).

    Remove the packages in the order specified, starting with SUNWsamfsu and ending with SUNWsamfsr. In the example, we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# yes | pkgrm SUNWsamfsu SUNWsamfsr
    
  3. If you have not already done so, locate the Oracle HSM packages for your host architecture.

  4. To install both the Oracle Hierarchical Storage Manager and StorageTek QFS Software packages, use the command pkgadd -d . SUNWsamfsr SUNWsamfsu and accept all defaults.

    Note that you must install the SUNWsamfsr package before installing the SUNWsamfsu package. In the example, we make sure that we are in the correct directory for our operating system, Oracle_HSM_6.1.4/solaris_sparc/S10. Then we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# pwd 
    /net/Oracle_HSM_6.1.4/solaris_sparc/s10
    root@solarishost:~# yes | pkgadd -d . SUNWsamfsr SUNWsamfsu
    
  5. To install only the QFS Software packages, use the command pkgadd -d . SUNWqfsr SUNWqfsu and accept all defaults.

    Note that you must install the SUNWqfsr package before installing the SUNWqfsu package. In the example, we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# pwd 
    /net/Oracle_HSM_6.1.4/solaris_sparc/s10
    root@solarishost:~# yes | pkgadd -d . SUNWqfsr SUNWqfsu
    
  6. If the planned Oracle HSM configuration includes Linux hosts as shared file-system clients, go to "Install or Update Oracle HSM Client Software on a Linux Host".

  7. Otherwise, go to Chapter 5, "Using the samsetup Configuration Wizard" or Chapter 6, "Configuring the Basic File System".

Install or Update Oracle HSM Client Software on a Linux Host

For each Linux client of a Oracle HSM shared file system, proceed as follows:

  1. Log in to the Linux client as root.

    [root@linux ~]# 
    
  2. Unmount all mounted Oracle HSM file systems.

  3. Uninstall old Oracle HSM packages. Run the script /var/opt/SUNWsamfs/Uninstall:

    [root@linux ~]# /var/opt/SUNWsamfs/Uninstall
    
  4. Locate the Linux client ISO image. The ISO image is in the directory where you downloaded the Oracle HSM installation software (see "Download the HSM Installation Package").

    In the example, we use ssh to login to the repository host sw_install (IP address 192.168.0.2). We locate the software in the directory /hsmqfs:

    [root@linux ~]# ssh root@sw_install
    Password:
    root@sw_install:~# ls -1 /hsmqfs
    ./       COPYRIGHT.txt       linux.iso             README.txt
    ../      iso.md5             Oracle-HSM_6.0/
    
  5. On the Linux host, create a temporary directory.

    In the example, we create the directory /hsmtemp:

    [root@linux ~]# mkdir /hsmtemp
    [root@linux ~]# 
    
  6. Make the linux.iso image available to the Linux host. NFS mount the remote directory that holds the image on the temporary directory that you just created. Use the command mount -t nfs repository-host-IP:hsm-repository-dir temp-dir, where:

    • -t nfs identifies the type of file system being mounted.

    • repository-host-IP is the IP address of the server that hosts your installation software.

    • hsm-repository-dir is the directory that holds the Oracle HSM installation software.

    • temp-dir is the temporary directory that you created on the Linux host.

    In the example, we NFS mount directory /hsmqfs of host sw_install (192.168.0.2) on mount-point directory /hsmtemp:

    [root@linux ~]# mount -t nfs 192.168.0.2:/hsmqfs /hsmtemp
    [root@linux ~]# 
    
  7. Mount the linux.iso image on the Linux host. Use the command mount -o ro,loop -t iso9660 temp-dir/linux.iso /mnt, where:

    • -o specifies a list of mount options.

    • ro mounts the image read-only.

    • loop mounts the image as a loop device.

    • -t iso9660 identifies the type of file system being mounted.

    • temp-dir is the temporary directory where the remote image repository directory is mounted.

    • /mnt is the standard, temporary mount point directory on Linux systems.

    In the example, the ISO image is in /hsmtemp:

    [root@linux ~]# mount -o ro,loop -t iso9660 /hsmtemp/linux.iso /mnt
    [root@linux ~]# 
    
  8. Run the installer. Use the command /mnt/linux1/Install.

    [root@linux ~]# /mnt/linux1/Install
    
  9. If the installation program does not recognize the installed version of the Linux kernel, it will prompt you to create a custom kernel. Enter yes.

    [root@linux ~]# ./Install
    ...
    A direct match for your kernel wasn't found. Attempt creating a custom rpm for your kernel (yes/no)? yes
    

    Many variations of the Linux kernel exist. The Oracle HSM installation program compiles custom kernel modules so that it can support the largest possible number of variations.

  10. Follow the on-screen instructions.

  11. If you are installing a SuSE Linux client, configure the system to recognize the man pages. Open the /etc/manpath.config file in a text editor, and add 1m to the value of the SECTION parameter.

    In the example, we use the vi editor:

    [root@linux ~]# vi /etc/manpath.config
    ...
    #---------------------------------------------------------
    # Section names. Manual sections will be searched in the order listed here;
    # the default is 1, n, l, 8, 3, 2, 5, 4, 9, 6, 7. Multiple SECTION
    # directives may be given for clarity, and will be concatenated together in
    # the expected way.
    # If a particular extension is not in this list (say, 1mh), it will be
    # displayed with the rest of the section it belongs to. The effect of this
    # is that you only need to explicitly list extensions if you want to force a
    # particular order. Sections with extensions should usually be adjacent to
    # their main section (e.g. "1 1mh 8 ...").
    SECTION 1 1m n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7
    
  12. If the planned Oracle HSM configuration includes additional Linux client hosts, repeat this procedure from the beginning until the client software is installed on all hosts.

  13. Otherwise, go to "Using the samsetup Configuration Wizard" or "Configuring the Basic File System".

Uninstalling Oracle HSM Software

This section outlines following procedures:

Uninstall Oracle HSM on a Solaris Host

To completely uninstall software and remove the configuration files, proceed as follows.

  1. Log in to the host as root.

    root@solarishost:~# 
    
  2. If the software was installed on Solaris 11 or later using the Solaris Image Packaging System, uninstall the software using the command pkg uninstall SUNWsamfs SUNWsamqassy (or pkg uninstall SUNWqfs SUNWsamqassy if only the QFS software is installed).

    root@solarishost:~#  pkg uninstall SUNWsamfs SUNWsamqassy 
    
  3. If the software was installed on Solaris 10 or on Solaris 11 using the SVR4 pkginstall method, uninstall the software using the command pkgrm SUNWsamfsu SUNWsamfsr (pkgrm SUNWqfsu SUNWqfsr if only the QFS software is installed).

    Remove the packages in the order specified, starting with SUNWsamfsu and ending with SUNWsamfsr. In the example, we pipe the reply yes into the command so that all questions are automatically answered:

    root@solarishost:~# yes | pkgrm SUNWsamfsu SUNWsamfsr
    
  4. If the software was installed on Solaris 10 or on Solaris 11 using the SVR4 pkginstall method, delete configuration and log files that are no longer required.

    root@solarishost:~# rm -R /var/opt/SUNWsamfs/
    root@solarishost:~# rm -R /etc/opt/SUNWsamfs/
    root@solarishost:~# rm -R /var/adm/sam-log/
    root@solarishost:~# 
    
  5. Reboot the host.

    root@solarishost:~#  reboot 
    
  6. Stop here.

Uninstall the Oracle HSM Client on a Linux Host

To uninstall and completely remove the Linux client software, proceed as follows.

  1. Log in to the Linux client host as root.

    [root@linux ~]# 
    
  2. Run the Oracle HSM script /var/opt/SUNWsamfs/Uninstall (/var/opt/SUNWqfs/Uninstall if only QFS is installed).

    Do not use any other method! Other methods, such as rpm -e, can cause unexpected results and problems with uninstalling or reinstalling the software. So always use the script:

    [root@linux ~]#  /var/opt/SUNWsamfs/Uninstall