release notes | Book: 1.9.5, 1.9.12 (opt, FHS), 2.0 (opt,FHS) 2.1 (opt, FHS) | Wiki | Q&A | Client API | dccp black_bg Web: Multi-page, Single page | PDF: A4-size, Letter-size | eBook: epub black_bg

Files

In this section we will have a look at the configuration and log files of dCache.

The dCache software is installed in various directories according to the Filesystem Hierarchy Standard. All configuration files can be found in /etc/dcache.

In the previous section we have already seen how a domain is restarted:

[root] # dcache restart <domainName>

Log files of domains are by default stored in /var/log/dcache/<domainName>.log. We strongly encourage to configure logrotate to rotate the dCache log files to avoid filling up the log file system. This can typically be achieved by creating the file /etc/logrotate.d/dcache with the following content:

/var/log/dcache/*.log {
    compress
    rotate 100
    missingok
    copytruncate
}

The files config/<domainName>Setup contain configuration parameters for the domain. These files are typically symbolic links to config/dCacheSetup. This is the primary configuration file of dCache.

The only files which are different for each domain are config/<domainName>.batch. They describe which cells are started in the domains. Normally, changes in these files should not be necessary. However, if you need to change something, consider the following:

Since the standard config/<domainName>.batch files will be overwritten when updating to a newer version of dCache (e.g. with RPM), it is a good idea to modify only private copies of them. When choosing a name like config/<newDomainName>.batch you give the domain the name <newDomainName>. The necessary links can be created with

[root] # cd /opt/d-cache/config/
[root] # ../jobs/initPackage.sh

Then the old domain can be stopped and the new one started:

[root] # /opt/d-cache/bin/dache stop <domainName>
[root] # /opt/d-cache/bin/dcache start <newDomainName>

More details about domains and cells can be found in Chapter 6, The Cell Package.

The most central component of a dCache instance is the PoolManager cell. It reads additional configuration information from the file config/PoolManager.conf at start-up. However, in contrast to the config/<domainName>Setup files, it is not necessary to restart the domain when changing the file. We will see an example of this below.

Similar to config/PoolManager.conf, pools read their configuration from <poolDir>/pool/setup at startup.