Eines de l'usuari

Eines del lloc


informatica:implementacioubuntu:ubuntu_server_nfs

Servidor NFS

Creació de les carpetes on s'allotjaran els recursos compartits

mkdir /srv/exports/G -p
mkdir /srv/exports/P -p
mkdir /srv/exports/T -p
mkdir /srv/exports/S -p
mkdir /srv/exports/MIC -p
mkdir /srv/exports/imatges.cd -p
mkdir /srv/exports/direct -p
mkdir /srv/exports/super -p

Creació de l'arxiu /etc/exports

/home/ *(rw,no_root_squash,sync,no_subtree_check)
/srv/exports/P *(rw,root_squash,sync,no_subtree_check)
/srv/exports/S *(rw,root_squash,sync,no_subtree_check)
/srv/exports/T *(rw,all_squash,sync,no_subtree_check)
/srv/exports/MIC *(rw,root_squash,sync,no_subtree_check)
/srv/exports/imatges.cd *(rw,root_squash,sync,no_subtree_check)
/srv/exports/direct *(rw,root_squash,sync,no_subtree_check)
/srv/exports/super *(rw,root_squash,sync,no_subtree_check) 

Configuració de l'arxiu /etc/default/nfs-kernel-server
Cal modificar els valors de l'arxiu /etc/default/nfs-kernel-server, pels valors següents:

# Number of servers to start up
RPCNFSDCOUNT='64 --no-nfs-version 4'  

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=10

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS
RPCMOUNTDOPTS=--manage-gids

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=

# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=

Reinicia el servei

/etc/init.d/nfs-kernel-server restart
service portmap restart



Menú Anterior | Pas següent: Servidor LDAP

informatica/implementacioubuntu/ubuntu_server_nfs.txt · Darrera modificació: 2019/11/24 23:34 (edició externa)