HowTo: Exporting a new dCache NFS directory

From Public PIC Wiki
Revision as of 10:16, 7 August 2015 by Mcaubet (talk | contribs)
Jump to navigation Jump to search

Working with GIT + Puppet

  • In order to change exports for the dCache NFS service you need to changes in Puppet.

Add a new export

  • Add a new export by editing the Puppet class dcache::configuration::door::nfsv41
  • Modify the corresponding Puppet Resource common::nfs::exports or create a new Resource of this if needed. In example:
diff --git a/manifests/configuration/door/nfsv41.pp b/manifests/configuration/door/nfsv41.pp
index 373ae5d..ddbbbe1 100644
--- a/manifests/configuration/door/nfsv41.pp
+++ b/manifests/configuration/door/nfsv41.pp
@@ -158,7 +158,7 @@ class dcache::configuration::door::nfsv41 ( $instance="${dcache::instance}" ) {
                       common::nfs::exports { 'dteam':
                               v4_export_root => '/pnfs/pic.es/data',
                               ensure         => 'present',
-                               clients        => "ui??.${domain}(no_dcap,ro) td???.${domain}(no_dcap,ro)";
+                               clients        => "ui??.${domain}(no_dcap,ro) td???.${domain}(no_dcap,ro) at3??.pic.es(no_dcap,ro)";
                       }
                       common::nfs::exports { 'IFAEAtlasTier2':
                               v4_export_root => '/pnfs/pic.es',
  • Commit & push changes

Run puppet in the NFS Doors

  • In example:
puppet agent --test --server puppet03.pic.es --logdest /var/log/puppet/puppet.log --environment=production

Reload dCache configuration

ssh -2 -x -o StrictHostKeyChecking=no -l admin -c blowfish -p 22224 dccore.pic.es
  • Move to every NFS door where changes should be applied:
cd NFS-dcdoor[0-9][0-9]
  • Reload the configuration by running:
exports reload