Deleting an orphaned volume

joshmo

ADSM.ORG Member
Joined
Jul 28, 2010
Messages
25
Reaction score
0
Points
0
Location
Cardiff, Wales, UK
Hi,

I've recently upgraded the tape libraries on our TSM instalation as part of this I migrated the storage pools associated with the old tape library to new storagepools using the new tape library device class.

Have complete this operation I am left with one empty volume that is part of one of the old storage pools that I can't delete.

I've tried the folowing:

1: del volume hf6454l4 discard=yes

This fails with an error saying that the volume state is mountablenotinlib.

2: Tried the move media command to update the state above.

move media hf6454l4 stg=* wherestate=mountablenotinlib

This also fails with an error that the old library is not defined (I've already deleted the old library, may be a bad move in hindsight!)

Anyone have any other ways I can delete this volume reference. BTW this is stopping me from deleting the old storagepool this volume is in aswell.

Thanks!
 
Hi,

try to update the access to "readwrite"
upd vol HF6454L4 acc=readw
and then try to delete it again (in case it is empty it may be deleted immediately you change the access mode)
Show us the complete actlog part where you change the access and try to delete it - so we can see all the errors.
Attaching "q vol HF6454L4 f=d" would be helpful as well.

Hope it helps

Harry
 
Sorry for the late reply, here are the details.

The volume is already in read/write access

tsm: HGA160>q vol HF6454L4 f=d
Volume Name: HF6454L4
Storage Pool Name: VIRTUALVOLSOLD
Device Class Name: HHH_LT04
Estimated Capacity: 0.0 M
Scaled Capacity Applied:
Pct Util: 0.0
Volume Status: Empty
Access: Read/Write
Pct. Reclaimable Space: 0.0
Scratch Volume?: Yes
In Error State?: No
Number of Writable Sides: 1
Number of Times Mounted: 6
Write Pass Number: 1
Approx. Date Last Written: 11/20/2010 14:09:25
Approx. Date Last Read: 11/19/2010 01:50:35
Date Became Pending:
Number of Write Errors: 0
Number of Read Errors: 0
Volume Location: tapesafe
Volume is MVS Lanfree Capable : No
Last Update by (administrator): ADMIN
Last Update Date/Time: 07/04/2011 11:16:35
Begin Reclaim Period:
End Reclaim Period:
Drive Encryption Key Manager: None

When trying to delete.....


09/09/2011 15:04:27 ANR2017I Administrator ADMIN issued command: DELETE VOLUME
HF6454L4 (SESSION: 69890)
09/09/2011 15:04:28 ANR2017I Administrator ADMIN issued command: DELETE VOLUME
HF6454L4 (SESSION: 69890)
09/09/2011 15:04:29 ANR1425W Scratch volume HF6454L4 is empty but will not be
deleted - volume state is "mountablenotinlib". (SESSION:
69890)

So try to change the volume state to mountableinlib by moving media...
...
ANR2017I Administrator ADMIN issued command: MOVE MEDIA
HF6454L4 stg=* (SESSION: 69890)
ANR0984I Process 1029 for MOVE MEDIA started in the
BACKGROUND at 15:06:56. (SESSION: 69890, PROCESS: 1029)
ANR0609I MOVE MEDIA started as process 1029. (SESSION:
69890, PROCESS: 1029)
ANR0610I MOVE MEDIA started by ADMIN as process 1029.
(SESSION: 69890, PROCESS: 1029)
ANR6682I MOVE MEDIA command ended: 0 volumes processed.
(SESSION: 69890, PROCESS: 1029)
ANR6691E MOVE MEDIA: No match is found for this move.
(SESSION: 69890, PROCESS: 1029)
ANR0611I MOVE MEDIA started by ADMIN as process 1029 has
ended. (SESSION: 69890, PROCESS: 1029)
ANR0985I Process 1029 for MOVE MEDIA running in the
BACKGROUND completed with completion state SUCCESS at
15:06:56. (SESSION: 69890, PROCESS: 1029)
 
Hi,

if I understand it correctly there is a stgpool VIRTUALVOLSOLD (is it primary or copy?) and it is defined using (old) device class HHH_LTO4. This device class does not point to any library now (as you said you have deleted it).
In that case it may be the root of the problem as the MOVE MEDIA does not process volumes in stgpools with no automated library
STGpool (Required)
Specifies the name of the sequential access primary or copy storage
pool that is used to select the volumes for processing. You can use a
wildcard character to specify the name. All matching storage pools
are processed. If the storage pool specified is not managed by an
automated library, no volumes are processed.

So I would try to update the old devclass with the new library (does not matter - ANY library should do the trick) and then use MOVE MEDIA again.

Really not sure if it helps - but seems we cannot break it more :)

Harry
 
Excellent idea...

Still didn't work tho.... Does the tape have to be in the library for this to work?

ANR0609I MOVE MEDIA started as process 1060. (SESSION:
71427, PROCESS: 1060)
ANR0610I MOVE MEDIA started by ADMIN as process 1060.
(SESSION: 71427, PROCESS: 1060)
ANR6682I MOVE MEDIA command ended: 0 volumes processed.
(SESSION: 71427, PROCESS: 1060)
ANR6691E MOVE MEDIA: No match is found for this move.
(SESSION: 71427, PROCESS: 1060)
ANR0611I MOVE MEDIA started by ADMIN as process 1060 has
ended. (SESSION: 71427, PROCESS: 1060)
ANR0985I Process 1060 for MOVE MEDIA running in the
BACKGROUND completed with completion state SUCCESS at
08:03:04. (SESSION: 71427, PROCESS: 1060)
 
Hi,

do not know - you may try it (checking the tape back in the library - the new one).
What about running
move media hf6454l4 stg=virtualvolsold
now, when the library is defined ....
If it does not help, try to check the tape in the library ... if possible.

Harry
 
Back
Top