Adding an additional VO via dCacheConfigure.sh

Log into the dCache node and edit the site-info.def file. Add the additional VO dech to the VOS variable.

VOS="dteam gks dech"

Add the extra lines to /root/users.conf. This information is used to build the user information for the dech VO. dech.

608001:dech001:47000:dech:dech::
608002:dech002:47000:dech:dech::
608003:dech003:47000:dech:dech::

You must allow dCacheConfigure.sh to update dCache configuration. To do this, alter the value of RESET_DCACHE_CONFIGURATION variable. Be sure to leave the remaining RESET_ options at no.

RESET_DCACHE_CONFIGURATION=yes
RESET_DCACHE_PNFS=no
RESET_DCACHE_RDBMS=no

You will also need to add some extra configuration for the dech VO. Add the following information to the end of the site-info.def file.

# ======== DECH ======
VO_DECH_SW_DIR=...
VO_DECH_DEFAULT_SE=...
VO_DECH_STORAGE_DIR=...
VO_DECH_VOMS_SERVERS="vomss://glite-io.scai.fraunhofer.de:8443/voms/dech?/dech/"
VO_DECH_VOMSES="dech glite-io.scai.fraunhofer.de 15025 /O=GermanGrid/OU=Fraunhofer SCAI/CN=host/glite-io.scai.fraunhofer.de dech"
VO_DECH_VOMS_CA_DN="'/C=DE/O=GermanGrid/CN=GridKa-CA'"

Rerun the dCacheConfigure.sh command and verify that a new directory for the VO has been created:

[root@dcache-node] # /opt/d-cache/bin/dCacheConfigure.sh -c config_sedcache -s /root/site-info.def
(There are many lines of output)
[root@dcache-node] # ls -l /pnfs/fzk.de/data
total 2
drwxrwxr-x  2 608001 47000 512 Aug 29 16:39 dech
drwxrwxr-x  2  18118  2688 512 Aug 29 15:44 dteam
drwxrwxr-x  3 609001 48000 512 Aug 29 16:05 gks

Be sure to reset the RESET_ variables back to the safe no values in site-info.def

RESET_DCACHE_CONFIGURATION=no
RESET_DCACHE_PNFS=no
RESET_DCACHE_RDBMS=no

From your UI, attempt to copy a file into different locations as different VOs. With the default configuration, this should only succeed when copying data into a directory named the same as your VO.

Create a proxy certificate with gks membership
[user@ui-node] $ voms-proxy-init --voms gks
Enter GRID pass phrase:
Your identity: Your DN is here
Creating proxy ............................................. Done
Your proxy is valid until Tue Aug 26 04:08:53 2008

Attempt to copy a file as a member of gks into storage for VO gks
[user@ui-node] $ dccp /bin/bash gsidcap://dcache-node:22128/pnfs/fzk.de/data/gks/testbin-as-gks
The following two lines are expected and can be ignored
Command failed!
Server error message for [1]: "no such file or directory /pnfs/fzk.de/data/gks/testbin-as-gks" (errno 10001).
616248 bytes in 0 seconds

Attempt to copy a file as a member of gks into storage for VO dech
[user@ui-node] $ dccp /bin/bash gsidcap://dcache-node:22128/pnfs/fzk.de/data/dech/testbin-as-gks
Command failed!
Server error message for [1]: "no such file or directory /pnfs/fzk.de/data/dech/testbin-as-gks" (errno 10001).
Command failed!
Server error message for [2]: "Permission denied (Parent)" (errno 2).
Failed open file in the dCache.
Can't open destination file : "Permission denied (Parent)"
System error: Input/output error

Destroy your gks proxy
[user@ui-node] $ voms-proxy-destroy

Create a proxy certificate with dech membership
[user@ui-node] $ voms-proxy-init --voms dech
Enter GRID pass phrase:
Your identity: Your DN is here
Creating proxy ............................................. Done
Your proxy is valid until Tue Aug 26 04:08:53 2008

Attempt to copy a file as a member of dech into storage for VO gks
[user@ui-node] $ dccp /bin/bash gsidcap://dcache-node:22128/pnfs/fzk.de/data/gks/testbin-as-dech
Command failed!
Server error message for [1]: "no such file or directory /pnfs/fzk.de/data/gks/testbin-as-dech" (errno 10001).
Command failed!
Server error message for [2]: "Permission denied (Parent)" (errno 2).
Failed open file in the dCache.
Can't open destination file : "Permission denied (Parent)"
System error: Input/output error

Attempt to copy a file as a member of dech into storage for VO dech
[user@ui-node] $ dccp /bin/bash gsidcap://dcache-node:22128/pnfs/fzk.de/data/dech/testbin-as-dech
Command failed!
Server error message for [1]: "no such file or directory /pnfs/fzk.de/data/dech/testbin-as-dech" (errno 10001).
616248 bytes in 0 seconds

When finished, delete the files that have successfully copied: /pnfs/fzk.de/data/gks/testbin-as-gks and /pnfs/fzk.de/data/dech/testbin-as-dech.

[root@dcache-node] # rm /pnfs/fzk.de/data/gks/testbin-as-gks
[root@dcache-node] # rm /pnfs/fzk.de/data/dech/testbin-as-dech