Volume Deletion

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
PREDATAR Control23

Hi All
a while ago we migrated our database to a new server. Now in that DB was an old tape that is no longer in the library and I want to delete them from the DB.

Using del vol Hxxxx discard=yes
but I get the following error

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures}

ANR1425W Scratch volume H00723L3 is empty but will not be

deleted - volume state is "mountablenotinlib". (SESSION:

939)

Any help apprie

Regards
Treds
 
PREDATAR Control23

Follow the steps from the help for message ANR1425W:

upload_2017-5-25_9-55-41.png
 
PREDATAR Control23

hi get the following error
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures}

tsm: TAG1ARCHIVE>checkout libvol sl950 H00439L3 remove=no

ANR8403E CHECKOUT LIBVOLUME: Operation not allowed for SHARED libraries.

ANS8001I Return code 3.

Regards
Treds
 
PREDATAR Control23

I have managed to remove some of the volumes using

move media * stg=FILE_ONSITE WHERESTATE=mountablenotinlib (seems you don't need wherestatus=empty )

however, there are still tapes I can't remove, even though I get a successful response from the command above
any other suggestions would be appreciated

thanks
Treds
 
PREDATAR Control23

running a successful move media * stg=FILE_ONSITE WHERESTATE=mountablenotinlib should remove the tape from the DB as it did with other volumes.
So with the ones that have not been removed if I run a del vol i get the following
ANS8001I return error code 14.
If you look at the post that marclant kindly put up it shows to use WHERESTATE=mountablenotinlib to resolve.
 
PREDATAR Control23

ANS8001I return error code 14.
That's a client error as it starts with ANS, that would be coming from the admin command line, not the error from your command because server errors start with ANR. You'll need to check the activity log.
 
PREDATAR Control23

If i run del vol H03538L5

I get from the actlog
31/05/17 12:58:15 ANR1425W Scratch volume H03538L5 is empty but will not be

deleted - volume state is "mountablenotinlib". (SESSION:

5429)

if i run

move media H03538L5 stg=FILE_ONSITE WHERESTATE=mountablenotinlib

I get from the actlog

ANR6691E MOVE MEDIA: No match is found for this move.
 
PREDATAR Control23

Are you sure that volume belongs to that storage pool?

Try:
query media H03538L5 stgp=* f=d

Double-check the pool and the access.
 
PREDATAR Control23

Volume Name : H03538L5
State: Mountable not in library
Date/Time Last Update : 28/01/15 14:12:58
Location: ?
Storage Pool Name : FILE_ONSITE
Automated LibName
Volume status : Pending
Access : Read/Write
Last Reference Date : 07/08/13 00:28:43


 
PREDATAR Control23

So how is the best way to resolve this please
 
PREDATAR Control23

Hi Marclant I am not back to the same issue
according to those instructions I need to check out the volume, then run move media Tape01 stg=* wherestate=mountablenotinlib wherestatus=empty to remove.
But i can't check it out as i get


checkout libv sl950 H04467L5 remove=bulk

ANR8403E CHECKOUT LIBVOLUME: Operation not allowed for SHARED libraries.

thanks Treds
 
PREDATAR Control23

Step 1 says CHECKIN, not CHECKOUT

And anytime you do a checkin/checkout, it's always from the library manager like every time you checkin/checkout volumes.
 
PREDATAR Control23

The library manager can't check in tapes that don't exist? these are old tapes that were destroyed years ago. They just were just taken out of the library not removed properly by TSM
 
PREDATAR Control23

They try updating the access as "destroyed" first, because that's what they are. And then try again to get rid of them.
 
PREDATAR Control23

Getting closer that has worked for some but not all.

I have some i can't destroy due to a mountablenotinlib error.

Some I have managed to destroy but are not removed from list when i run

move media * stg=FILE_ONSITE WHERESTATE=mountablenotinlib wherestatus=empty
 
PREDATAR Control23

I have managed to get down to the last 20 volumes, can't seem to delete these
Thanks
Treds


tsm: TAG1ARCHIVE>q vol H01847L3 f=d


Volume Name: H01847L3

Storage Pool Name: EXC_WEEKLY_OLD

Device Class Name: LTOCLASS

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

Write Pass Number: 1

Approx. Date Last Written: 09/11/10 06:14:42

Approx. Date Last Read: 09/11/10 05:26:34

Date Became Pending:

Number of Write Errors: 0

Number of Read Errors: 0

Volume Location:

Volume is MVS Lanfree Capable : No

Last Update by (administrator): RTREDWAY

Last Update Date/Time: 30/05/17 16:08:57

Begin Reclaim Period:

End Reclaim Period:

Drive Encryption Key Manager: None

Logical Block Protected: No
 
Top