• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Volume Deletion

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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.
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,739
Reaction score
619
Points
0
Location
Canada
Website
www.ibm.com
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.
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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.
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,739
Reaction score
619
Points
0
Location
Canada
Website
www.ibm.com
Are you sure that volume belongs to that storage pool?

Try:
query media H03538L5 stgp=* f=d

Double-check the pool and the access.
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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


 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
So how is the best way to resolve this please
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,739
Reaction score
619
Points
0
Location
Canada
Website
www.ibm.com
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.
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,739
Reaction score
619
Points
0
Location
Canada
Website
www.ibm.com
They try updating the access as "destroyed" first, because that's what they are. And then try again to get rid of them.
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

treds

ADSM.ORG Member
Joined
Jul 26, 2007
Messages
199
Reaction score
0
Points
0
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
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

DigitalOcean $100 Credit

Support ADSM.ORG and get DigitalOcean FREE credit. DigitalOcean currently offer a $100, 60-day Free Credit for new accounts. Sign-up here:

DigitalOcean Referral Badge

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 20 18.7%
  • Keep using TSM for Spectrum Protect.

    Votes: 65 60.7%
  • Let's be formal and just say Spectrum Protect

    Votes: 13 12.1%
  • Other (please comement)

    Votes: 9 8.4%

Forum statistics

Threads
31,885
Messages
135,936
Members
21,783
Latest member
london
Top