FAI with NFS v4 on Debian Wheezy

Toomas Tamm tt-fai at kky.ttu.ee
Tue May 7 09:23:58 CEST 2013


Hello!

This is not a FAI problem, but a more general NFS4 problem. NFSv4 needs
some configuration, and the defaults differ between squeeze and wheezy.
I have done the following:

1) ensure that idmapd is running on the server.
In /etc/default/nfs-common you should have
NEED_IDMAPD=yes
(restard nfs-common manually or reboot to have this take effect)

2) ensure that all idmapd-s have the same value for "Domain". Squeeze
defaults to a portion of your fqdn, while wheezy defaults to
"localdomain". This is set in /etc/idmapd.conf and better make it
identical across your entire network.

A symptom of misconfiguration of (2) are messages like
nss_getpwnam: name 'root at localdomain' does not map into domain 'your.fqdn.com'
in dameon.log.

Other than that, NFSv4 runs out of the box with the 3.2 series kernels.
No need to set up complicated loopback mounts as explained in several
howto's in the net. Apparently that is a thing of the past.

Hoping this helps,

Toomas

On Mon, 2013-05-06 at 14:39 -0700, Bob Apodaca wrote:
> I have set-up an FAI server and have a client I am using to refine my 
> files and scripts.  The issue I am having is file and group ownership:
> 
> ls -l /etc/cups/cupsd.conf
> 
> -rw-r--r-- 1 4294967294 4294967294 4670 Mar 14 13:51 cupsd.conf
> 
> The "nfsstat -m" shows I am using NFS v4 on the client for the 
> /var/lib/fai/config directory.  I have nfs-common installed and 
> /etc/idmapd.conf is configured on both the client and server.
> 
> More confusing, when I do this command on the client:
> 
> 
> # ls -l /var/lib/fai/config/files/
> total 24
> drwxr-xr-x 22 root       root       4096 May  6 09:59 etc
> drwxr-xr-x  3 4294967294 4294967294 4096 Nov  7  2006 home
> drwx------  3 4294967294 4294967294 4096 Apr 23 12:15 lib
> drwxr-xr-x  5 root       root       4096 Mar 30  2011 root
> drwxr-xr-x  3 4294967294 4294967294 4096 Feb  4  2011 usr
> drwxr-xr-x  3 4294967294 4294967294 4096 May 22  2007 var
> 
> on the server all of these are owned by "root:root".
> 
> I need some suggestions. Thank you.


More information about the linux-fai mailing list