Commit 494d79

2026-01-31 03:34:41 Anonymous: nfs 1
/dev/null .. nfs.md
@@ 0,0 1,59 @@
+ # Nfs
+
+ **Add the NFS shares to the /etc/exports file**
+
+ <code>nano /etc/exports</code>
+
+ <code>/nfs_share 192.168.1.1/24(rw,sync,no_subtree_check)</code>
+
+ **Start the NFS and RPC daemons**
+
+ <code>chmod 755 /etc/rc.d/rc.nfsd</code>
+ <code>chmod 755 /etc/rc.d/rc.rpc</code>
+ <code>/etc/rc.d/rc.nfsd start</code>
+ <code>/etc/rc.d/rc.rpc start</code>
+
+ **Export the shares**
+
+ <code>exportfs -a</code>
+
+ Check to see if the shares are being shared
+
+ <code>exportfs</code>
+
+
+
+ =====mount nfs shares=====
+
+
+
+
+ __Client Setup__
+
+ Create the mount point
+
+ <code>mkdir /mnt/nfs_share</code>
+
+ Start the RPC daemon
+
+ <code>chmod 755 /etc/rc.d/rc.rpc
+ /etc/rc.d/rc.rpc start</code>
+
+ Mounting
+
+ On the CLIENT machine we'll cover 2 options here: manually mounting and auto-mount at boot
+
+ __MANUALLY MOUNT__
+
+ <code>mount my.nfs.server:/nfs_share /mnt/nfs_share</code>
+
+ AUTO-MOUNT AT BOOT
+ Add the mount command to /etc/fstab
+
+ <code>nano /etc/fstab</code>
+
+ <code>my.nfs.server:/nfs_share /mnt/nfs_share nfs rw,defaults 0 0</code>
+
+
+ NOTE ABOUT AUTO_MOUNTING
+ If you mount at boot and the server machine is unavailable, it will cause your client machine to take a long time to boot as the NFS client will make multiple attempts to connect and you will have to wait for it to time-out for each attampt.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9