User Tools

Site Tools


nfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nfs [2023/07/25 02:02] wigumsnfs [2024/07/23 16:19] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code>nano /etc/exports</code> <code>nano /etc/exports</code>
  
-    /nfs_share 192.168.1.1/24(rw,sync,no_subtree_check)+<code>/nfs_share 192.168.1.1/24(rw,sync,no_subtree_check)</code>
  
 **Start the NFS and RPC daemons** **Start the NFS and RPC daemons**
Line 22: Line 22:
  
  
 +=====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. 
nfs.1690250553.txt.gz · Last modified: 2024/07/23 16:19 (external edit)