How to linux configure NFS Mount
Dear lovely learners:
you know more about computer then subscribe this channel ask questions provide valuable comments.
Use computers with caution yourself encourage others and share.
Thanks in advance
[root@serverX ~]# yum install nfs-utils nfs-utils-lib y [root@serverX ~]# systemctl enable rpcbind.service [root@serverX ~]# systemctl enable nfs-server.service [root@serverX ~]# systemctl stop firewalld.service [root@serverX ~]# setenforce 0 [root@serverX ~]# mkdir /nfsshare -p [root@serverX ~]# cd /nfsshare [root@serverX nfsshare]# ls [root@serverX nfsshare]# mkdir download documents software project office [root@serverX nfsshare]# ls documents download office project software [root@serverX nfsshare]# cd documents/ [root@serverX documents]# ls [root@serverX documents]# touch doc{1..10} [root@serverX documents]# cd .. [root@serverX nfsshare]# cd download/ [root@serverX download]# touch file1 file2 file3 [root@serverX download]# cd .. [root@serverX nfsshare]# cd office [root@serverX office]# touch job cv profile [root@serverX office]# cd .. [root@serverX nfsshare]# cd project/ [root@serverX project]# touch project{1..5} [root@serverX project]# cd .. [root@serverX nfsshare]# cd software/ [root@serverX software]# touch office.exe vlc.exe skype.exe [root@serverX software]# cd .. [root@serverX nfsshare]# /nfsshare/software 172.25.11.0/24(rw,sync,no_root_squash) /nfsshare/project 172.25.11.0/24(ro,sync,no_root_squash) /nfsshare/download *(ro,sync,no_root_squash) /nfsshare/documents 172.25.11.100+X(rw,sync,no_root_squash) /nfsshare/office *.example.com(rw,sync,no_root_squash) Client Side Install NFS packages in your client system yum install nfs-utils nfs-utils-lib [root@desktopX ~]# systemctl enable rpcbind.service [root@desktopX ~]# systemctl enable nfs-server.service Step 09: Mount NFS shares On clients ----------------------------------- [root@desktopX ~]# mkdir /nfsdata [root@desktopX ~]# mount -t nfs 172.25.11.200+X:/nfsshare/project /nfsdata [root@desktopX ~]# cd /nfsdata [root@desktopX nfsdata]# ls [root@desktopX nfsdata]# touch newproject [root@desktopX nfsdata]# cd [root@desktopX ~]# umount /nfsdata [root@desktopX ~]# mount -t nfs 172.25.11.200+X:/nfsshare/software /nfsdata [root@desktopX ~]# cd /nfsdata [root@desktopX nfsdata]# ls [root@desktopX nfsdata]# touch newsoft [root@desktopX nfsdata]# cd [root@desktopX ~]# umount /nfsdata Mounting NFS shares This section explains the basic concepts of the NFS service. A Network File System (NFS) allows remote hosts to mount file systems over a network and interact with those file systems as though they are mounted locally. This enables you to consolidate resources onto centralized servers on the network. Supported NFS versions This section lists versions of NFS supported in Red Hat Enterprise Linux and their features. Currently, Red Hat Enterprise Linux 8 supports the following major versions of NFS: NFS version 3 (NFSv3) supports safe asynchronous writes and is more robust at error handling than the previous NFSv2; it also supports 64-bit file sizes and offsets, allowing clients to access more than 2 GB of file data. NFS version 4 (NFSv4) works through firewalls and on the Internet, no longer requires an rpcbind service, supports Access Control Lists (ACLs), and utilizes stateful operations. NFS version 2 (NFSv2) is no longer supported by Red Hat. The NFS server refers to the /etc/exports configuration file to determine whether the client is allowed to access any exported file systems. Once verified, all file and directory operations are available to the user. NFS host name formats This section describes different formats that you can use to specify a host when mounting or exporting an NFS share. You can specify the host in the following formats: Single machine Either of the following: A fully-qualified domain name (that can be resolved by the server) Host name (that can be resolved by the server) An IP address. IP networks Either of the following formats is valid: a.b.c.d/z, where a.b.c.d is the network and z is the number of bits in the netmask; for example 192.168.0.0/24. a.b.c.d/netmask, where a.b.c.d is the network and netmask is the netmask; for example, 192.168.100.8/255.255.255.0. Netgroups The @group-name format , where group-name is the NIS netgroup name. #Linux #Mail Server #DNS Server #Postfix #Linux_Installation #Configuration #Mail_Archive #PXE_SERVER #Linux_advanced_Command #Linux_beginner