• 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.

Finding the exact tape needed

DanGiles

ADSM.ORG Senior Member
#1
When you ask TSM to restore a specific file, it knows exactly where it is. I cannot, however, figure out which tables will tell you that. I imagine you get the object id from the BACKUPS table, but then where do you go to get the tape?

Thanks!
 

LED888

ADSM.ORG Moderator
#2
Not sure what version of TSM Server that we are running.

TSM 5 & 6 - The following should list the volume(s) of a file for a specific node.
select volume_name from contents where file_name='file_name' and node_name='NODE_NAME'

Spectrum..
q nodedata

If the above don't help.
From the TSM Client, issue a restore, and check the actlog on the TSM Server to see what tape is being requested.

Good Luck,
Sias
 

Sunhillow

ADSM.ORG Senior Member
#4
Hi Daniel,
I use this command to list specific files per tape from the contents table:
Code:
dsmadmc -tcpserver=*** -id=*** -pa=*** -commadelimited "select volume_name, file_name, filespace_name, file_size, segment from contents where (volume_name = 'SP0857L6' and (file_name like '%%xxx%%') order by file_name"
With TSM versions >= 7 it should be possible to query the whole CONTENTS table without causing excessive load, but I did not yet dare this. On TSM 5.x such a query could run for hours :oops:
 

moon-buddy

ADSM.ORG Moderator
#5
Hi Daniel,
I use this command to list specific files per tape from the contents table:
Code:
dsmadmc -tcpserver=*** -id=*** -pa=*** -commadelimited "select volume_name, file_name, filespace_name, file_size, segment from contents where (volume_name = 'SP0857L6' and (file_name like '%%xxx%%') order by file_name"
With TSM versions >= 7 it should be possible to query the whole CONTENTS table without causing excessive load, but I did not yet dare this. On TSM 5.x such a query could run for hours :oops:
Your reply is not what Dan was asking - he wants to know the volume name. Your script assumes you know the volume name already.
 

DanGiles

ADSM.ORG Senior Member
#7
It's easy to get a list of tapes that belong to a node from the volumeusage table. I need to be more specific. The contents table though points to the solution. From the backups table I can get the object ID, then use that to index into the contents table to get the date.
 

Advertise at ADSM.ORG

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

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

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: 14 17.3%
  • Keep using TSM for Spectrum Protect.

    Votes: 51 63.0%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 11.1%
  • Other (please comement)

    Votes: 7 8.6%

Forum statistics

Threads
31,380
Messages
133,653
Members
21,492
Latest member
CamoVan
Top