IBM Support

A prompt for User Action is received while retrieving data to an empty directory.

Troubleshooting


Problem

Data is retrieved to an empty directory. A prompt is received indicating the file retrieved already eixsts.

Symptom

The following Tivoli Storage Manager client command is used to retrieve the "/testfs/testfile" file :

dsmc retrieve /testfs/testfile /empty

In this example, the retrieve is redirected to the /empty path, which is an empty directory.
The command prompts for action indicating the file already exists. For example :

Retrieving 400 /testfs/testfile --> /empty/testfile [Done]

--- User Action is Required ---
File '/tmp/testfile' exists

Select an appropriate action
1. Replace this object
2. Replace all objects that already exist
3. Skip this object
4. Skip all objects that already exist
A. Abort this operation
Action [1,2,3,4,A] : 1
Retrieving 400 /testfs/testfile --> /empty/testfile [Done]

Retrieve processing finished.

Total number of objects retrieved: 2
Total number of objects failed: 0
Total number of bytes transferred: 800 B
Data transfer time: 0.00 sec
Network data transfer rate: 7,533.48 KB/sec
Aggregate data transfer rate: 0.10 KB/sec
Elapsed processing time: 00:00:29


The following file is retrieved :

ls -al /empty/testfile:
-rw-r--r-- 1 root system 400 May 12 15:11 /tmp/testfile


The above data shows the file was retrieved twice because :

  • A prompt is issued for user action indicating the file already exists.
  • The amount of data retrieved (Total number of bytes transferred) is twice the size of the file. In this case, there were 800 bytes transferred for a 400 bytes file.

Cause

Multiple archives were done for the same file on the same date.

Diagnosing The Problem

Use the Tivoli Storage Manager client command line to view the archived data. For example :

dsmc query archive /testfs/testfile
Size Archive Date - Time File - Expires on - Description
---- ------------------- -------------------------------
400 B 06/03/08 09:59:19 /testfs/testfile 06/03/09 Archive Date: 06/03/08
400 B 06/03/08 19:59:29 /testfs/testfile 06/03/09 Archive Date: 06/03/08

The above output shows there are two archives for the "/testfs/testfile" file on date 06/03/08. One was done at 09:59:19 and the other one was done at 19:59:29. As a result, both copies get retrieved.

Resolving The Problem

Use one of the below options to prevent data get from being retrieved twice in the event that multiple archives were done on the same date or multiple archives were done with the same archive description.

  • Use the Tivoli Storage Manager client command line pick option. For example :

    dsmc retrieve /testfs/testfile -pick

    From the retrieve pick window, select the archive copy to retrieve.
  • Use the Tivoli Storage Manager client command line fromdate and fromtime options. For example :

    dsmc retrieve /testfs/testfile -fromdate=/06/03/2008 -fromtime=19:00:00

    This command will only retrieve the one which is archived at "19:59:29" in above example.

[{"Product":{"code":"SSGSG7","label":"Tivoli Storage Manager"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Client","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Supported Versions","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
17 June 2018

UID

swg21306522