@milesbdyson, okay that’s one thing i didn’t test… sudo apt upgrade to see if ubuntu broke anything…
First boot after installing nfs-kernel-server
added to /etc/fstab:
httphost:/var/www/html/farm /mnt/farm nfs rw,nfsvers=3,rsize=8192,wsize=8192 0 0
ubuntu@arm:~$ mount | grep nfs
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
httphost:/var/www/html/farm on /mnt/farm type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.98,mountvers=3,mountport=33692,mountproto=udp,local_lock=none,addr=192.168.1.98)
● arm
State: running
Jobs: 0 queued
Failed: 0 units
Since: Wed 2018-11-21 01:27:32 UTC; 1min 12s ago
CGroup: /
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service
│ │ └─init.scope
│ │ ├─1566 /lib/systemd/systemd --user
│ │ └─1568 (sd-pam)
│ └─session-1.scope
│ ├─1233 /bin/login -p --
│ ├─1584 -bash
│ ├─2021 systemctl status
│ └─2022 /usr/bin/python3 /usr/bin/pastebinit
├─init.scope
│ └─1 /sbin/init
└─system.slice
├─nfs-idmapd.service
│ └─986 /usr/sbin/rpc.idmapd
├─nfs-mountd.service
│ └─1110 /usr/sbin/rpc.mountd --manage-gids
├─systemd-timesyncd.service
│ └─1008 /lib/systemd/systemd-timesyncd
├─nginx.service
│ ├─1157 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
│ └─1158 nginx: worker process
├─dbus.service
│ └─1034 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
├─ssh.service
│ └─1106 /usr/sbin/sshd -D
├─dnsmasq.service
│ └─1210 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service
├─avahi-daemon.service
│ ├─1058 avahi-daemon: running [arm.local]
│ └─1070 avahi-daemon: chroot helper
├─system-serial\x2dgetty.slice
│ └─serial-getty@ttyGS0.service
│ └─1998 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyGS0 vt220
├─system-getty.slice
│ └─getty@tty1.service
│ └─1240 /sbin/agetty -o -p -- \u --noclear tty1 linux
├─wpa_supplicant.service
│ └─1062 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
├─connman.service
│ └─1050 /usr/sbin/connmand -n --nodnsproxy
├─networkd-dispatcher.service
│ └─1027 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
├─rpcbind.service
│ └─999 /sbin/rpcbind -f -w
├─nfs-blkmap.service
│ └─941 /usr/sbin/blkmapd
├─systemd-logind.service
│ └─1019 /lib/systemd/systemd-logind
├─cron.service
│ └─1052 /usr/sbin/cron -f
├─systemd-udevd.service
│ └─951 /lib/systemd/systemd-udevd
├─rpc-statd.service
│ └─1223 /sbin/rpc.statd --no-notify
├─rsyslog.service
│ └─1056 /usr/sbin/rsyslogd -n
├─ofono.service
│ └─1051 /usr/sbin/ofonod -P ril --nodetach
├─systemd-journald.service
│ └─927 /lib/systemd/systemd-journald
└─haveged.service
└─1004 /usr/sbin/haveged --Foreground --verbose=1 -w 1024
Now running:
sudo apt update ; sudo apt upgrade ; sudo apt dist-upgrade
Hit:1 http://repos.rcn-ee.com/ubuntu bionic InRelease
Hit:2 http://ports.ubuntu.com bionic InRelease
Hit:3 http://ports.ubuntu.com bionic-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
120 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gpiod
The following packages will be upgraded:
apt apt-utils bb-cape-overlays bb-customizations bind9-host binutils
binutils-arm-linux-gnueabihf binutils-common bsdutils cpp cpp-7 cryptsetup
cryptsetup-bin distro-info-data dpkg dpkg-dev fdisk g++ g++-7 gcc gcc-7
gcc-7-base gcc-8-base gettext-base git git-man grub-common grub-efi-arm
grub-efi-arm-bin grub2-common initramfs-tools initramfs-tools-bin
initramfs-tools-core kmod libapparmor1 libapt-inst2.0 libapt-pkg5.0 libasan4
libatomic1 libbind9-160 libbinutils libblkid1 libcc1-0 libcilkrts5
libcryptsetup12 libcurl3-gnutls libdns-export1100 libdns1100 libdpkg-perl
libfdisk1 libgcc-7-dev libgcc1 libglib2.0-0 libglib2.0-data libgomp1
libisc-export169 libisc169 libisccc160 libisccfg160 libkmod2 libldap-2.4-2
libldap-common liblwres160 libmount1 libnginx-mod-http-geoip
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
libnginx-mod-mail libnginx-mod-stream libnss-systemd libpam-systemd
libplymouth4 libpython2.7 libpython2.7-dev libpython2.7-minimal
libpython2.7-stdlib libpython3-dev libpython3-stdlib libpython3.6
libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib libsmartcols1
libstdc++-7-dev libstdc++6 libsystemd0 libubsan0 libudev1 libuuid1
linux-firmware linux-libc-dev mount networkd-dispatcher nginx nginx-common
nginx-core openssh-client openssh-server openssh-sftp-server plymouth
plymouth-theme-ubuntu-text ppp python2.7 python2.7-dev python2.7-minimal
python3 python3-dev python3-distutils python3-lib2to3 python3-minimal
python3.6 python3.6-dev python3.6-minimal rfkill systemd systemd-sysv tzdata
udev util-linux
119 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 193 MB of archives.
After this operation, 53.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
any upgrades just select: [keep the local version currently installed]
After reboot:
ubuntu@arm:~$ mount | grep nfs
httphost:/var/www/html/farm on /mnt/farm type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.98,mountvers=3,mountport=33692,mountproto=udp,local_lock=none,addr=192.168.1.98)
But got one failed:
ubuntu@arm:~$ systemctl list-units --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● proc-fs-nfsd.mount loaded failed failed NFSD configuration filesystem
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
So other then the systemctl spam:
[FAILED] Failed to mount NFSD configuration filesystem.
See 'systemctl status proc-fs-nfsd.mount' for details.
[DEPEND] Dependency failed for NFS Mount Daemon.
[DEPEND] Dependency failed for NFS server and services.
[DEPEND] Dependency failed for NFSv4 ID-name mapping service.
before the network is up, nfs does work:
ubuntu@arm:~$ mount | grep nfs
httphost:/var/www/html/farm on /mnt/farm type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.98,mountvers=3,mountport=33692,mountproto=udp,local_lock=none,addr=192.168.1.98)
Found a similar bug: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1590799
ubuntu@arm:~$ cat /lib/systemd/system/proc-fs-nfsd.mount
[Unit]
Description=NFSD configuration filesystem
[Mount]
What=nfsd
Where=/proc/fs/nfsd
Type=nfsd
ubuntu@arm:~$ ls -lha /proc/fs/nfs*
/proc/fs/nfsd:
total 0
dr-xr-xr-x 2 root root 0 Nov 21 02:03 .
dr-xr-xr-x 9 root root 0 Nov 21 01:52 ..
/proc/fs/nfsfs:
total 0
dr-xr-xr-x 2 root root 0 Nov 21 02:03 .
dr-xr-xr-x 9 root root 0 Nov 21 01:52 ..
lrwxrwxrwx 1 root root 23 Nov 21 02:03 servers -> ../../net/nfsfs/servers
lrwxrwxrwx 1 root root 23 Nov 21 02:03 volumes -> ../../net/nfsfs/volumes
ubuntu@arm:~$ zcat /proc/config.gz | grep NFSD
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_PNFS=y
CONFIG_NFSD_BLOCKLAYOUT=y
# CONFIG_NFSD_SCSILAYOUT is not set
# CONFIG_NFSD_FLEXFILELAYOUT is not set
CONFIG_NFSD_V4_SECURITY_LABEL=y
# CONFIG_NFSD_FAULT_INJECTION is not set
Wonder’s what if we build that in…
Building with:
diff --git a/patches/defconfig b/patches/defconfig
index 9c6e110..0dc2f4a 100644
--- a/patches/defconfig
+++ b/patches/defconfig
@@ -6149,7 +6149,7 @@ CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFS_DEBUG=y
-CONFIG_NFSD=m
+CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
okay that seems to have fixed everything:
ubuntu@arm:~$ ls -lha /proc/fs/nfs*
/proc/fs/nfs:
total 0
dr-xr-xr-x 2 root root 0 Nov 21 02:19 .
dr-xr-xr-x 10 root root 0 Nov 21 02:18 ..
-r--r--r-- 1 root root 0 Nov 21 02:19 exports
/proc/fs/nfsd:
total 0
drwxr-xr-x 2 root root 0 Nov 21 02:18 .
dr-xr-xr-x 10 root root 0 Nov 21 02:18 ..
-r--r--r-- 1 root root 0 Nov 21 02:18 export_features
-r--r--r-- 1 root root 0 Nov 21 02:18 exports
-rw------- 1 root root 0 Nov 21 02:18 filehandle
-rw-r--r-- 1 root root 0 Nov 21 02:18 max_block_size
-rw-r--r-- 1 root root 0 Nov 21 02:18 max_connections
-rw------- 1 root root 0 Nov 21 02:18 nfsv4gracetime
-rw------- 1 root root 0 Nov 21 02:18 nfsv4leasetime
-rw------- 1 root root 0 Nov 21 02:18 nfsv4recoverydir
-r--r--r-- 1 root root 0 Nov 21 02:18 pool_stats
-rw------- 1 root root 0 Nov 21 02:18 pool_threads
-rw-r--r-- 1 root root 0 Nov 21 02:18 portlist
-r--r--r-- 1 root root 0 Nov 21 02:18 reply_cache_stats
-r--r--r-- 1 root root 0 Nov 21 02:18 supported_krb5_enctypes
-rw------- 1 root root 0 Nov 21 02:18 threads
-rw------- 1 root root 0 Nov 21 02:18 unlock_filesystem
-rw------- 1 root root 0 Nov 21 02:18 unlock_ip
-rw-r--r-- 1 root root 0 Nov 21 02:18 v4_end_grace
-rw------- 1 root root 0 Nov 21 02:18 versions
ubuntu@arm:~$ systemctl list-units --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
and pushed:
Regards,