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
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