nfs daemon setup

nfs server | nfs client | version 2

installinstall

debian

apt install rpcbind nfs-kernel-server

slackware

slackpkg install nfs-utils rpcbind libtirpc

netbsd

as for NetBSD, it is there already

setupsetup

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

slackware

vi /etc/default/nfs

RPC_NFSD_OPTS="-N 4"

shared

check

grep -i nfs /proc/filesystems

usageusage

debian

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

slackware

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 

acceptanceacceptance

ready to proceed with the client

troublestroubles

sh[4626]: nfsdctl: lockd configuration failure
sh[4681]: nfsdctl: nfsd not found

==> wrong kernel… check zcat /proc/config.gz | grep NFSD

resourcesresources

https://en.wikipedia.org/wiki/Network_File_System

debian

https://help.ubuntu.com/community/SettingUpNFSHowTo

https://help.ubuntu.com/community/DisklessUbuntuHowto

https://ubuntu.com/server/docs/service-nfs

netbsd

https://www.netbsd.org/docs/guide/en/chap-net-services.html

http://wp.lando.cc/category/operation-systems/netbsd/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT