UNL DCache discovering lost files
How to get the list of broken files which are being accessed at UNL (doesn't work elsewhere).
Log in to dcache-head.unl.edu and execute the following script:
for i in `cat /tmp/trace.out | grep poolManager | awk '{print $NF;}' | grep 000 | sort | uniq`; do mypath=`dcache_pnfs_pathfinder $i`; echo $mypath `dcache_path2server $mypath`; doneThe above one-liner prints out the filename and servers with that file now, if any exist. If you just want the file names:
for i in `cat /tmp/trace.out | grep poolManager | awk '{print $NF;}' | grep 000 | sort | uniq`; do dcache_pnfs_pathfinder $i; doneTake all the CMS files, save them to a file. Open a Savannah ticket, attach the file, and assign it to Data Ops. Ask them to remove the file replicas in the list from T2_US_Nebraska (files which are still subscribed should be redownloaded; DBS should be synchronized automatically).