Difference between revisions of "HowTo: Exporting a new dCache NFS directory"

From Public PIC Wiki
Jump to navigation Jump to search
(Created page with "= Working with GIT + Puppet = * In order to change '''exports''' for the dCache NFS service you need to changes in Puppet. :* Follow [[HowTo: dCache Management - GIT + Puppet]...")
 
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:
 
= Reload dCache configuration =
 
= Reload dCache configuration =
 
* Access to the '''[[HowTo: Accessing to the dCache Admin Console | dCache Admin Console]]'''
 
* Access to the '''[[HowTo: Accessing to the dCache Admin Console | dCache Admin Console]]'''
  ssh -2 -x -o StrictHostKeyChecking=no -l admin -c blowfish -p 22224 dccore.pic.es
+
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:
+
* Once logged in the admin console:
cd NFS-dcdoor[0-9][0-9]
+
:# Move to a NFS door with the command '''cd'''. In example, for dcdoor05.pic.es:
* Reload the configuration by running:
+
:#: cd NFS-dcdoor05
exports reload
+
:# Reload the configuration by running:
 +
:#: exports reload
 +
:# Repeat ''1.'' and ''2.'' for all doors where changes need to be applied.

Latest revision as of 10:19, 7 August 2015

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
  • Once logged in the admin console:
  1. Move to a NFS door with the command cd. In example, for dcdoor05.pic.es:
    cd NFS-dcdoor05
  2. Reload the configuration by running:
    exports reload
  3. Repeat 1. and 2. for all doors where changes need to be applied.