<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3ADominik.epple%2FNFS4</id>
	<title>User:Dominik.epple/NFS4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3ADominik.epple%2FNFS4"/>
	<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=User:Dominik.epple/NFS4&amp;action=history"/>
	<updated>2026-11-16T09:55:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=User:Dominik.epple/NFS4&amp;diff=23838&amp;oldid=prev</id>
		<title>Dominik.epple: Created page with &quot;&lt;div class=&quot;title&quot;&gt;NFS4&lt;/div&gt;  __TOC__  = Overview =  While for production we nowadays nearly exclusively see Object Storage based setup, for POC setups it is still convenient...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=User:Dominik.epple/NFS4&amp;diff=23838&amp;oldid=prev"/>
		<updated>2018-02-16T11:49:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;div class=&amp;quot;title&amp;quot;&amp;gt;NFS4&amp;lt;/div&amp;gt;  __TOC__  = Overview =  While for production we nowadays nearly exclusively see Object Storage based setup, for POC setups it is still convenient...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;title&amp;quot;&amp;gt;NFS4&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
While for production we nowadays nearly exclusively see Object Storage based setup, for POC setups it is still convenient to use NFS as filestore. Smaller footprint, less efforts, functional and fast enough for some functional testing.&lt;br /&gt;
&lt;br /&gt;
However one disadvantage is that all NFS client machines need to have synchronized system userIDs in order for access to work, which is often not accounted for during initial setup and cumbersome to fix later.&lt;br /&gt;
&lt;br /&gt;
One possible approach is to use NFS4 with Kerberos as in that flavor access is not granted based on numerical userIDs, but rather symbolic usernames.&lt;br /&gt;
&lt;br /&gt;
The drawback of this solution is a slightly more complicated setup, but, once figured out how it works, it is surprisingly robust in first tests.&lt;br /&gt;
&lt;br /&gt;
== KDC setup ==&lt;br /&gt;
&lt;br /&gt;
Standard stuff, no special things.&lt;br /&gt;
&lt;br /&gt;
Initialize the stash.&lt;br /&gt;
&lt;br /&gt;
Create host keys for every host with host/hostname.fqdn and nfs/hostname.fqdn. Export to a keytab and transfer to NFS client as /etc/krb5.keytab.&lt;br /&gt;
&lt;br /&gt;
Create a kerberos principal for the open-xchange user. Probably a high (unlimited) ticket lifetime will be helpful.&lt;br /&gt;
&lt;br /&gt;
== NFS Server Setup ==&lt;br /&gt;
&lt;br /&gt;
Decide for a directory to export. In a standard setup with exported user homedirectories you can use the filestore/ subdirectory of the open-xchange users home directory.&lt;br /&gt;
&lt;br /&gt;
Standard linux practice is to bindmount that under some /export toplevel export point.&lt;br /&gt;
&lt;br /&gt;
/etc/exports file:&lt;br /&gt;
&lt;br /&gt;
 /export kclient.lan(rw,fsid=0,sec=krb5i)&lt;br /&gt;
&lt;br /&gt;
CentOS 7:&lt;br /&gt;
&lt;br /&gt;
 yum install nfs-utils&lt;br /&gt;
&lt;br /&gt;
 systemctl restart nfs&lt;br /&gt;
 systemctl enable nfs&lt;br /&gt;
&lt;br /&gt;
 systemctl restart nfs-secure&lt;br /&gt;
 systemctl enable nfs-secure&lt;br /&gt;
&lt;br /&gt;
== NFS Client Setup ==&lt;br /&gt;
&lt;br /&gt;
CentOS7:&lt;br /&gt;
&lt;br /&gt;
 systemctl restart nfs-secure&lt;br /&gt;
 systemctl enable nfs-secure&lt;br /&gt;
&lt;br /&gt;
 mount -t nfs4 -o sec=krb5i knfs:/ /mnt&lt;br /&gt;
&lt;br /&gt;
== Service Setup ==&lt;br /&gt;
&lt;br /&gt;
For accessing data, the OX service needs a kerberos ticket.&lt;br /&gt;
&lt;br /&gt;
 # su - open-xchange&lt;br /&gt;
 $ kinit&lt;br /&gt;
&lt;br /&gt;
That is somewhat clumsy (TODO: find out how to automate that).&lt;/div&gt;</summary>
		<author><name>Dominik.epple</name></author>
	</entry>
</feed>