Difference between revisions of "Cool Solution - NFS with UCS"

From Univention Wiki

Jump to: navigation, search
Line 1: Line 1:
The article needs a review after the Release and should focus on client-configuration for UCS servers and UCC desktops.
+
TITLE=Network File System (NFS) in Version 4 for Univention Products
{{Version|UCS=3.2}}
+
HEADER={{Cool Solutions Disclaimer|Repository={yes,no}|UCS=3.2|UCC=1.0}}
{{Version|UCC=1.0}}
 
  
This article describes the server/client configuration of the Network File System (NFS). Since UCS 3.2 NFSv4 is activated by default (see [http://docs.univention.de/release-notes-3.2-de.html#idp7624288 UCS 3.2 Release Notes]). To disable NFSv4 support set the Univention Configuration Registry variable nfs/nfsd/nfs4 false. To activate NFSv4 support in UCS < 3.2 go to [http://wiki.univention.de/index.php?title=NFSv4_with_UCS corresponding wiki article]
+
= Introduction =
 +
This article describes how to configure the Network File System (NFS) in Version 4 for Univention Corporate Clients (UCC) and Univention Corporate Servers (UCS).
 +
Since UCS 3.2 NFSv4 is activated by default<sup>1.</sup>. UCS Versions < 3.2 use NFSv3 for shares so please have a look on [[NFSv4_with_UCS|NFSv4 for Univention Corporate Server < 3.2]].
  
= Create a share =
+
= NFS on UCS =
To create a share use the [http://docs.univention.de/manual-3.2.html#shares::management UCS documentation].
+
== Shares on UCS ==
 +
At least for medium environments it is recommended to set up a seperate file server (e.g. DC Slave). On this server shares can created as described in the [http://docs.univention.de/manual-3.2.html#shares::management UCS documentation].
  
= Server configuration =
+
== Configuration in the Univention Management Console ==
<ref>Release Notes Univention Corporate Server 3.2 http://docs.univention.de/release-notes-3.2-en.html#idp3973216</ref>
+
Beside several different Options in the TAB 'NFS' which are described in the [http://docs.univention.de/manual-3.2.html#idp13512080 UCS documentation] it is possible to set following Univention Configuration Registry variables:
 +
* nfs/autostart - This variable configures the start mode of the NFS service. If set to 'no' or 'disabled', the service cannot be started. If the variable is set to 'manually', the service isn't started during system boot, but can be enabled manually at a later point.
 +
* nfs/common/gssd - This variable defines if the gssd daemon should be started. Evaluated values are 'yes', 'no' or <undefined> (default=yes).
 +
* nfs/common/idmapd - This variable defines if the idmap daemon should be started. Evaluated values are 'yes', 'no' or <undefined> (default=yes).
 +
* nfs/create/homesharepath - If this option is activated, the home directory configured for a user in the attributes 'Home share' and 'Home share path' is automatically created through a Univention Directory Listener module.
 +
* nfs/nfsd/nfs4 - This option activates the NFSv4 support of the NFS server. In addition the IDMAPD process must be configured usually.
 +
* nfs/ports - If this variable is set to 'static', fixed ports are used for the NFS services: 32767 for RPC mounts, 32765/32766 for statd and 32769 for the quota service. Otherwise the ports are assigned dynamically.
 +
* ucc/pxe/nfsroot - Sets the PXE-Rollout-Server in the domain.
  
= Client configuration =
+
 
{{reflist}}
+
= NFS for UCC =
 +
Prerequisite:
 +
Install
 +
apt-get install rpcbind nfs-common
 +
mount -t nfs4 10.200.22.3:/srv/NFS-Test /mnt
 +
 
 +
== Static mount ==
 +
Permanent in /etc/fstab:
 +
fileserver.host.com:/srv/NFS-Test /mnt/NFS-Test nfs4 auto 0 0
 +
 
 +
== Auto mount ==
 +
 
 +
== Encrypted Mount ==
 +
 
 +
== If the nfs/common/gssd is set ==
 +
 
 +
 
 +
==
 +
= References =
 +
1. Release Notes Univention Corporate Server 3.2: http://docs.univention.de/release-notes-3.2-en.html#idp3973216
 +
2. https://help.ubuntu.com/community/SettingUpNFSHowTo

Revision as of 13:23, 2 May 2014

TITLE=Network File System (NFS) in Version 4 for Univention Products HEADER=

Produktlogo UCS Version 3.2
Produktlogo UCC Version 1.0

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.


Introduction

This article describes how to configure the Network File System (NFS) in Version 4 for Univention Corporate Clients (UCC) and Univention Corporate Servers (UCS). Since UCS 3.2 NFSv4 is activated by default1.. UCS Versions < 3.2 use NFSv3 for shares so please have a look on NFSv4 for Univention Corporate Server < 3.2.

NFS on UCS

Shares on UCS

At least for medium environments it is recommended to set up a seperate file server (e.g. DC Slave). On this server shares can created as described in the UCS documentation.

Configuration in the Univention Management Console

Beside several different Options in the TAB 'NFS' which are described in the UCS documentation it is possible to set following Univention Configuration Registry variables:

  • nfs/autostart - This variable configures the start mode of the NFS service. If set to 'no' or 'disabled', the service cannot be started. If the variable is set to 'manually', the service isn't started during system boot, but can be enabled manually at a later point.
  • nfs/common/gssd - This variable defines if the gssd daemon should be started. Evaluated values are 'yes', 'no' or <undefined> (default=yes).
  • nfs/common/idmapd - This variable defines if the idmap daemon should be started. Evaluated values are 'yes', 'no' or <undefined> (default=yes).
  • nfs/create/homesharepath - If this option is activated, the home directory configured for a user in the attributes 'Home share' and 'Home share path' is automatically created through a Univention Directory Listener module.
  • nfs/nfsd/nfs4 - This option activates the NFSv4 support of the NFS server. In addition the IDMAPD process must be configured usually.
  • nfs/ports - If this variable is set to 'static', fixed ports are used for the NFS services: 32767 for RPC mounts, 32765/32766 for statd and 32769 for the quota service. Otherwise the ports are assigned dynamically.
  • ucc/pxe/nfsroot - Sets the PXE-Rollout-Server in the domain.


NFS for UCC

Prerequisite: Install apt-get install rpcbind nfs-common mount -t nfs4 10.200.22.3:/srv/NFS-Test /mnt

Static mount

Permanent in /etc/fstab: fileserver.host.com:/srv/NFS-Test /mnt/NFS-Test nfs4 auto 0 0

Auto mount

Encrypted Mount

If the nfs/common/gssd is set

==

References

1. Release Notes Univention Corporate Server 3.2: http://docs.univention.de/release-notes-3.2-en.html#idp3973216 2. https://help.ubuntu.com/community/SettingUpNFSHowTo

Personal tools