Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TSM API - dsmDeleteObj

Status
Not open for further replies.

bigmike64

Programmer
Joined
Mar 1, 2005
Messages
1
Location
US
I am using the TSM C API to programatically backup and restore data. This works fine. However, I need to deactivate the data after I back it up, so that our management class can remove it after the appropriate time.

I am trying to deactivate using the dsmDeleteObj function and passing it dtBackup as the dsmDelType. I run the following code before the call to configure the dsmDelInfo that I pass:

dsmDelInfo delInfo;
delInfo.backInfo.objNameP = &qbDataArea.objName;
delInfo.backInfo.stVersion = delBackVersion;

The &qbDataArea.objName is the dsmObjName I get back from my query, earlier in the method. When I run the query with objState = DSM_ANY_MATCH, it lists one ACTIVE copy and no INACTIVE copies of the data. There are no inactive copies of the data in TSM.

When I run the dsmDeleteObj, and try to end the transaction, I get a return code/reason code of:

#define DSM_RC_CHECK_REASON_CODE 2302 /* check reason code from dsmEndTxn */

#define DSM_RS_ABORT_ACTIVE_NOT_FOUND 4

Anyone know why the server would abort my transaction and give me this "active not found" reason code?

Any help would be appreciated... I'm pretty stuck.

Thanks a ton,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top