cancel
Showing results for 
Search instead for 
Did you mean: 

NFS Server and Client Config

mattiashem
Champ in-the-making
Champ in-the-making
Hi

So i having problem setting upp the NFS server in alfresco.
I have tired to follow the links in the wiki but with out any sucess.

So i have in my config alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-server.xml

<config evaluator="string-compare" condition="NFS Server">
          <serverEnable enabled="true"/>
                <rpcAuthenticator>
                        <userMappings>
                                <user name="admin" uid="0" gid="0"/>
                        </userMappings>
                </rpcAuthenticator>
</config>


alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers.properties
### NFS Server Configuration ###
nfs.enabled=true
# Mount/NFS server ports, 0 will allocate next available port
nfs.mountServerPort=0
nfs.nfsServerPort=2049

# RPC registration port, 0 will allocate next available port
#  Some portmapper/rpcbind services require a privileged port to be used
nfs.rpcRegisterPort=0

# To disable NFS and mount server registering with a portmapper set nfs.portMapperPort to -1
nfs.portMapperPort=111
# Enable the builtin portmapper service
nfs.portMapperEnabled=true

# NFS session debug flags (also enable org.alfresco.fileserver=debug logging level)
# Comma delimeted list of levels :-
#        RXDATA, TXDATA, DUMPDATA, SEARCH, INFO, FILE, FILEIO, ERROR, TIMING, DIRECTORY, SESSION
nfs.sessionDebug=

nfs.mountServerDebug=true


But non of them is aktivating my nfs share.
When i trie to mount using the clinet i only get


root@ebox:/media# sudo mount -t nfs 10.0.2.2:/alfresco /media/alfresco/
mount.nfs: internal error


ore

root@ebox:/media# sudo mount -t nfs 10.0.2.2:/alfresco /media/alfresco/
mount.nfs: mount to NFS server 'rpcbind' failed: RPC Error: Program not registered
mount.nfs: internal error

Alfreco in installed on a ubuntu 10.04.


Ragards Mattias
1 REPLY 1

craig_michael_n
Champ on-the-rise
Champ on-the-rise
Are you trying to set this NFS mount on your local box or are you trying to set it up on a different server?
I personally recommend having your server admin just set up an NFS server and mount it on your alfresco box.
I have a NFS Server mounted on my alfresco server and these are the steps i took to set it up.
1. You first need to set up an NFS server.
2. Mount it through a location. In my case I mounted it to /data/alfresco
3. Configure your alfresco-global.properties to point to /data

Here is a look at my alfresco-global.properties

dir.root=/opt/alfresco/alf_data
dir.contentstore=/data/alfresco/alf_data/contentstore
dir.contentstore.deleted=/data/alfresco/alf_data/contentstore.deleted

This is all I did to get an NFS file server up and running on my machine.

Does this answer your question?