Finding the pool location of a certain file

In this example, we will locate the file /pnfs/fzk.de/data/gks/testbin-1. If you have deleted this file, please recreate it by copying /bin/bash into dCache. For more details, see the previous section.

First, we need to discover the file's pnfs ID of the file. This is a unique number, expressed in hexidecimal, that is used within dCache. To look up a file's ID, one must ask the PnfsManager. Navigate to this cell, if you are not already there. Within PnfsManager use the pnfsidof command to determin the files pnfs ID, then use the cacheinfoof command to determin on which pool(s) the file is available. Please note that the pnfs ID and pool location may be different.

[dcache-node.fzk.de] (local) admin > cd PnfsManager

Look up pnfs ID of file
[dcache-node.fzk.de] (PnfsManager) admin > pnfsidof /pnfs/fzk.de/data/gks/testbin-1
0000B83CD4DCF12C4927B3FB5ABED434D4E7

Look up on which pools this pnfs is available
[dcache-node.fzk.de] (PnfsManager) admin > cacheinfoof 0000B83CD4DCF12C4927B3FB5ABED434D4E7
 dcache-node_1

To confirm this, navigate to the pool and use the rep ls and pf commands to list all replicas on that pool and look at the metadata the pool holds about the file.

[dcache-node.fzk.de] (PnfsManager) admin > ..
[dcache-node.fzk.de] (local) admin > cd dcache-node_1

Look up the replica information about this file
[dcache-node.fzk.de] (dcache-node_1) admin > rep ls 0000B83CD4DCF12C4927B3FB5ABED434D4E7
0000B83CD4DCF12C4927B3FB5ABED434D4E7 <-P---------(0)[0]> 1048576 si={sql:chimera}

Verify the filename
[dcache-node.fzk.de] (dcache-node_1) admin > pf 0000BBED263118DE4A518E55AFBA08BC8478
/pnfs/fzk.de/data/gks/testbin-1