You are here

NFS advanced Spring overrides

The NFS server beans are declared in the file-servers-context.xml file. Using the subsystem extension classpath mechanism, site specific customization of these default values can be placed in a Spring bean file in <extension>\subsystems\fileServers\default\default\custom-file-servers-context.xml (note that the default\default part of the path is intentional).

The following properties can be overridden on the nfsServerConfig bean.
portMapperEnabled
Enables the built-in portmapper service. This would usually be enabled on Windows where there is no default portmapper service. Under Linux/Unix operating systems, the built-in portmapper service can be used, which also saves having to run the SkyVault server using the root account.
portMapperPort
The port number to run the portmapper service on. The default port is 111.
mountServerPort
The port number to run the mountserver service on. The default is to allocate an available non-privileged port.
nfsServerPort
The port number to run main NFS server service on. The default is to allocate the default NFS port: 2049. This will likely clash with a running native NFS server.
  1. The debugFlags property enables debug output levels for NFS server debugging. The value should be in the form of a comma-separated list of the flag names in the following table.
    Flag Description
    RxData Request data details
    TxData Response data details
    DumpData Hex dump request/response data
    Search Folder searches
    Info File information requests
    File File open/close
    FileIO File read/write
    Error Errors
    Directory Directory commands
    Timing Time packet processing
    Session Session creation/deletion
  2. The log4j.properties file must also have NFS protocol debug output enabled using:

    log4j.logger.org.alfresco.nfs.server=debug
  3. The following logging level must also be enabled to log debug output from the core file server code:

    log4j.logger.org.alfresco.fileserver=debug
  4. There are also the following log4j output options for the NFS/mount/portmapper services:

    log4j.logger.org.alfresco.nfs.protocol=debug
  5. Output server level debug information from the NFS, mount and portmapper services.

    log4j.logger.org.alfresco.nfs.protocol.auth=debug