nfs daemon setup

nfs server | nfs client | version 2

install

debian

    apt install rpcbind nfs-kernel-server

slackware

slackpkg install nfs-utils rpcbind libtirpc

netbsd

as for NetBSD, it is there already

setup

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

usage

debian

    systemctl restart rpcbind.socket
    systemctl restart portmap
    systemctl restart 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
/etc/rc.d/rc.rpc start
/etc/rc.d/rc.nfsd start

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 

acceptance

ready to proceed with the client

resources

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
Copyright © 2024 Pierre-Philipp Braun