Difference between revisions of "HowTo: Exporting a new dCache NFS directory"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
* 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 | + | * Once logged in the admin console: |
− | cd NFS- | + | :* Move to a NFS door with the command '''cd'''. In example, for dcdoor05.pic.es: |
− | * Reload the configuration by running: | + | cd NFS-dcdoor05 |
+ | :* Reload the configuration by running: | ||
exports reload | exports reload | ||
+ | :* Repeat the process for all doors where changes need to be applied. |
Revision as of 10:18, 7 August 2015
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 to see how to download and propagate 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
- Access to the dCache Admin Console
ssh -2 -x -o StrictHostKeyChecking=no -l admin -c blowfish -p 22224 dccore.pic.es
- Once logged in the admin console:
- Move to a NFS door with the command cd. In example, for dcdoor05.pic.es:
cd NFS-dcdoor05
- Reload the configuration by running:
exports reload
- Repeat the process for all doors where changes need to be applied.