IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HSM is not Recycling Tapes completely


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Tue Dec 23, 2008 9:27 pm
Reply with quote

I am trying to recycle some old tapes using HSM. All these tapes contains HSM backup or HSM migrated datasets.

There are many tapes which are failing for recycle. error message that are coming is also different

Here are some examples

HSM RECYCLE FAILED ON IBM3. PLEASE INVESTIGATE
****************************************************
ARC0833I RECYCLE ENDED ON VOLUME 706508, 0000019 DATAARC0833I (CONT.) SETS MOVED, TIME 08:29:46, RC=0068, REAS=00000000

ARC0833I RECYCLE ENDED ON VOLUME 701128, 0002641 DATAARC0833I (CONT.) SETS MOVED, TIME 03:02:42, RC=0016, REAS=00000000

HSM RECYCLE FAILED ON IBM5. PLEASE INVESTIGATE
****************************************************
ARC0833I RECYCLE ENDED ON VOLUME I26188, 0000001 DATAARC0833I (CONT.) SETS MOVED, TIME 18:51:03, RC=0034, REAS=00000000

I have tried all the possibilities as suggested in the manual but couldn't figure out anything.

could anyone of you help?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 24, 2008 12:35 pm
Reply with quote

One possibility is a HSM / TMS mismatch. HSM thinks the tape is a HSM tape and the TSM thinks differently and has somehow scratched and reused the tape. This happened a lot at one site I was at.

Also, it may be worth performing an AUDIT MEDIACONTROLS on the failing volumes.

When was the last time that you performed a full CDS audit ?
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Wed Dec 24, 2008 6:03 pm
Reply with quote

I have tried AUDIT MEDIACONTROLS for failing volumes but getting following error messages

AUDIT MEDIACONTROLS VOLUMES(702111)

/* ERR 131 702111 - CANNOT BE MOUNTED
/* MSG 905 - ALLOCATION ERROR FOR DSN(HSMA.BACKTAPE.DATASET)
/* MSG 998 - AUDIT CONTINUING, COMMAND ACTIVITY LOG MAY CONTAIN ADDITIONAL INFOR
- END OF - ENHANCED AUDIT - LISTING -

I am not very sure how do we check if it has been caused by TMS or HSM.

I believe we have not full CDS audit from a a long time.

Could you please suggest?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 24, 2008 6:56 pm
Reply with quote

1) Are the required tapes inside of the tape robot (assumes you have one) - That usually fails a recycle if the tape is not available.

2) What is the status of the tape volser within the TMS, is it HSM or has it been over written by something else.

3) A full CDS audit can take days, even weeks, auditing every CDS for every error. I always run with NOFIX as running with FIX requires that NO other HSM activity happens to ensure data integrity of the CDS. Easy enough to check out the errors caused by HSM processing.

Good luck, because I'm off until Monday now.
Yeeeeeeeeeeeeeeeeeeee Haaaaaaaaaaaaaaaaaaaaa
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Mon Dec 29, 2008 4:14 pm
Reply with quote

I have used this 'AUDIT MEDIACONTROLS VOLUMES(707045)'
but it seems to be giving many "FIXCDS T" command to run

/* FIXCDS T 'SP-707045-0000' VERIFY(X'00000094' HSM3.BACK.T445323.NUXUD.ALKY.J0192) PATCH(X'00000094' + */
/* X'404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040') */
/* FIXCDS T 'SP-707045-0000' VERIFY(X'00000094' + */
/* X'404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040') PATCH(X'00000094' + */
/* N2XUD.ALKY.GENPARS)

I am not sure How to use them and what impact can it have on the actual backed up dataset.
what impact will these commands have on actual backed up dataset. Will we able to recover those datasets in the case of fails?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 29, 2008 4:25 pm
Reply with quote

The audit mediacontrols cross references the BCDS/OCDS and tape contents to come up with a load of FIXCDS statements.

By running the audit with FIX it executes the commands and synchronises the two CDS and tape contents.

Then the tape should recycle OK. If you want to know what it is suggesting, then go through the HSM diagniostics manual and trace every offset against every FIXCDS command to see what HSM thinks is correct.

It has always worked for me in the past, as HSM auditing itself knows far more about what is going on internally than I ever will.

Also, do a LIST TTOC and is there are any known problems with tapes they will be easily identifiable, and should be put through audit mediacontrols.
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Mon Dec 29, 2008 5:22 pm
Reply with quote

Is there any way that we can get all these fixcds in one dataset. as all it is displaying in HSMLOG, from where it is very difficult to copy and paste
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Mon Dec 29, 2008 5:29 pm
Reply with quote

Can I try "AUDIT MEDIACONTROLS FIX VOLUMES(707025)'?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 29, 2008 5:36 pm
Reply with quote

jayp_agrawal wrote:
Can I try "AUDIT MEDIACONTROLS FIX VOLUMES(707025)'?

Try it and see what happens, HSM will let you know if the syntax is right or not.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 29, 2008 5:37 pm
Reply with quote

jayp_agrawal wrote:
Is there any way that we can get all these fixcds in one dataset. as all it is displaying in HSMLOG, from where it is very difficult to copy and paste

Look at the ODS (out dataset) parameter
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Fri Jan 02, 2009 6:00 pm
Reply with quote

It has worked fine, thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Report of uncataloged Tapes JCL & VSAM 9
No new posts DFSMShsm RECYCLE, DUPLEX tapes and SMS JCL & VSAM 14
No new posts Need to Know about files writing on T... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Whats mounting and demounting in tapes Mainframe Interview Questions 14
No new posts Tapes that exists in ISMF ATL lib als... CA Products 9
Search our Forums:

Back to Top