IBM Support

ANS9256E error for HSM file migration failure

Troubleshooting


Problem

The dsmmigrate command is run to manually migrate a file. The command fails with error ANS9256E.

Symptom

The following sequence shows an example of the errors:

dsmmigrate -Det /ibm/gpfs0/file1
...
ANS1228E Sending of object '/ibm/gpfs0/file1' failed
ANS9256E File '/ibm/gpfs0/file1' is currently opened by another process. File skipped.

The automatic migration also fails to migrate the same file, and the same error is recorded in the dsmerror.log file.

Cause

Orphaned migration transactions

Environment

Tivoli Storage Manager for Space Management for GPFS

Diagnosing The Problem

In this specific case, no process or thread is accessing this file and a file copy operation completes successfully. An HSM client service trace shows the following information:

dmimig.cpp (1462): dmiPrepareMig: file is already in migration!

Also, there is an orphaned migration transaction in the .SpaceMan directory. For example :

ls -al /ibm/gpfs0/.SpaceMan/logdir/trans*
...
-rw------- 1 root bin 0 Oct 27 21:30
C0A886014D029B5E000000004698BC0A00000000000000000001000100000000.mig

Resolving The Problem

Run the following command to force the migration:

dsmmigrate -force -Det /ibm/gpfs0/file1

[{"Product":{"code":"SSSR2R","label":"Tivoli Storage Manager for Space Management"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"}],"Version":"6.3;6.4;7.1;7.1.2;7.1.3;7.1.4","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
17 June 2018

UID

swg21661414