unixadmin.free.fr Handy Unix Plumbing Tips and Tricks

23nov/15Off

Drive paths to library client taken offline when server option SANDISCOVERY set to ‘YES’

Technote (troubleshooting)

Problem(Abstract)

This message in the activity log of the library manager appears: ANR1772E The path from source to destination is taken offline.

Symptom

On the library client, these messages are observed in the activity log when a library sharing session is opened to the library manager:

ANR1926W A SCSI inquiry has timed out after 15 seconds.
ANR3626W A check condition occurred during a small computer system interface (SCSI) inquiry at Fibre Channel port WWN=<wwn_number> , KEY=00, ASC=00, ASCQ=00.
ANR1786W HBAAPI not able to get adapter name.
ANR8963E Unable to find path to match the serial number defined for drive <DRIVE_NAME> in library <LIBRARY_NAME>.
ANR8873E The path from source <library_client> to destination <drive> (/dev/rmtXYZ) is taken offline.

On the library manager, you can see this corresponding message showing the path to the drive being taken offline:

ANR1772E The path from source to destination <drive> is taken offline.

Cause

The SAN discovery's query of the HBA has timed out, and the path is taken offline. This can occur in SAN environments with a large number of devices.
Diagnosing the problem

Verify that there is not an underlying hardware problem causing the drives paths to go offline.

Check the value of the SANDISCOVERYTIMEOUT option on the library clients and the library manager. The default value is 15 seconds:

QUERY OPTION SANDISCOVERYTIMEOUT

Resolving the problem

If the value of the option is at or near the default value of 15 seconds, increase to a greater number. For example:

SETOPT SANDISCOVERYTIMEOUT 300
Remplis sous: TSM Commentaires
17nov/15Off

Why Are Tapes with PRIVATE Status Not Found in QUERY VOLUME Output?

Technote (FAQ)

Question

QUERY LIBVOLUME shows tape volumes with status of PRIVATE, but the same volumes do not show up with the command: Q VOL

Why are these tapes PRIVATE?

Answer

QUERY VOLUME will only return information about volumes that belong to stgpools, but there are other types of volumes that can have valid data on them: DB backups, exports, backupsets and remote volumes that belong to a Library Client server.

The volume history will keep a record of all volumes and you can display these other types of non-stgpool volumes with the following commands:

q volh type=dbb
q volh type=dbs
q volh type=export
q volh type=backupset
q volh type=remote

If a PRIVATE volume is not part of a stgpool and does not display in any of the above Q VOLH commands then you can set it to scratch using the command:

UPDATE LIBVOL <library_name> <vol_name> STATUS=SCRATCH

If you do have a library sharing environment it is recommended to run an AUDIT LIBRARY on the Library Client servers prior to changing the status of a volume to scratch on the Library Manager server.

Remplis sous: TSM Commentaires
30oct/15

Using ‘dd’ to verify Tivoli Storage Manager tape volume labels

Question
How can I use the Unix 'dd' command to verify a tape volume label?

Answer
The first step that may be necessary to verify a tape volume label is to find out the block size in use on that tape volume. This parameter is typically set on the physical tape library console interface and will vary between manufacturers so the ideal place to search is on the manufacturer website.
There is a method to manually find out the block size as follows:

On most Unix systems, the 'dd' command will output a message indicating a read failed from a tape drive (and corresponding tape volume) along with insufficient memory message. For example on AIX:

    bash$ dd if=/dev/rmt1 of=/tmp/test.file ibs=32 count=1
    dd: 0511-051 The read failed.
    : There is not enough memory available now.
    0+0 records in.
    0+0 records out.

The 'if' parameter must reference a valid path to a drive that contains the volume you are seeking information about. This volume may be loaded using a utility such as tapeutil or directly from the physical library's console management. The drive should not be in use by Tivoli Storage Manager at the time the command is run and it is recommended to take the drive offline to Tivoli Storage Manager.

The 'ibs' parameter indicates the block size to use in bytes unless a 'k' is specific, in which case the parameter is read as kilobytes. A value of 32 bytes, as in the example above, is a good starting value. If this command returns a memory related error message then the value can be doubled.

    bash$ dd if=/dev/rmt1 of=/tmp/test.file ibs= 64 count=1
    dd: 0511-051 The read failed.
    : There is not enough memory available now.
    0+0 records in.
    0+0 records out.

The value specified for the block size is still smaller than what is actually on the volume so another error is generated. The value must be increased (each time doubling it) until no error message is reported:

    bash$ dd if=/dev/rmt1 of=/tmp/test.file ibs= 128 count=1
    0+1 records in.
    0+1 records out.

Once the correct block size has been discovered, the 'dd' command should not generate a memory error when reading from the volume.
Now that the block size is known, the data on the first block of the tape can be dumped to a file:
dd bs= conv=ascii if= of=/tmp/.out

For example:

    bash$ dd bs=128 conv=ascii skip=0 count=1 if=/dev/rmt1 of=/tmp/block1.out
    0+1 records in.
    0+1 records out.

Once the file is file '/tmp/block1.out' is written, the file may be viewed in any text editor or the cat command can be used:

    bash$ cat /tmp/block1.out
    VOL1200312

In this case the 'VOL1200312' is the label of the tape volume residing in the drive /dev/rmt1.

Source: IBM Technote

Remplis sous: TSM Aucun commentaire
17sept/15Off

IBM Spectrum Protect formerly Tivoli Storage Manager

Beginning with Version 7.1.3, IBM Tivoli Storage Manager is now IBM Spectrum Protect™.
Beginning with Version 4.1.3, IBM Tivoli Storage FlashCopy® Manager is now IBM Spectrum Protect™ Snapshot.

Product name cross reference

IBM System Storage Archive Manager IBM Spectrum Protect for Data Retention
Tivoli Storage FlashCopy Manager IBM Spectrum Protect Snapshot
Tivoli Storage Manager IBM Spectrum Protect
Tivoli Storage Manager Extended Edition IBM Spectrum Protect Extended Edition
Tivoli Storage Manager FastBack for Workstations IBM Spectrum Protect for Workstations
Tivoli Storage Manager FastBack for Workstations - Starter Edition IBM Spectrum Protect for Workstations - Starter Edition
Tivoli Storage Manager for Databases IBM Spectrum Protect for Databases
Tivoli Storage Manager for Mail IBM Spectrum Protect for Mail
Tivoli Storage Manager for Enterprise Resource Planning IBM Spectrum Protect for Enterprise Resource Planning
Tivoli Storage Manager for Space Management IBM Spectrum Protect for Space Management
Tivoli Storage Manager for Storage Area Networks IBM Spectrum Protect for SAN
Tivoli Storage Manager for Virtual Environments IBM Spectrum Protect for Virtual Environments
Tivoli Storage Manager HSM for Windows IBM Spectrum Protect HSM for Windows

Source:  IBM Technote

Remplis sous: TSM Commentaires
11sept/15

Scheduled « Backup VM » processes more virtual machines than expected.

Technote (troubleshooting)

Problem(Abstract)

Using an asterisk in the "objects" field of a schedule definition will override any domain.vmfull specifications in the dsm.opt file.

Symptom

Backup VM processes more virtual machines than expected.

Cause

Using an asterisk in the "Objects" line of a schedule definition tells the Tivoli Storage Manager client to backup all virtual machines thus overriding the domain.vmfull options.

Example:

Action: Backup VM
Objects: *
Options: -mode=IFINCR

Environment

Windows or Linux proxy

Any 6.1.x or newer Tivoli Storage Manager server.

Resolving the problem

Remove the asterisk from the schedule definition on the Tivoli Storage Manager server. To do so, update the schedule. For Example:

     update schedule standard vm_backups objects=""

After this change is saved, then restart the client scheduler service or CAD to ensure the update is in place for the next scheduled backup.

Remplis sous: TSM Aucun commentaire
5sept/15

TSM – Installation Manager fails to complete prereq check

Problem

The on screen message reports:
Exception caught while evaluating expression in bundle "com.tivoli.dsm.prereq.oscheck".

Symptom

Within the Installation Manager logs, the following messages are logged in the .xml log:

00:20.04 INFO: com.tivoli.dsm.prereq.utils.OSUtils.<init>(64) : Starting RXA session
00:20.22 ERROR: com.tivoli.dsm.prereq.utils.OSUtils.<init>(82) : An Exception was thrown while trying to get operating system information
00:20.22 ERROR: com.tivoli.dsm.prereq.utils.OSUtils.<init>(83) : CTGRI0039E An error occurred while attempting to execute a Visual Basic script. The following error information was returned:  | CScript Error: Failed to load the configuration. (Access denied. )

Cause

Incorrect user being used during installation/upgrade.

Resolving the problem

Review the following requirements for the user ID performing the installation/upgrade here:

Windows: Installing Tivoli Storage Manager by using the installation wizard

Ensure that the user ID that you plan to use during the installation is a user with local Administrator authority.

Installing the V7.1.1 server and verifying the upgrade

You must be logged on to the system with the administrative user ID that was used to install the V6.2 or V6.3 server.

Remplis sous: TSM Aucun commentaire
25août/15

SLOW STARTUP PERFORMANCE OF THE 7.1 SERVER ON WINDOWS

Abstract

The default value for the DB2 database parameter DB_MEM_THRESH changed in DB2 version 10.5 and can lead to slow startup performance of the 7.1 server on Windows.

Content

ERROR DESCRIPTION:
It is possible to see the server startup take significantly longer to start up than is expected. The delay is experienced when the DB2 DB_MEM_THRESH value is set to 100 and there are large bufferpools.

The delay affects either, newly installed Tivoli Storage Manager Version 7.1.x, or upgrades from Tivoli Storage Manager V5.x to 7.1.x on Windows systems.

Upgrades from V6.x to 7.1.0.00 or higher do not show this behavior, since the DB_MEM_THRESH value is not changed to 100. The delay does not affect normal server operations, only server startup.

Tivoli Storage Manager Versions Affected: 7.1

Customer/L2 Diagnostics: The following commands can be run on a
DB2 command line to verify the setting for DB_MEM_THRESH.

db2 connect to TSMDB1
db2 get db cfg for TSMDB1 | find "DB_MEM_THRESH"

Output should be similar to the following.

C:\Program Files\Tivoli\TSM\db2\BIN>db2 get db cfg for TSMDB1 |
find
"DB_MEM_THRESH"
Database memory threshold               (DB_MEM_THRESH) = 100

If you see DB_MEM_THRESH set to 100 and are running server version 7.1 on Windows then this APAR applies.

Initial Impact: Medium

Additional Keywords: startup start mem perf slow start up
performance

LOCAL FIX:
The following steps can be done while the TSM server is running and does not require that the TSM server be restarted.

The DB_MEM_THRESH value can be changed to the previous default
of 10 by issuing the following DB2 commands.

db2 connect to TSMDB1
db2 update db cfg for TSMDB1 using DB_MEM_THRESH 10

The output should look similar to the following.

C:\Program Files\Tivoli\TSM\db2\BIN>db2 update db cfg for TSMDB1
using
DB_MEM_THRESH 10
DB20000I  The UPDATE DATABASE CONFIGURATION command completed
successfully.

Remplis sous: TSM Aucun commentaire
31juil/15

BACKUP VM uses NBD over SAN transport

Technote (troubleshooting)

Problem(Abstract)

Although "VMVSTORTRANSPORT SAN" is set in the datamovers options file, the backup uses NBD.
Symptom

Backup uses NBD transport

Cause

VMware vCenter 'SSL.VERSION' setting is set to TLSv1.

This option can be found in the VMware vSphere client -> Administration -> vCenter Server Settings -> Advanced Settings.

Environment

Windows/Linux datamover.

vCenter 5.1 or 5.5.

Diagnosing the problem

A Tivoli Storage Manager client trace will show the following:

vmvddksdk.cpp (1275): diskLibPlugin: 2015-07-08T15:32:32.100-07:00 [02832 error 'Default']
Cannot use advanced transport modes for VCENTER/moRef=vm-12345/snapshot-6789: Other error encountered: SSL Exception: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure.

Resolving the problem

The SSL.VERSION parameter needs to either be set to 'ALL', or if TLS is a requirement, then the Tivoli Storage Manager client (datamover) must be upgraded to version 7.1.2.x. This version of client includes VDDK version 6.0 which has added support for TLS.

https://www.vmware.com/support/developer/vddk/vddk-600-releasenotes.html#whatsnew

Remplis sous: TSM Aucun commentaire
13oct/14

TSM Options needed for use with LDAP

What Tivoli Storage Manager client and server options are required for use with LDAP authentication?

Tivoli Storage Manager Client (dsm.opt):

    SSL YES
    TCPPORT <port>
    TCPADMINPORT <adminport>

Tivoli Storage Manager Server (dsmserv.opt):

    SSLTCPPORT <port>
    SSLTCPADMINPORT <adminport>
    SSLTLS12
    LDAPURL <ldapurl>

Note: SSLTLS12 is not compatible with pre-6.2 clients.

More information regarding these options are located here:
Configuring client/server comunications with SSL
Server Communication Options

Taggé comme: Aucun commentaire
3sept/14

Tivoli Storage Manager: Understanding the DB2 instance and database dirs

Question

In a Tivoli Storage Manager server environment, what is the purpose of the DB2 instance directory, and the local and system database directories?

Cause

When the TSMDB1 database is created in a Tivoli Storage Manager server environment, information about the database is written to both the DB2 local and system database directories. Understanding the purpose and locations of these directories, and the DB2 instance directory, can be beneficial during problem determination.

Answer

DB2 instance directory
The DB2 instance directory contains all information that pertains to a specific database instance. The instance directory contains the following data:
the database manager configuration file
the system database directory
the node directory
the node configuration file (db2nodes.cfg)
other files that contain debugging information (eg. db2diag.log)

By default, the DB2 instance directory is created in the home directory for the DB2 instance owner. The DB2 instance directory can typically be identified by the presence of the sqllib directory. If necessary, the 'db2greg -dump' command can be issued, as the DB2 instance owner, to determine the appropriate instance directory. The output from the 'db2greg -dump' command will resemble the following:

        $ db2greg -dump
        V,DB2GPRF,DB2SYSTEM,york.storage.usca.ibm.com,/opt/tivoli/tsm/db2,
        V,DB2GPRF,DB2FCMCOMM,TCPIP4,/opt/tivoli/tsm/db2,
        I,DB2,9.7.0.6, tsminst1 , /home/tsminst1/sqllib ,,1,0,/opt/tivoli/tsm/db2,,
        V,DB2GPRF,DB2INSTDEF,tsminst1,/opt/tivoli/tsm/db2,
        S,DB2,9.7.0.6,/opt/tivoli/tsm/db2,,,6,0,,1361241505,0

In the output above we are only concerned with the line that begins with "I" as this is the line that contains information about the instance. The value in the fourth comma-delimited field should be the name of the DB2 instance owner (tsminst1) and the value in the fifth field is the location where the sqllib directory was created. Being as the sqllib directory is only created in the instance directory, we are able to determine that /home/tsminst1 is the instance directory. Keep in mind that if multiple instances are defined on this host, information about each of these instances will be displayed in the 'db2greg -dump' output.

DB2 system database directory
The system database directory is where DB2 records information about all of the local and remote databases that are cataloged to this specific DB2 instance. In a Tivoli Storage Manager server environment, only information about the local TSMDB1 database is recorded in the system database directory. Entries for the TSMDB1 database are created in the system database directory when the database is cataloged; either implicitly via the CREATE DATABASE command (eg. dsmserv format) or explicitly via the CATALOG DATABASE command.

The system database directory is created in a subdirectory beneath the DB2 instance directory and can be identified by the following path:

//sqllib/sqldbdir

DB2 local database directory
The local database directory is where DB2 records information about all of the databases that are defined on the local host. In a Tivoli Storage Manager server environment, the local database directory will only contain information about the TSMDB1 database that is defined on that host. Entries for the TSMDB1 database are created in the local database directory only when the database is defined.

The DB2 local database directory is also often defined in, or a subdirectory of, the DB2 instance directory. The local database directory is created in the location specified by the default database path (DFTDBPATH) configuration parameter at the time that the database is defined. The current value for the DFTDBPATH configuration parameter can be determined by issuing the 'db2 get dbm cfg' command, as seen below:

$ db2 get dbm cfg |grep -i dftdbpath
Default database path (DFTDBPATH) = /tsminst1
In the event that no value is defined for the DFTDBPATH parameter, then the local database directory is, by default, created in the home directory for the DB2 instance owner. The local database directory can also be identified by the following directory structure:

////sqldbdir
For example, assuming a DB2 instance name of 'tsminst1' and a local database directory of '/home/tsminst1', we would expect to see the existence of the following directory path:

/home/tsminst1/tsminst1/NODE0000/sqldbdir

Remplis sous: TSM Aucun commentaire