<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NFS Server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nfs-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 17 Jan 2018 14:25:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install NFS Server and Client in CentOS 7 and Redhat 7</title>
		<link>https://www.osradar.com/install-nfs-server-client-centos7-redhat-7/</link>
					<comments>https://www.osradar.com/install-nfs-server-client-centos7-redhat-7/#respond</comments>
		
		<dc:creator><![CDATA[Mel K]]></dc:creator>
		<pubDate>Thu, 11 Jan 2018 21:51:30 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[NFS Server]]></category>
		<category><![CDATA[NFS server CentOS]]></category>
		<category><![CDATA[NFS server Redhat]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=1209</guid>

					<description><![CDATA[<p>NFS (Network File System) is the popular distributed filesystem protocol. It&#8217;s better for users to mount remote folders on their local servers. Here, we will explain step by step how to create NFS server and how to mount the shared directories from the NFS clients. My test systems are CentOS 7.4 with the following info: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nfs-server-client-centos7-redhat-7/">Install NFS Server and Client in CentOS 7 and Redhat 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>NFS (Network File System) is the popular distributed filesystem protocol. It&#8217;s better for users to mount remote folders on their local servers. Here, we will explain step by step how to create NFS server and how to mount the shared directories from the NFS clients.</p>
<p>My test systems are CentOS 7.4 with the following info:</p>
<p>NFS Server = 192.168.178.31<br />
NFS Client = 192.168.178.32</p>
<pre class="lang:default decode:true">[root@osradar ~]# uname -a
Linux osradar 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@osradar ~]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@osradar ~]#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1214" src="https://www.osradar.com/wp-content/uploads/2018/01/NFS.png" alt="" width="967" height="168" srcset="https://www.osradar.com/wp-content/uploads/2018/01/NFS.png 967w, https://www.osradar.com/wp-content/uploads/2018/01/NFS-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/NFS-768x133.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/NFS-696x121.png 696w" sizes="(max-width: 967px) 100vw, 967px" /></p>
<h3>I-Install NFS Utils</h3>
<p>&#8220;nfs-utils&#8221; includes all the needed services to build your NFS server. Let&#8217;s install it with the following commands:</p>
<pre class="">yum install nfs-utils

Installed:
 nfs-utils.x86_64 1:1.3.0-0.48.el7

Dependency Installed:
 gssproxy.x86_64 0:0.7.0-4.el7 keyutils.x86_64 0:1.5.8-3.el7 libbasicobjects.x86_64 0:0.1.1-27.el7
 libcollection.x86_64 0:0.6.2-27.el7 libevent.x86_64 0:2.0.21-4.el7 libini_config.x86_64 0:1.3.0-27.el7
 libnfsidmap.x86_64 0:0.25-17.el7 libpath_utils.x86_64 0:0.2.1-27.el7 libref_array.x86_64 0:0.1.5-27.el7
 libtirpc.x86_64 0:0.2.4-0.10.el7 libverto-libevent.x86_64 0:0.2.5-4.el7 quota.x86_64 1:4.01-14.el7
 quota-nls.noarch 1:4.01-14.el7 rpcbind.x86_64 0:0.2.0-42.el7 tcp_wrappers.x86_64 0:7.6-77.el7

Complete!
[root@osradar ~]#</pre>
<p>Now, create the directory for NFS service to share:</p>
<pre class="">mkdir /var/nfs_share</pre>
<p>Change the permissions of the shared folder:</p>
<pre class="">chmod -R 755 /var/nfs_share
chown nfsnobody:nfsnobody /var/nfs_share</pre>
<p>Let&#8217;s enable and start the services to make &#8220;nfs_share&#8221; accessible later and make them bootable on the next reboot.</p>
<pre class="">systemctl enable rpcbind
 systemctl enable nfs-server
 systemctl enable nfs-lock
 systemctl enable nfs-idmap
 systemctl start rpcbind
 systemctl start nfs-server
 systemctl start nfs-lock
 systemctl start nfs-idmap</pre>
<p>We will configure NFS directory over the network with the next step:</p>
<pre class="">vi /etc/exports</pre>
<p>and add</p>
<pre class="">/var/nfs_share 192.168.178.32(rw,sync,no_root_squash,no_all_squash)</pre>
<p>192.168.178.32 is the IP of NFS client machine. If you wish to all local network, use 192.168.178.0/24  or  &#8220;*&#8221; to allow connection from everywhere.</p>
<p><strong>Restart the NFS service</strong>:</p>
<pre class="">systemctl restart nfs-server</pre>
<p>Here, add the rules below to allow the connection through the NFS service:</p>
<pre class="">firewall-cmd --permanent --zone=public --add-service=nfs
firewall-cmd --permanent --zone=public --add-service=mountd
firewall-cmd --permanent --zone=public --add-service=rpc-bind
firewall-cmd --reload</pre>
<p>Before installing NFS clients, you need to share the folder.</p>
<pre class="">[root@osradar ~]# exportfs
/var/nfs_share 192.168.178.32</pre>
<h3>II-Install  NFS Client</h3>
<p>Run the same command to install all the needed NFS packages.</p>
<pre class="">yum install nfs-utils</pre>
<p>Create the NFS directory mount points:</p>
<pre class="">mkdir -p /mnt/var/nfs_share</pre>
<p>Next, we will mount the NFS shared directory on the client machine as shown below:</p>
<pre class="">[root@localhost~]# mount -t nfs 192.168.178.31:/var/nfs_share /mnt/var/nfs_share/
[root@localhost~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 17G 1.2G 15G 8% /
devtmpfs 486M 0 486M 0% /dev
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 497M 6.6M 490M 2% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
/dev/sda1 1014M 153M 862M 15% /boot
tmpfs 100M 0 100M 0% /run/user/0
192.168.178.31:/var/nfs_share 17G 5.3G 11G 33% /mnt/var/nfs_share
[root@localhost ~]#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1220" src="https://www.osradar.com/wp-content/uploads/2018/01/nfs2.png" alt="" width="1150" height="270" srcset="https://www.osradar.com/wp-content/uploads/2018/01/nfs2.png 1150w, https://www.osradar.com/wp-content/uploads/2018/01/nfs2-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/nfs2-768x180.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/nfs2-1024x240.png 1024w, https://www.osradar.com/wp-content/uploads/2018/01/nfs2-696x163.png 696w, https://www.osradar.com/wp-content/uploads/2018/01/nfs2-1068x251.png 1068w" sizes="(max-width: 1150px) 100vw, 1150px" /></p>
<p>We are connected. Now, you have the reading and writing access to the remote folder.</p>
<p>To mount this folder automatically on every boot, please add this line to &#8220;/etc/fstab&#8221;</p>
<pre class="">192.168.178.31:/var/nfs_share /mnt/var/nfs_share nfs defaults 0 0</pre>
<p>Enjoy! Please come back to us if you have any comment, question or suggestion.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nfs-server-client-centos7-redhat-7/">Install NFS Server and Client in CentOS 7 and Redhat 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nfs-server-client-centos7-redhat-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
