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

HSM CDS problem


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

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 3:43 pm
Reply with quote

I'm having 2 HSM problems, which I suspect could only be solved with a FIXCDS command.
Both problems are about 2 real tapes (ML2), which aren't in the library (and won't be).

Problem #1
Code:
DELVOL TAPE1 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE1 ENTRY NOT DELETED -
ARC0260I (CONT.) VALID DATA MAY EXIST ON VOLUME


Code:
LIST TTOC (TAPE1)
VOLSER    UNIT    VOL      REUSE     VALID   PCT    VOL    RACF  PREV    SUCC    NUM  ONE   ALT     LIB       STORAGE
          NAME    TYPE   CAPACITY    BLKS    VALID  STATUS       VOL     VOL     REC  FILE  VOL                GROUP 
TAPE1    3490    ML2  0006249900 0000000000 000    FULL    NO   *NONE*  *NONE*  001  ***   *NONE*  *NO LIB*  **NO SG*


Tried: MIGRATE VOLUME(TAPE1 DBA(0))
(as mentioned in the documentation) - no effect

Problem #2
Code:
DELVOL TAPE2 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE2 ENTRY NOT DELETED -
ARC0260I (CONT.) SELECTED BY ANOTHER HOST


Code:
LIST TTOC (TAPE2)
VOLSER    UNIT    VOL      REUSE     VALID   PCT    VOL    RACF  PREV    SUCC    NUM  ONE   ALT     LIB       STORAGE
          NAME    TYPE   CAPACITY    BLKS    VALID  STATUS       VOL     VOL     REC  FILE  VOL                GROUP 
TAPE2    3490    ML2  0002757300 0000000000 000    EMPTY   NO   *NONE*  *NONE*  001  ***   *NONE*  *NO LIB*  **NO SG*


Both tapes appear in LIST ML2 MCDS lists.

Any idea/suggestion highly appreciated. icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 14, 2010 4:43 pm
Reply with quote

What has happened to the tapes.
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 4:47 pm
Reply with quote

They were ejected from the library and taken away. icon_rolleyes.gif

A similar problem was discussed here -- ibmmainframes.com/viewtopic.php?t=37134
But I couldn't figure out how to apply it to this case.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 14, 2010 4:58 pm
Reply with quote

If you can list the datasets that HSM thinks are resident on the ML2 volume, maybe an IDCAMS delete, recover from backup, and remigrate.

I think that once HSM believes that there is no longer any valid data on the tape the DELVOL should work.
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 5:03 pm
Reply with quote

In Problem #1 - LIST TTOC returns FULL (as volume status) but doesn't list any datasets.
Or there is another way to list those datasets?

In Problem #2 - LIST TTOC returns EMPTY (as volume status), so I guess HSM believes there is no longer any valid data, but gives the "SELECTED BY ANOTHER HOST" error.. :/
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 14, 2010 5:59 pm
Reply with quote

Probably a dumb question but you did use the DSI parameter didn't you

Code:
LIST TTOC(nnnnnn) DSI ODS=('whatever')
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 6:04 pm
Reply with quote

Nope, but tried again with DSI, same result.
(LIST TTOC (TAPE1) DSI)
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jun 17, 2010 3:08 pm
Reply with quote

Just a passing thought ................. what happens if you delete the OCDS record for the volume(s).

Can't tell you the exact command as my copy of the DFhsm diagnostics manual is on my personal laptop and not on the one at work.

Suggest you take a backup first icon_biggrin.gif
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 21, 2010 2:46 pm
Reply with quote

Used commands:
Code:
FIXCDS T L2-TAPE1-0000 DELETE
FIXCDS T L2-TAPE2-0000 DELETE


And now:
Code:
DELVOL TAPE1 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE1 ENTRY NOT DELETED -
ARC0260I (CONT.) CDS ERROR


LIST TTOC (TAPE1) doesn't return anything (empty list).

Code:
DELVOL TAPE2 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE2 ENTRY NOT DELETED -
ARC0260I (CONT.) SELECTED BY ANOTHER HOST


LIST TTOC (TAPE2) doesn't return anything (empty list).

I did a FIXCDS T L2-TAPEX-000 DISPLAY on the tapes previously, does that count as a backup? icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 21, 2010 2:52 pm
Reply with quote

I did actually mean taking either an IDCAMS REPRO backups of the CDS or a BACKVOL CDS so that in case of need you could recover the CDS back to prior to the delete of the T record.

If I get some time this evening I will go through my notes on HSM and see what I can find as I am sure that I have met the same problem somewhere in the dark and distant past.

Well let's face it, I won't be watching England play in the world cup after Wednesday.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jun 21, 2010 2:57 pm
Reply with quote

Quote:

Well let's face it, I won't be watching England play in the world cup after Wednesday.


A very good alternative could be watching The Netherlands 36_8_12.gif
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 21, 2010 3:07 pm
Reply with quote

Just a thought... Why not delete the MCDS record of the volumes?
Would that be an incomplete solution?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 21, 2010 3:12 pm
Reply with quote

That is what I was going to look at icon_lol.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jun 21, 2010 3:15 pm
Reply with quote

expat wrote:
That is what I was going to look at icon_lol.gif


Good choice, have fun.
Back to top
View user's profile Send private message
snoswar

New User


Joined: 22 Aug 2006
Posts: 5
Location: Australia

PostPosted: Mon Jun 28, 2010 8:11 am
Reply with quote

Silly question . . . as the number of valid blocks appear to be zero . . . what would a RECYCLE have done ?
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 28, 2010 1:55 pm
Reply with quote

If I remember correctly, it gave an error, can't remember which one exactly.
Can't re-run recycle now, because T records are deleted.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Jun 29, 2010 8:07 pm
Reply with quote

May be worth exploring use of some of the AUDIT commands (they're in the licenced material manuals I think). Something like AUDIT MEDIACONTROLS can identify the problem and even fix the problem if you have the FIX parameter included on the command:

e.g.
HSEND AUDIT MEDCTL VOLUMES(TAPE1) FIX REPORT(ERRORS) -
ODS(your.output.file)

Note that there are numerous other AUDIT command variations so it involves a bit of reading to understand what it does and what it will fix (or not).
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Jun 29, 2010 8:37 pm
Reply with quote

Try the DFHSM AUDIT MEDIACONTROLS command. Some example AUDIT commands:

HSEND AUDIT DIRCTL VOLUMES(ML1VOL) REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT MEDCTL VOLUMES(ML1VOL) FIX +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT VOLCTL(MIGRATION) VOLUMES(ML1VOL) FIX REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT DSCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
DSN(file.name) +
ODS(output.file)

HSEND AUDIT VOLCTL(MIGRATION) VOLUME(volser) FIX REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT MEDCTL VOLUMES(volser) FIX REPORT(ERRORS) SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT MEDCTL(SDSP) VOLUMES(ML1VOL1 ML1VOL2) FIX +
REPORT(ERRORS) ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT MEDCTL VOLUMES(ML1VOL1 ML1VOL2) FIX +
REPORT(ERRORS) ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT DIRCTL VOLUMES(ML1VOL1 ML1VOL2) REPORT(ERRORS)
FIX SERIAL(DYNAMIC) ODS(output.file)

HSEND AUDIT DSCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT VOLCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT VOLCTL(RECOVERABLE) REPORT(ERRORS) FIX SERIAL(DYNAMIC +
ODS(output.file)

HSEND AUDIT VOLCTL(BACKUP) BACKUPTYPE(ALL) REPORT(ERRORS) FIX +
SERIAL(DYNAMIC) ODS(output.file)

HSEND AUDIT DSCTL(BACKUP) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT BVOL REPORT(ERRORS) FIX ODS(output.file)

HSEND AUDIT ALL FIX REPORT(ERRORS) ODS(output.file)
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Wed Jun 30, 2010 2:07 pm
Reply with quote

onn reflection it may be the VOLUMECONTROLS one to use...but I can't be bothered doing the RTFM thing for you
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Thu Jul 01, 2010 2:36 pm
Reply with quote

Hey Pete, thanks for your response!

I'm familiar with the AUDIT command and I'm using it quite often lately (mostly MEDCTL portion of the command, to fix faulty tapes).
So, trying an AUDIT MEDCTL on the volumes was one of the first tries.
Haven't tried VOLCTL though, but tried it now and it gives NO TTOC message.

I think a FIXCDS command to delete the S or V records of the tape would be a solution, just not sure if it's a proper one.
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top