Enabling space management

By default, dCache does not have support for space management enabled. Without this support, dCache is unable to create space reservations and manage storage accordingly.

To enable space management the srmSpaceManagementEnabled option in dCacheSetup must be set to yes. Ensure that the srmImplicitSpaceManagerEnabled option is set to no—more on this option in a moment. Also ensure that SpaceManagerLinkGroupAuthorizationFileName is set to the standard value /opt/d-cache/etc/spacemanager.cfg. The following lists a fragment from dCacheSetup with these options set.

# srmSpaceManagerEnabled=no
srmSpaceManagerEnabled=yes
# srmImplicitSpaceManagerEnabled=yes
srmImplicitSpaceManagerEnabled=no
SpaceManagerLinkGroupAuthorizationFileName=/opt/d-cache/etc/spacemanager.cfg

Create a new file /opt/d-cache/etc/spacemanager.cfg with the following contents:

LinkGroup gks-linkGroup-Disk
/gks/Role=*

LinkGroup dech-linkGroup-Disk
/dech/Role=*

This this configures the space manager to authorise any member of VO gks for LinkGroup gks-linkGroup-Disk and any member of VO dech for LinkGroup dech-linkGroup-Disk.

It is necessary to restart both the SRM Domain and the GridFTP-Door Domain for these changes to take affect.

[root@dcache-node] # /opt/d-cache/bin/dcache restart srm-dcache-nodeDomain gridftp-dcache-nodeDomain
Stopping gridftp-dcache-nodeDomain (pid=29507) 0 Done
Using CATALINA_BASE: /opt/d-cache/libexec/apache-tomcat-5.5.20
Using CATALINA_HOME: /opt/d-cache/libexec/apache-tomcat-5.5.20
Using CATALINA_TMPDIR: /opt/d-cache/libexec/apache-tomcat-5.5.20/temp
Using JRE_HOME: /usr/java/jdk1.5.0_16
Stopping srm-dcache-node (pid=20626) 0 Done
Using CATALINA_BASE: /opt/d-cache/libexec/apache-tomcat-5.5.20
Using CATALINA_HOME: /opt/d-cache/libexec/apache-tomcat-5.5.20
Using CATALINA_TMPDIR: /opt/d-cache/libexec/apache-tomcat-5.5.20/temp
Using JRE_HOME: /usr/java/jdk1.5.0_14
Pinging srm server to wake it up, will take few seconds ...
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
VersionInfo : v2.2
backend_type:dCache

Done
Starting gridftp-dcache-nodeDomain  Done (pid=30025)