Importing the NFS Configuration
Before creating a Cloud Location, the configuration details for the NFS server or servers need to be imported into Anzo. This is a one-time procedure; the configuration that you import is used for all Cloud Locations. Anzo will automatically mount the NFS server to any nodes that are provisioned when applications are deployed.
For information about the NFS requirements, see NFS Guidelines.
Create the NFS Configuration File
The NFS configuration details need to be specified in TriG format. The TriG file is imported to Anzo using the Anzo Admin CLI. Use the following contents as a template to create a .trig file on the Anzo server. If you have multiple NFS servers for different regions, you can configure each server in the same configuration file. The objects to supply values for are described below:
@prefix : <http://cambridgesemantics.com/ontologies/cloud/deployment/config#> . @prefix nfsmountconfig: <http://cambridgesemantics.com/ontologies/CloudDeployment/NFSMountConfiguration/> . @prefix deployment: <http://cambridgesemantics.com/ontologies/CloudDeployment/> . @prefix anzo: <http://openanzo.org/ontologies/2008/07/Anzo#> . @prefix int: <http://openanzo.org/system/internal/> . @prefix role: <http://openanzo.org/Role/> . @prefix reg: <http://cambridgesemantics.com/registries/> . #Mode:REPLACE :nfsMountConfig1 { :nfsMountConfig1 a deployment:NFSMountConfiguration, deployment:MountConfiguration; nfsmountconfig:NFSfqdn "NFSfqdn" ; nfsmountconfig:NFSMountDir "NFSMountDir" ; nfsmountconfig:NFSMountOptions "NFSMountOptions" ; nfsmountconfig:NFSSharedDir "NFSSharedDir" . } #Mode:ADD reg:CloudLocation { reg:CloudLocation anzo:defaultNamedGraph :nfsMountConfig1 } # :nfsMountConfig2 # { # :nfsMountConfig2 a deployment:NFSMountConfiguration, deployment:MountConfiguration; # nfsmountconfig:NFSfqdn "NFSfqdn2" ; # nfsmountconfig:NFSMountDir "NFSMountDir2" ; # nfsmountconfig:NFSMountOptions "NFSMountOptions2" ; # nfsmountconfig:NFSSharedDir "NFSSharedDir2" . # } # Mode:ADD # reg:CloudLocation { # reg:CloudLocation anzo:defaultNamedGraph :nfsMountConfig2 # }
For example:
# nfs-config.trig @prefix : <http://cambridgesemantics.com/ontologies/cloud/deployment/config#> . @prefix nfsmountconfig: <http://cambridgesemantics.com/ontologies/CloudDeployment/NFSMountConfiguration/> . @prefix deployment: <http://cambridgesemantics.com/ontologies/CloudDeployment/> . @prefix anzo: <http://openanzo.org/ontologies/2008/07/Anzo#> . @prefix int: <http://openanzo.org/system/internal/> . @prefix role: <http://openanzo.org/Role/> . #Mode:REPLACE :nfsMountConfig1 { :nfsMountConfig1 a deployment:NFSMountConfiguration, deployment:MountConfiguration; nfsmountconfig:isTransferFiles false ; nfsmountconfig:NFSfqdn "10.104.0.6" ; nfsmountconfig:NFSMountDir "/private/var/nfsshare_dev" ; nfsmountconfig:NFSMountOptions "hard,nfsvers=4.1" ; nfsmountconfig:NFSSharedDir "/global/nfs/data" . } #Mode:ADD reg:CloudLocation { reg:CloudLocation anzo:defaultNamedGraph :nfsMountConfig1 }
Import the File
Once the NFS configuration file is created, run the following command to import the file to Anzo with the Anzo Admin CLI:
<install_path>/Client/anzo <file_path>/<filename>.trig -u sysadmin --useModes
For example:
/opt/Anzo/Client/anzo import nfs-config.trig -u sysadmin --useModes
When the NFS configuration details have been imported to Anzo, see Creating a Cloud Location for next steps.