How to find tape with a certain file

davas

Newcomer
Joined
Nov 18, 2015
Messages
4
Reaction score
0
Points
0
Good afternoon, please tell me what command you can use to see which tape contains a certain file, for example doc.txt ?
 
Hello,
recently I needed a similar command to list all files from one tape. I modified it a bit, so it should do what you are looking for:
select volume_name, filespace_name, file_name, CAST((FILE_SIZE/1024/1024) As DECIMAL(7,2)) AS SIZE_MB, object_id, segment from contents where file_name = '$filename'

But be aware that CONTENTS may be a huge table!
The "segment" is important in case the file is spanned over two tapes
 
Back
Top