nfs server | nfs client | version 2
apt install rpcbind nfs-kernel-server
slackpkg install nfs-utils rpcbind libtirpc
as for NetBSD, it is there already
mv -i /etc/exports /etc/exports.dist vi /etc/exports /data x.x.x.x/24(rw,no_root_squash,no_subtree_check) #/tftpboot x.x.x.x/24(ro,no_root_squash,no_subtree_check)
moar options
# async subtree_check
netbsd option only?
# mp
and disable nfs v4 as follows
vi /etc/default/nfs RPC_NFSD_OPTS="-N 4"
check
grep -i nfs /proc/filesystems
systemctl restart rpcbind.socket systemctl restart portmap systemctl restart rpc-statd systemctl restart nfs-server # all enabled already systemctl status rpcbind.socket systemctl status portmap systemctl status rpc-statd systemctl status nfs-server
start & enable
ls -lF /etc/rc.d/rc.nfsd /etc/rc.d/rc.rpc chmod +x /etc/rc.d/rc.nfsd /etc/rc.d/rc.rpc
cat >> /etc/rc.d/rc.local <<EOF # self-verbose /etc/rc.d/rc.rpc start # self-verbose /etc/rc.d/rc.nfsd start EOF
status
pgrep -a rpc pgrep -a mountd pgrep -a nfs rpcinfo
reload
exportfs -ra
stop
/etc/rc.d/rc.nfsd stop /etc/rc.d/rc.rpc stop
ready to proceed with the client
sh[4626]: nfsdctl: lockd configuration failure sh[4681]: nfsdctl: nfsd not found
==> wrong kernel… check zcat /proc/config.gz | grep NFSD
https://en.wikipedia.org/wiki/Network_File_System
https://help.ubuntu.com/community/SettingUpNFSHowTo
https://help.ubuntu.com/community/DisklessUbuntuHowto
https://ubuntu.com/server/docs/service-nfs
https://www.netbsd.org/docs/guide/en/chap-net-services.html
http://wp.lando.cc/category/operation-systems/netbsd/