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.
Hello
I am looking for a script or some command to find out which tape or tapes a particular file is stored on. QUOTE]
q nodedata will show us what tapes contain data for a specific node.
Since we want to know what tape or tapes that contain a specific file, there is not a command would have to run a select statment.
If we know the file name:
select * from backups where node_name='NODE_NAME' and ll_name='FILE_NAME'
If we do not know the file name:
select * from backups where node_name='NODE_NAME'
If there are lots of files, there is a good chance that the above will slow or crash the TSM Server.
Here is another variation of the above select -
select * from backups where node_name='NODE_NAME and filespace_name='/filespace/name' and hl_name='/sub/directory' and ll_name='filename'
Good Luck,
Sias