View previous topic :: View next topic
|
Author |
Message |
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
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. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What has happened to the tapes. |
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Probably a dumb question but you did use the DSI parameter didn't you
Code: |
LIST TTOC(nnnnnn) DSI ODS=('whatever') |
|
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
Nope, but tried again with DSI, same result.
(LIST TTOC (TAPE1) DSI) |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
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? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
Just a thought... Why not delete the MCDS record of the volumes?
Would that be an incomplete solution? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That is what I was going to look at |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
expat wrote: |
That is what I was going to look at |
Good choice, have fun. |
|
Back to top |
|
|
snoswar
New User
Joined: 22 Aug 2006 Posts: 5 Location: Australia
|
|
|
|
Silly question . . . as the number of valid blocks appear to be zero . . . what would a RECYCLE have done ? |
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
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 |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
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 |
|
|
|