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

From Teknologisk videncenter
Jump to: navigation, search
m (NFS server)
(Exports)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
===NFS server===
 
===NFS server===
 +
 +
 +
Installer NFS Server
 +
<source lang=cli>
 +
apt-get install nfs-kernel-server
 +
</source>
 +
 +
==Exports==
 +
 
Editer /etc/exports
 
Editer /etc/exports
tilføj disse 2 linier i bunden
+
:tilføj 1 linie i bunden
  
 
<source lang=cli>
 
<source lang=cli>
 
/home/      10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)
 
/home/      10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)
/script/    10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)
 
 
</source>
 
</source>
  
Line 13: Line 21:
 
</source>
 
</source>
  
Det burde ikke være nødvendig, men kan genstart NFS serveren med
+
Genstart NFS serveren med
  
 
<source lang=cli>
 
<source lang=cli>
 
service nfs-kernel-server restart
 
service nfs-kernel-server restart
 
</source>
 
</source>
 +
 +
*For at UID og GID bliver overført korrekt til klienterne skal de have det samme domain i /etc/idmapd.conf
 +
<source lang=cli>
 +
Domain = Cluster
 +
</source>
 +
*genstart så idmapd servicen for at loade det nye configuration.
 +
<source lang=cli>
 +
service idmapd restart
 +
</source>
 +
===NFS Clienter===
 +
Installer NFS clienten
 +
<source lang=cli>
 +
apt-get install nfs-common
 +
</source>
 +
*For at UID og GID bliver overført korrekt til Klienterne skal de have det samme
 +
 +
IDMAPD domain i /etc/idmapd.conf
 +
<source lang=cli>
 +
Domain = Cluster
 +
</source>
 +
*genstart så idmapd servicen for at loade det nye configuration.
 +
<source lang=cli>
 +
service idmapd restart
 +
</source>
 +
Mount folderen på klienten
 +
<source lang=cli>
 +
mount 10.0.0.1:/home/ /home/
 +
</source>
 +
 
{{Source cli}}
 
{{Source cli}}
 
[[Category:Cluster]][[Category:Ubuntu]]
 
[[Category:Cluster]][[Category:Ubuntu]]

Latest revision as of 13:04, 17 November 2012

NFS server

Installer NFS Server

apt-get install nfs-kernel-server

Exports

Editer /etc/exports

tilføj 1 linie i bunden
/home/      10.0.0.0/24(rw,no_root_squash,no_subtree_check,async)

Exporter de nye shares:

exportfs

Genstart NFS serveren med

service nfs-kernel-server restart
  • For at UID og GID bliver overført korrekt til klienterne skal de have det samme 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/