Difference between revisions of "Cluster der kan alt/NFS Server"

From Teknologisk videncenter
Jump to: navigation, search
(Exports)
(Exports)
Line 9: Line 9:
 
==Exports==
 
==Exports==
  
Editer /etc/exports
+
#Editer /etc/exports
 
:tilføj 1 linie i bunden
 
:tilføj 1 linie i bunden
  
Line 16: Line 16:
 
</source>
 
</source>
  
#Exporter de nye shares:
+
##Exporter de nye shares:
#<source lang=cli>
+
<source lang=cli>
 
exportfs
 
exportfs
 
</source>
 
</source>

Revision as of 13:02, 17 November 2012

NFS server

Installer NFS Server

apt-get install nfs-kernel-server

Exports

  1. Editer /etc/exports
tilføj 1 linie i bunden
/home/      10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)
    1. Exporter de nye shares:
exportfs

Det burde ikke være nødvendig, men kan genstart NFS serveren med

service nfs-kernel-server restart
  • For at UID og GID bliver overført korrekt til klineterne skal de have det samme

IDMAPD domain i /etc/idmapd.conf

Domain = Cluster
  • genstart så idmapd servicen for at loade det nye configuration.
service idmapd restart

NFS Clienter

Installer NFS clienten

apt-get install nfs-common
  • For at UID og GID bliver overført korrekt til Klienterne skal de have det samme

IDMAPD domain i /etc/idmapd.conf

Domain = Cluster
  • genstart så idmapd servicen for at loade det nye configuration.
service idmapd restart

Mount folderen på klienten

mount 10.0.0.1:/home/ /home/