Contents
1. Introduction: Prerequisites & Obtaining the Software
This document contains installation instructions for the TSM version 6 client for Solaris on SPARC and x86. IBM supports this client to run on Solaris 10 and Solaris 11 (SPARC). It should not be installed on older versions. Note that IT Services no longer have any SPARC based machines available for TSM testing so although we can offer general support on use and configuration we may not be able to help with Solaris specific matters.
The current TSM client software is Version 6, Release 4, Level 1.0 for SPARC and Version 6, Release 2, Level 5.0 for x86.
The Backup/Archive client requires the following software in order to run:
You will also need a standard 100Mb/s (or faster) network connection to the University network or a connection to the Oxford eduroam wireless network (please see page on backing up over wireless for more details). The HFS only supports VPN-based backup for systems registered for VPN-based backup.
2. Upgrading from an earlier client version
To upgrade from an earlier version of the TSM Client for Solaris you should first remove the previous version as follows:
dsm.opt, dsm.sys, and (if it exists)
incl.excl in
/opt/tivoli/tsm/client/ba/bin to somewhere safe, e.g. your home directory.svcadm disable dsmschedor for earlier versions
svcadm disable dsmcad
svccfg delete svc:/network/dsmsched:defaultor for earlier versions
/opt/tivoli/tsm/client/ba/bin/uninstall_xml.sh
pkgrm TIVsmCba pkgrm TIVsmCapi pkgrm gsk8ssl64 pkgrm gsk8cry64If you have version 6.2 installed
pkgrm TIVsmCba pkgrm TIVsmCapi pkgrm gsk8ssl64 pkgrm gsk8cry64 pkgrm gsk8ssl32 pkgrm gsk8cry32If you have version 5.3 to 6.1 installed
pkgrm TIVsmCoucsIf you have version 5.2 or earlier installed
pkgrm TIVsmCdoc pkgrm TIVsmCba pkgrm TIVsmCapi
3. Obtaining & Installing the TSM Client
tar xvf tsm-solaris-Sparc-6.4.0.1-1.tar
pkgadd -a ./tsmadmin -d ./gsk8cry64.pkg all pkgadd -a ./tsmadmin -d ./gsk8ssl64.pkg all pkgadd -a ./tsmadmin -d ./TIVsmCapi.pkg all pkgadd -a ./tsmadmin -d ./TIVsmCba.pkg allAnswer yes if asked whether to create a directory
cd /opt/tivoli/tsm/client/ba/bin tar xvf (path to tar file)/hfs-config.tar
tar xvf tsm-solaris-Sparc-6.2.5.0-1.tar
pkgadd -a ./tsmadmin -d ./gsk8cry32.pkg all pkgadd -a ./tsmadmin -d ./gsk8ssl32.pkg all pkgadd -a ./tsmadmin -d ./gsk8cry64.pkg all pkgadd -a ./tsmadmin -d ./gsk8ssl64.pkg all pkgadd -a ./tsmadmin -d ./TIVsmCapi.pkg all pkgadd -a ./tsmadmin -d ./TIVsmCba.pkg allAnswer yes if asked whether to create a directory
cd /opt/tivoli/tsm/client/ba/bin tar xvf (path to tar file)/hfs-config.tar
dsm.opt,
dsm.sys, and (if it exists) incl.excl you saved
during the uninstall to /opt/tivoli/tsm/client/ba/bin.
cd /opt/tivoli/tsm/client/ba/bin cp dsm.opt.example dsm.opt cp dsm.sys.example dsm.sysYou must now edit
dsm.opt and dsm.sys to insert
your Nodename, Servername, TCPServer,
and TCPPort. For details see
Manually Configuring TSM for Linux/Unix. When you have done that run
dsmc. Hit return when asked for your user id (which accepts the default of the node name you configured in
dsm.sys and then enter your TSM
password. This will be cached so you won't be asked for it in future. Type quit
to exit the client.
svccfg import /opt/tivoli/tsm/client/ba/bin/dsmsched.xml svcadm enable svc:/network/dsmsched:default svcadm refresh svc:/network/dsmsched:default
/opt/tivoli/tsm/client/ba/bin/ and they
are dsm.opt.example and
dsm.sys.example.
In older versions there was an incl.excl where the
include and exclude statements were placed.
VirtualMountPoint
can be used to logically partition your filespaces, but more
usefully can give basic backup and restore functionality on
unsupported filesystems. For more details on the virtualmountpoint
option take a look at our page on
supported Linux and Unix file systems.
Domain line to list the local
filesystems you wish to have backed up. This list should be
space-separated and may be specified on multiple lines to
additively list a number of filesystems, as below:
Domain / /usr /usr/local Domain /data/01 /data/02Please avoid backing up filesystems such as /tmp and /var/tmp which contain nothing of a permanent nature. Please also avoid backing up NFS-mounted filesystems; these should be backed up from their home machine. A symbolic link to a filesystem cannot be included in the
Domain list.
4.3. Editing the include excludes
Traditionally include and exclude statements used to be placed in
incl.excl. Now they are put into
dsm.sys.
Include and Exclude statements offer a finer discrimination than the
Domain line in the dsm.opt
file, limiting what is backed up from within filesystems.
You should study the include and excludes within
dsm.sys, consider your filestore usage, and amend
the file to avoid backing up unnecessary files (for example, temporary
files used by programs and utilities, virtual machine images,
spool files, cached web pages and so forth).
Backup performance can be greatly improved by not backing up
unnecessary files.
If you have an old customized incl.excl file,
these statements will have been merged into the
dsm.sys file on an upgrade.
TSM processes the Exclude.fs then Exclude.dir before any of the Exclude file directives. Each group of directives is then processed working from the bottom to the top of the list. You can view the order of this processing by running:
dsmc query inclexcl
To quit the session, issue quit at the prompt. For further help on
includes/excludes see our page on
how to exclude files and folders from backup.
TSM also writes a number of log files, the locations of which are controlled by the
variable DSM_LOG set in the wrapper shell scripts dsmc,
dsmj, dsmcad
in /usr/bin. By default these are set as below:
Note that the file dsmerror.log must be writeable by the
user running the TSM Backup Client program.
4.5. Running the TSM client as a non-root user
By default non-root users are not able to use the TSM software to back up and
restore their own files. Should you wish to enable this functionality, the setuid bit on the
/opt/tivoli/tsm/client/ba/bin/dsmtca executable must be set by
running the following command as the root user. Non-root users will then be able to backup and restore
only their own files. To backup and restore all files, please run TSM as the root user.
chmod 4555 /opt/tivoli/tsm/client/ba/bin/dsmtca
5. Initial Backup using the TSM Client
Having installed the TSM Backup Client software, you will now want to back up your data. There are two methods for doing this, either using the command line tool or using the Java based GUI.
To use the command line tool, open a terminal and run
dsmc. This will give you a command line
interface (CLI). Or you can just run commands straight from the
shell. For example
dsmc incr /home
For more in depth usage of the CLI, see Using the TSM Client Command Line Interface for Backup & Restore
5.2. Select all local partitions
The Java based GUI requires X windows, ksh and Java to work.
From an X terminal run dsmj. The GUI
first displays a splash screen, and then the TSM Hub window is displayed as
below. From here you can select Backup under BACKUP.
Figure images/hub.png [ The TSM GUI Hub. ]
This pops up another window as below.
Figure images/backup.png [ TSM Backup window. ]
To just back up all local disks, click on the grey box to the
left of the icon and the word Local. If you have
more data than the daily backup limit you may not want to do
this. Scroll down for other examples.
Figure images/local.png [ TSM Backup window with Local selected. ]
The Local node in the tree has been ticked.
Notice the parent node HFS-TEST-OUCS - this name
will be replaced with your TSM nodename.
5.3. Back up Local Filesystems
Now to back up the files, all that is required is to click on
Backup.
Figure images/closeup-backup.png [ Close up of Backup button. ]
This will then show a progress bar as below.
Figure images/progress.png [ TSM backing up some files ]
It is also possible to see a report of current progress by
clicking on Report. If you want to
interrupt the backup process, click on the
Stop button.
Figure images/report.png [ TSM backing up some files displaying a live report. ]
Once the backup process has completed then a message will pop up. It is possible for this to become hidden behind another window.
Figure images/complete.png [ Backup complete. ]
Clicking OK will return you to the TSM Hub window.
5.4. Selecting local filesystems
It is possible to select some partitions to manually back up.
Figure images/backup.png [ TSM Backup window. ]
To view the individual filesystems click on the small circle to
the left of the tick box and the word Local. This
will expand the tree to display the filesystem partitions.
Figure images/filesystemexpanded.png [ TSM Backup window expanded filesystesm ]
To select filesystem partitions click on the square grey box
to the left of the partition name. In the example below the
following partitions have been selected: /,
/boot, /usr and
/var.
Figure images/filesystemticked.png [ TSM Backup window with partitions selected. ]
To back up the files click on Backup. You may
want to follow the screenshots above in 5.3.
Back up Local Filesystems
.
It is possible to expand the tree to see what will be backed up. This is done by clicking on the small circle to the left of the tick box.
Figure images/expanded.png [ TSM Backup window with expanded tree. ]
You may have noticed the red circle over /tmp/. This means
that it has been excluded in
dsm.sys.
If you click on the directory name or the icon to its left (in the example below
bin has been selected) then the files will be displayed in the right-hand pane.
Figure images/files.png [ TSM Backup window displaying files in a directory. ]
It is possible to select a particular directory to back up.
In the example below it is /bin/. Notice
that I have clicked on the selector box and then clicked on
the folder icon or directory name (bin). This
shows that by selecting the directory, all the file and folder objects in that
directory are also selected in the right-hand window pane.
Figure images/directory.png [ TSM Backup window with a directory selected. ]
To back up the files click on Backup. You may
want to follow the screenshots above in 5.3.
Back up Local Filesystems
.
It is possible to select a particular file to back up
(or even a number of individual files). In this
example it is /etc/ssh/sshd_config.
Figure images/file.png [ TSM Backup window with one file selected. ]
To back up the files click on Backup. You may
want to follow the screenshots above in 5.3.
Back up Local Filesystems
.
To cancel any individual selection, click the selector box to toggle it
off. To cancel all your selections first select the parent folder icon in
the left hand pane, then choose the [Deselect Items] option
from the [Edit] menu.
The TSM password can be changed at any time. The initial password, given to you at registration for TSM Backup, should be changed as soon as the TSM client has logged into the TSM server. Thereafter, it should be changed at regular intervals and at least once a year as it expires after this interval. To this end, users are contacted, by mail, at the beginning of the last calendar month before their password expires, advising that the password should be changed.
Remember that the TSM password represents the security of your backups. Passwords should be strong and unguessable. TSM passwords are case-independent. In addition to letters and digits they can contain the characters + - _ . & (plus, minus, underscore, point, ampersand) and must be between 6 and 63 characters long.
6.2. Using the Command Line Interface (CLI)
To use the CLI to change the TSM password you must be the root user.
dsmc tsm> set password [oldpassword] [newpassword]
In the GUI (which must be running as root), from the
[Utilities] menu choose the [Change Password]
option.
Figure images/Utilities-menu.png [ Utilites Menu. ]
This will then display a change password dialog box.
Figure images/change-password.png [ Change password dialog box. ]
Enter your password into Current password. Then enter your
new password into New password and again into
Verify password. Once this has been done quit the TSM
session and restart it to check that the new password has been set.
7.1. ANS1398E Initialization functions...
When running dsmc or dsmj and the following or similar is displayed:
ANS1398E Initialization functions cannot open one of the Tivoli Storage Manager logs or a related file: /var/log/dsmerror.log. errno = 13, Permission denied
This means that dsmc or dsmj cannot write to the log
file. Most likely this is beacuse you are running dsmc as a user who
cannot write to /var/log/dsmerror.log
Rather than allowing all users of the system to be able to write to the
/var/log/dsmerror.log file it is best to have
ErrorlogName /var/log/dsmerror.log
commented out of /opt/tivoli/tsm/client/ba/bin/dsm.sys
with a * at the beginning of the line. Then rather than using
dsmc from
/opt/tivoli/tsm/client/ba/bin/dsmc it is best to
use the HFS supplied wrapper script
/usr/bin/dsmc which sets the environmental
variable DSM_LOG to the users home directory. One expection here is
that when the home directory is / (probably the root user)
then DSM_LOG is set to /var/log/dsmerror.log.
The dsmj wrapper script is similar to the dsmc wrapper script.
The dsmcad wrapper script for scheduled backups always sets DSM_LOG to
/var/log/dsmerror.log.
Sources of further help include:
Help button or press F1.
h at
the tsm> prompt.
dsm.sys and dsm.opt, then please see the further instructions
that appear
as comments at the top of each file.
dsm.sys, dsm.opt,
dsmerror.log and, if the query relates to scheduled
backup, the dsmsched.log and
dsmwebcl.log files.
/opt/tivoli/tsm/client/ba/bin/tsm-install.log. This
describes what the post installation scripts have attempted to do and
highlight any problems. It may also be required to email the
following files: dsm.sys and dsm.opt.