How to Install and Configure a Network File System (NFS) Server and Client on Ubuntu Server
In this video, you will learn how to set up an Network File System (NFS) Server on Ubuntu 22.04 LTS Server. I will also show you how to mount an NFS file system on the client machine.
Join this channel to get access to perks: https://www.youtube.com/@lazysysad/join
PLEASE SUBSCRIBE 🙂
PLEASE HIT LIKE IF IT HELPED 🙂
GIVE SUPPORT – https://www.patreon.com/lazysysad
BUY ME A COFFEE – https://www.buymeacoffee.com/lazysysad
PAYPAL – https://paypal.me/lazysysad
LINKS:
How to Install Ubuntu 22.04 LTS Server – https://youtu.be/tEfewxvysGk
Steps:
NFS Server
apt update
apt -y install nfs-kernel-server
systemctl status nfs-server
mkdir /exports
mkdir /exports/backups
vi /etc/exports
/exports/backups 192.168.0.127(rw,sync,no_subtree_check)
exportfs -ar
exportfs -v
ufw allow from 192.168.0.127 to any port nfs
NFS Client
apt -y install nfs-common
mkdir /mnt/backups
mount 192.168.0.126:/exports/backups /mnt/backups
vi /etc/fstab
192.168.0.126:/exports/backups /mnt/backups nfs auto,nofail,noatime,nolock,tcp,actimeo=1800,_netdev 0 0
Drop me your feedback and comments below.
That’s all for now.
If this video helped you in any way, please like share and subscribe!
Thank you!!!
by The Lazy SysAdmin
linux ftp server
Thank you for crisp and clear explanation……
Sir how to do with NIS server
Why do we get incorrect size on client sever after mounting the partition on it , eg i have a 1tb partition but when i mount it on client machine it only shows me 70gb out of which only 10gb available, even though the partition is new with out any data in it
Thanks sir very helpful
great voice 😉
Thanks for this. Is there a way to secure the NFS share through credential authentication (username/password)?
Now I'd like to understand, how the client gets permission to write into that folder. In my case, after following the video, no user on the client is able to write anything unfortunately.
i followed these exact steps, why can my clients not write in that folder?
This was great – especially the posted commands.
each time I get: rpc.statd not running but is required for remote locking, either use '-o nolock' to keep locks local, or start statd, Operation not permitted
Is it possible to enable file transfer compression in nfs to save bandwith?
One of the clearest explanations I have seen in such a reasonable time-frame. I know the title says Ubuntu so this is just a small rant. The instructions also worked on Mint. CachyOS but not Fedora 38 and has driven me crazy. You could mount from the command line but fstab never worked. I gave up and just mounted with systemd
Hi can your please make a video on explaining when and why are these files used in simple terms /etc/resolve.conf, /etc/hosts, /etc/nsswitch.conf if and //etc/named.conf you can show a practical usage it will be great. Please its a request. Please do reply