redhat:storage-server-redhat:nfs-redhat

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:storage-server-redhat:nfs-redhat [2017/09/08 13:52] michaelredhat:storage-server-redhat:nfs-redhat [2020/01/31 22:15] (current) michael
Line 1: Line 1:
-====== NFS Server - Redhat 7 ======+====== NFS Server - Red Hat / 8 ======
 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 system administrators to consolidate resources onto centralized servers on the network. 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 system administrators to consolidate resources onto centralized servers on the network.
  
Line 10: Line 10:
 # yum -y install nfs-utils # yum -y install nfs-utils
 </code> </code>
-  - **Festlegen** des korrekten Domain-namens: <code>+  - ''**Festlegen** des korrekten Domain-namens:'' <code>
 # vim /etc/idmapd.conf # vim /etc/idmapd.conf
 </code> <sxh bash; highlight: [5]> </code> <sxh bash; highlight: [5]>
Line 21: Line 21:
   - ''**Definition** eines neuen NFS Shares:'' <code>   - ''**Definition** eines neuen NFS Shares:'' <code>
 # vim /etc/exports # vim /etc/exports
-</code> <sxh bash;>/mnt/exported/directory 10.0.0.0/24(rw,no_root_squash)</sxh> +</code> <sxh bash;>/volume1/server-backups 192.168.1.0/24(rw,sync)</sxh> ''<wrap em>In this example all Clients in 192.168.1.0/24 can mount /volume1/server-backups read/write and all transfers to disk are committed to the disk before the write request by the client is completed.</wrap>'' 
-  - Setzen der korrekten Firewall Rules: <code># firewall-cmd --add-service=nfs --permanent+  - ''Setzen der korrekten **Firewall Rules**:'' <code># firewall-cmd --add-service=nfs --permanent
 # firewall-cmd --add-service=rpcbind --permanent # firewall-cmd --add-service=rpcbind --permanent
 # firewall-cmd --add-service=mountd --permanent # firewall-cmd --add-service=mountd --permanent
  
 # firewall-cmd --reload </code> # firewall-cmd --reload </code>
-  - Zum Schluss wird der Services gestartet und enabled: <code> +  - ''Zum Schluss wird der **Services gestartet und enabled**:'' <code> 
-# systemctl start rpcbind nfs-server  +# systemctl enable rpcbind nfs-server --now
-# systemctl enable rpcbind nfs-server +
 </code> </code>
 </WRAP> </WRAP>
Line 36: Line 35:
 ---- ----
  
 +<WRAP center box 100%>
 ===== Client Konfiguration ===== ===== Client Konfiguration =====
  
-<code>+  - ''Benötigte **Packete Installieren**'' <code>
 # yum -y install nfs-utils # yum -y install nfs-utils
- 
-# systemctl start rpcbind  
-# systemctl enable rpcbind  
 </code> </code>
- +  - ''Benötigte **Services starten und enablen**:'' <code> 
-Mounten des Shares: ''**server-backups**'' auf das Verzeichnis: **''/mnt/server-backup''** +# systemctl enable rpcbind --now</code> 
-<code>+  - ''<wrap em>Mounten des Shares:</wrap> **server-backups** auf das Verzeichnis: **/mnt/server-backup**'' <code>
 # mount -t nfs -o rw,hard 192.168.1.21:/volume1/server-backups /mnt/server-backup # mount -t nfs -o rw,hard 192.168.1.21:/volume1/server-backups /mnt/server-backup
 </code> </code>
 +
 +<WRAP center round important 100%>
 +''Für einen Eintrag in die **/etc/fstab** lautet die Syntax wie folgt:''
 +<code>10.0.0.21:/volume1/media /mnt/blackserv nfs rw,hard,intr 0 0</code>
 +</WRAP>
 +
 +
 +</WRAP>
 +
  • redhat/storage-server-redhat/nfs-redhat.1504871554.txt.gz
  • Last modified: 2017/09/08 13:52
  • by michael