Difference between revisions of "Cluster der kan alt/NFS Server"
From Teknologisk videncenter
(→Exports) |
(→Exports) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
Editer /etc/exports | Editer /etc/exports | ||
− | tilføj 1 linie i bunden | + | :tilføj 1 linie i bunden |
− | + | <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) | ||
</source> | </source> | ||
Exporter de nye shares: | Exporter de nye shares: | ||
− | + | <source lang=cli> | |
exportfs | exportfs | ||
</source> | </source> | ||
− | + | Genstart NFS serveren med | |
<source lang=cli> | <source lang=cli> | ||
Line 27: | Line 27: | ||
</source> | </source> | ||
− | *For at UID og GID bliver overført korrekt til | + | *For at UID og GID bliver overført korrekt til klienterne skal de have det samme domain i /etc/idmapd.conf |
− | |||
− | |||
<source lang=cli> | <source lang=cli> | ||
Domain = Cluster | Domain = Cluster |
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/