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

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

BDMcGrew

ADSM.ORG Member
#1
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 6.3.3.0 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!

Thanks,

-brian

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

moon-buddy

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

BDMcGrew

ADSM.ORG Member
#3
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?
 

moon-buddy

ADSM.ORG Moderator
#4
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

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

moon-buddy

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

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

Code:
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: 12 15.8%
  • Keep using TSM for Spectrum Protect.

    Votes: 48 63.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 11.8%
  • Other (please comement)

    Votes: 7 9.2%

Forum statistics

Threads
31,354
Messages
133,546
Members
21,475
Latest member
sag
Top