NFS CLIENT SETUP

nfs server | nfs client | version 2

REQUIREMENTS

debian

install nfs client to mount nfs shares,

    apt install nfs-common

systemctl restart rpc-statd
systemctl restart portmap

slackware

slackpkg install nfs-utils rpcbind libtirpc

ls -lF /etc/rc.d/rc.rpc
chmod +x /etc/rc.d/rc.rpc
/etc/rc.d/rc.rpc start
/etc/rc.d/rc.rpc status

CLIENT SETUP

setup some mount point

showmount -e NFS-SERVER

mkdir -p /data/
touch /data/NFS_NOT_MOUNTED

vi /etc/fstab

NFS-SERVER:/data /data nfs rw,noatime,nodiratime 0 0

moar options

# async _netdev

mount /data/

RESOURCES

Mount at startup https://help.ubuntu.com/community/SettingUpNFSHowTo#Mount_at_startup

NFS Client Configuration https://help.ubuntu.com/lts/serverguide/network-file-system.html#nfs-client-configuration

NFSv4 and hosts.deny, hosts.allow https://www.linuxquestions.org/questions/linux-server-73/nfsv4-and-hosts-deny-hosts-allow-735312/ –> no rpc required for v4


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun