Tuesday, February 19, 2008

DPM and ATLAS Space Tokens

So, here's the definitive guide to enabling space tokens for ATLAS:
  1. Assign the token to atlas/Role=production using the dpm-reservespace command. (Example here.)
  2. Create the directory where DDM will put the files, which is the normal path for ATLAS, plus the name of the spacetoken in lower case. e.g.

    • dpns-mkdir /dpm/gla.scotgrid.ac.uk/home/atlas/atlasdatadisk

  3. Now change group ownership of this directory to atlas/Role=production, chmod it to 775 and finally add two ACLs which will mean the entire tree will be writable by production roles:


    • dpns-chgrp atlas/Role=production /dpm/gla.scotgrid.ac.uk/home/atlas/atlasdatadisk

    • dpns-chmod 775 /dpm/gla.scotgrid.ac.uk/home/atlas/atlasdatadisk

    • dpns-setacl -m d:g:atlas/Role=production:7,m:7 /dpm/gla.scotgrid.ac.uk/home/atlas/atlasdatadisk

    • dpns-setacl -m g:atlas/Role=production:7,m:7 /dpm/gla.scotgrid.ac.uk/home/atlas/atlasdatadisk


  4. Enable the space token publisher (this only needs to be done once - subsequent tokens are picked up automatically). Instructions here.

No comments: