Less Known Solaris features: SamFS - Part 4: Installation of the packages

It´s quite easy to install SamFS. It´s just installing two packages and answering some questions.

Obtaining the binaries

At first, you have to download the iso image with the binaries for SamFS 4.6. You can obtain them at the Sun Download Center. You need an account for the download center, but you can register for free. At the moment you are allowed to test it for 60 days, but you don´t need to obtain a test license as there is no license enforcement in the software. Instead of this, this is handled with right-to-use licensing.

Installing the SamFS packages

Let´s start the installation of SamFS:

<small><b># cd sunstorageteksam-fs4.6/<br />
# cd x64<br />
# cd 2.10<br />
# pkgadd -d . SUNWsamfsr SUNWsamfsu</b>
Processing package instance <SUNWsamfsr> from </cdrom/sunstorageteksam-fs4.6/x64/2.10>
Sun SAM and Sun SAM-QFS software Solaris 10 (root)(i386) 4.6.5,REV=5.10.2007.03.12
        Sun SAMFS - Storage & Archiving Management File System
        Copyright (c) 2007 Sun Microsystems, Inc.
        All Rights Reserved.
       ----------------------------------------------------- 
In order to install SUNWsamfsr, you must accept the terms of<br />
the Sun License Agreement.<br />
Enter "y" if you do, "n" if you don't, or "v" to view agreement. <b>y</b>
- The administrator commands will be executable by root only (group bin).
If this is the desired value, enter "y".  If you want to change<br />
the specified value enter "c". <b>y</b>
By default, elrond is not setup to be remotely managed by<br />
File System Manager. It can only be managed by the File System<br />
Manager if it is installed locally<br />
You can modify the remote management configuration at a later time<br />
using the command fsmadm
If you want to keep the default behaviour, enter "y". Otherwise enter "n". <b>y</b><br />
## Processing package information.<br />
## Processing system information.<br />
   20 package pathnames are already properly installed.<br />
## Verifying disk space requirements.<br />
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being<br />
used by another package:<br />
  /etc/opt <attribute change only><br />
  /var/opt <attribute change only>
Do you want to install these conflicting files [y,n,?,q] <b>y</b><br />
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user<br />
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWsamfsr> [y,n,?] <b>y</b>
Installing Sun SAM and Sun SAM-QFS software Solaris 10 (root) as <SUNWsamfsr>
## Executing preinstall script.
## Installing part 1 of 1.<br />
/etc/fs/samfs/mount<br />
[...]<br />
/var/svc/manifest/application/management/fsmgmt.xml<br />
[ verifying class <none> ]<br />
/opt/SUNWsamfs/sbin/samcmd
<linked pathname>
## Executing postinstall script.
The administrator commands are executable by root only.
------------------------------------------------------------<br />
-                   PLEASE READ NOW !!!                    -<br />
------------------------------------------------------------
If you are upgrading from a previous release of SAM and<br />
have not read the README file delivered with this release,<br />
please do so before continuing.  There were significant<br />
restructuring changes made to the system from previous<br />
releases. Failure to convert scripts to conform to these<br />
changes could cause dramatic changes in script behavior.    
Installation of <SUNWsamfsr> was successful.
Processing package instance <SUNWsamfsu> from </cdrom/sunstorageteksam-fs4.6/x64/2.10>
Sun SAM and Sun SAM-QFS software Solaris 10 (usr)(i386) 4.6.5,REV=5.10.2007.03.12
        Sun SAMFS - Storage & Archiving Management File System
        Copyright (c) 2007 Sun Microsystems, Inc.
        All Rights Reserved.
## Executing checkinstall script.<br />
## Processing package information.<br />
## Processing system information.<br />
   10 package pathnames are already properly installed.<br />
## Verifying package dependencies.<br />
## Verifying disk space requirements.<br />
## Checking for conflicts with packages already installed.<br />
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user<br />
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWsamfsu> [y,n,?] y
Installing Sun SAM and Sun SAM-QFS software Solaris 10 (usr) as <SUNWsamfsu>
## Installing part 1 of 1.<br />
/opt/SUNWsamfs/lib/amd64/libsamconf.so <symbolic link><br />
[...]<br />
/usr/sfw/bin/tapealert_trap<br />
[ verifying class <none> ]<br />
## Executing postinstall script.
Configuring samst devices.  Please wait, this may take a while.
Adding samst driver<br />
Building samst devices<br />
Issuing /usr/sbin/devfsadm -i samst >> /tmp/SAM_install.log 2>&1
Adding samioc driver
Adding samaio driver
File System Manager daemon is configured to auto-restart everytime the daemon dies
Starting File System Manager daemon
Please check the log files for any errors<br />
that were detected during startup
Installation of <SUNWsamfsu> was successful.</small>

Installing the SamFS Filesystem Manager

Now we install the FilesystemManager:

<small><b># cd /cdrom/sunstorgeteksam-fs4.6/<br />
# cd x64<br />
# ./fsmgr_setup </b>
Unzipping File System Manager files...<br />
This process may take a while ...<br />
Start cleaning up to prepare for new software installation<br />
Start installing File System Manager packages...<br />
This process may take a while ...
Processing package instance <SUNWfsmgrr> from </tmp/File_System_Manager/2.10/i386>
File System Manager Solaris 10 (root)(i386) 3.0.4,REV=5.10.2007.03.01<br />
## Executing checkinstall script.
        Sun SAMFS - Storage & Archiving Management File System
        Copyright (c) 2007 Sun Microsystems, Inc.
        All Rights Reserved.
## Processing package information.<br />
## Processing system information.<br />
   1 package pathname is already properly installed.<br />
## Verifying package dependencies.<br />
## Verifying disk space requirements.
Installing File System Manager Solaris 10 (root) as <SUNWfsmgrr>
## Executing preinstall script.<br />
Shutting down Sun Java(TM) Web Console Version 3.0.3 ...<br />
The console is stopped<br />
## Installing part 1 of 1.<br />
/opt/SUNWfsmgr/bin/fsmgr<br />
[...]<br />
/opt/SUNWfsmgr/samqfsui/xsl/svg/storagetier.xsl<br />
[ verifying class <none> ]<br />
## Executing postinstall script.<br />
Extracting online help system files...Archive:  en_samqfsuihelp.zip<br />
   creating: en/help/<br />
[...]<br />
  inflating: en/help/stopwords.cfg<br />
done
    Warning: smreg is obsolete and is preserved only for<br />
    compatibility with legacy console applications. Use wcadmin instead.
    Type "man wcadmin" or "wcadmin --help" for more information.
    Registering fsmgrAdmin_3.0.
    Warning: smreg is obsolete and is preserved only for<br />
    compatibility with legacy console applications. Use wcadmin instead.
    Type "man wcadmin" or "wcadmin --help" for more information.
    Registering /opt/SUNWfsmgr/samqfsui/WEB-INF/lib/fsmgmtjni.jar<br />
    as fsmgmtjni.jar for scope fsmgrAdmin_3.0
    Enabling logging...
    Warning: smreg is obsolete and is preserved only for<br />
    compatibility with legacy console applications. Use wcadmin instead.
    Type "man wcadmin" or "wcadmin --help" for more information.
Installation of <SUNWfsmgrr> was successful.
Processing package instance <SUNWfsmgru> from </tmp/File_System_Manager/2.10/i386>
File System Manager Solaris 10 (usr)(i386) 3.0.4,REV=5.10.2007.03.01<br />
## Executing checkinstall script.
        Sun SAMFS - Storage & Archiving Management File System
        Copyright (c) 2007 Sun Microsystems, Inc.
        All Rights Reserved.
## Processing package information.<br />
## Processing system information.<br />
   2 package pathnames are already properly installed.<br />
## Verifying package dependencies.<br />
## Verifying disk space requirements.
Installing File System Manager Solaris 10 (usr) as <SUNWfsmgru>
## Installing part 1 of 1.<br />
/usr/lib/libfsmgmtjni.so<br />
/usr/lib/libfsmgmtrpc.so<br />
[ verifying class <none> ]<br />
## Executing postinstall script.<br />
Current session timeout value is 15 minutes, change to 60 minutes...Set 1 properties for the console application.<br />
done<br />
Starting Sun Java(TM) Web Console Version 3.0.3 ...<br />
The console is running<br />
Appending elrond into /var/log/webconsole/host.conf ...done!
Installation of <SUNWfsmgru> was successful.<br />
Done installing File System Manager packages.
Backing up /etc/security/auth_attr to /etc/security/auth_attr.old<br />
Start editing /etc/security/auth_attr ...<br />
Done editing /etc/security/auth_attr 
Backing up /etc/user_attr to /etc/user_attr.old<br />
Start editing /etc/user_attr ...<br />
Start editing /etc/user_attr ...<br />
Done editing /etc/user_attr<br />
File System Manager 3.0 and its supporting application<br />
is installed successfully.
******************* PLEASE READ **********************************
Please telnet to each Sun StorEdge(TM) QFS servers to be<br />
managed and run the following command:
    /opt/SUNWsamfs/sbin/fsmadm status
This will determine if the File System Manager daemon is running.
If it is not running, please run the following command:
    /opt/SUNWsamfs/sbin/fsmadm config -a
This command will start the File System Manager daemon that communicates with<br />
the File System Manager. Failure to do so will prevent File System Manager<br />
from communicating with the Sun StorEdge QFS servers.
Remote access to the servers used by the File System Manager is now<br />
restricted based on host name or IP address.  If you are managing<br />
a Sun StorEdge(TM) QFS Server from a remote management station,<br />
please telnet to the server and run the following command:
    /opt/SUNWsamfs/sbin/fsmadm add <management_station_host_name>.<domain><br />
Press ENTER to continue ...
File System Manager 3.0 supports the following browsers:
  Browser Type                          Operating System<br />
  ========================================================================<br />
  Netscape 7.1/Mozilla 1.7/Firefox 1.5  Solaris OS,<br />
                                        MS Windows 98SE, ME, 2000, and XP<br />
  Internet Explorer 6.0                 MS Windows 98SE, ME, 2000, and XP
Now launch your web browser and type the following URL:<br />
     https://<hostname>.<domain>:6789
where <hostname> is the host that you have just installed the<br />
File System Manager.
If you are served with a security related certificate, go ahead and<br />
accept it.  Please see user docs for username and password details.
It is required to clear the browser cache before accessing the<br />
File System Manager for the first time.  Failure to do so may cause<br />
unexpected behavior in various pages.
File System Manager 3.0 has been tested with the<br />
Sun Java(TM) Web Console version 2.2.5 & 3.0.2.<br />
Installing this product with any older Sun Java(TM) Web Console version breaks both<br />
applications. This product may work on newer Sun Java(TM) Web Console<br />
versions, but this has not been tested.
*****************************************************************
Install/Uninstall log file named /var/tmp/fsmgr.setup.log.03.23.2008.11:01 is created.</code></small></blockquote>
<h4>Modifying the profle</h4>
You have to extend the profile to for additional search paths for binaries and man pages.<br />
<blockquote><code>PATH=$PATH:/opt/SUNWsamfs/bin:/opt/SUNWsamfs/sbin<br />
MANPATH=$MANPATH:/opt/SUNWsamfs/man<br />
export PATH MANPATH

That´s all about the installation of SamFS.