Track Transfers to dCache

Just some quick notes on tracking specific transfers to dCache.

  • First, make sure the SRM logging is verbose enough (going to catalina.out)

At this point there should be lots of details being sent to /opt/d-cache/libexec/apache-tomcat-5.5.20/logs/catalina.out.

You will need to know the file name of the file being transferred, e.g., /pnfs/

Just grep for this in the catalina.out to see the details about the transfer.

From the dCache admin interface you can cd to 'PnfsManager' and do:

  • 'pnfsidof /pnfs/' (or whatever name your file is)

This will get you the pnfsid of the destination file. Our dCache is setup to allow passive FTP transfers which means the destination pool participates in the transfer. The 'grep' of the catalina.out should should the GridFTP door that is initially contacted for the transfer, but to find out which node is actually doing the transfer you need to locate the pnfsid. There are two ways to do this:

  • Try ssh commands (via key access) to the set of pool nodes doing
    ls /dcache*/pool/data/<pnfsid>
  • Examine via lsof on each pool node:
    lsof | grep <pnfsid>

lsof | grep 000073E5A0045DD446BCB80A307AB8EB8A56
java       384612      root  153u      REG               8,32 2995682633  268444003 /dcache1/pool/data/000073E5A0045DD446BCB80A307AB8EB8A56

This will give you the PID of the process doing the transfer. You can search netstat to see what this process is doing:

[root@umfs12 ~]# netstat -apn | grep 384612
tcp        0      0     *                   LISTEN      384612/java
tcp        0      0     *                   LISTEN      384612/java
tcp        0      0     *                   LISTEN      384612/java
tcp        0      0         ESTABLISHED 384612/java
tcp        0 401096         ESTABLISHED 384612/java
tcp        0      0         ESTABLISHED 384612/java
tcp        0      0         ESTABLISHED 384612/java

You could then use tcpdump to get the details of the ongoing transfer:

  • 'tcpdump -i eth2 host and src port 35971 and dst port 22169' (This picks a particular transfer)

You can save it to a file via '-w filename'.

-- ShawnMcKee - 12 Mar 2010
Topic revision: r1 - 12 Mar 2010, ShawnMcKee
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback