Several NFS errors on diskless clients

Beeblebrox zaphod at berentweb.com
Thu Feb 12 10:35:35 UTC 2015


I have some errors I'm unable sort on my PXE-booting diskless clients.

1. ACL for NFS-V4 confuses jailed clients:
Root for diskless clients is served from jail, which basically can only serve dhcp and tftp. Since NFS can't be jailed, it is served from host.
* It seems root cannot be mounted as V4 and is limited to V2. Thus the /etc/exports file:
{/data/amd64 -ro -network 192.168.2.0/26  # folder where jail resides
V4:   /
/usr/local  -ro -network 192.168.2.0/26
/home           -network 192.168.2.0/26}
* The client /etc folder is served from /data/amd64/conf/base/etc.cpio.gz, and it is a copy of host /etc.
* listing contents of mounted V4 folders (/home or /usr/local) shows a number rather than user ID, but client etc/*pwd.db and etc/group are all exact copies of what is on host. This causes user-ID problems for my setup.
Is there a solution to this?

2. For de-bugging, I reverted all exports to V2/3. Then, (although I probably don't need it) I do "service hald onestart" (dbus has already been started)
"nfs_getpages: error 13
vm_fault: pager read error, pid 652 (dbus-daemon-launch-)
nfs_getpages: error 13
vm_fault: pager read error, pid 664 (dbus-daemon-launch-)"
How significant is this error?

3. Client rc.conf setting is unable to start these services (not so on host):
dbus_enable="YES"
distccd_enable="YES" \ distccd_flags="-a 192.168.2.1"

Thanks and regards.

-- 
FreeBSD_amd64_11-Current_RadeonKMS


More information about the freebsd-fs mailing list