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


    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.

Missing Data... Need to know what data...


Good morning all! I'm in a predicament that I could use some help on. I was in this spot a many years ago and someone on this forum helped me figure it out - at least I think it was this forum; but I can't find it.

I've got this server running in Win2K8R2 using 500TB of replicated NAS for storage of BFS backup data files. About 15,000 BFS volumes worth of data and I need to restore from a major system wide crash.

During the restore I've found there are roughly 200 BFS volumes missing from disk. This is a SAN replicaiton problem, not a TSM problem, but it's my problem.

I've identified the missing volumes and marked them as destroy but I need to go a step further and this is where I got help here last time, I just don't remember who or how...

1) I want to query the database directly and find out what files/filesets were on these volumes.
2) Then based on that information I want to search the database of existing remaining volumes to find the last versions of the missing files so I can do a point-in-time restore.

I know it's not exactly an easy task but I've done it before so I know it can be done... I'd appreciate any assistance anyone can offer!



Oh, and btw, I didn't architect the system - so don't judge :)


ADSM.ORG Moderator
select node_name,filespace_name,copy_type,stgpool_name from volumeusage where volume_name='<VOLUME_NAME_IN_CAPS_AND_COMPLETE_PATH_FOR_DEVCLASS_FILE>'


Awesome, that's a huge step in the right direction! Now, how can I see what files are actually backed up within those filespaces on those volumes?


ADSM.ORG Moderator
Awesome, that's a huge step in the right direction! Now, how can I see what files are actually backed up within those filespaces on those volumes?
WARNING: The query process may take a long time and may even crash the TSM instance

select node_name,filespace_name,file_name,type from contents where node_name='<NODE_NAME>' and volume_name='<VOLUME_NAME>' and filespace_name='<FILESPACE_NAME>'
The entries for node, volume and filespace names comes from the earlier SELECT query I sent.
Last edited:


ADSM.ORG Moderator
You can combine the 2 select statements like:

select vu.node_name,vu.filespace_name,con.file_name,vu.copy_type from volumeusage as vu,contents as con where (vu.node_name=con.node_name) and (vu.filespace_name=con.filespace_name) and (vu.volume_name=con.volume_name) and vu.volume_name='<VOLUME_NAME_IN_CAPS_AND_COMPLETE_PATH_FOR_DEVCLASS_FILE>' order by vu.volume_name,vu.filespace_name,con.file_name
to create listing supplying only the volume name

another approach is to run the SELECT statement using STATUS as pivot to generate the file names

select vu.node_name,vu.filespace_name,con.file_name,vu.copy_type from volumeusage as vu,contents as con,volumes as vol where (vu.node_name=con.node_name) and  (vu.filespace_name=con.filespace_name) and (vu.volume_name=con.volume_name) and (vu.volume_name=vol.volume_name) and vol.status='DESTROYED' order by vu.volume_name,vu.filespace_name,con.file_name >> file_name.txt
Last edited:

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

    Votes: 60 61.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.2%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Latest member