informatica:linux:nfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:nfs [2013/07/03 09:02] – external edit 127.0.0.1 | informatica:linux:nfs [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 211: | Line 211: | ||
| ==== Instalacion ==== | ==== Instalacion ==== | ||
| - | En el servidor se instalan los paquetes: | + | **IMPORTANTE** NFSv4 exporta de forma distinta que NFSv3. |
| - | sudo aptitude install | + | ^ Directorio donde se alojan los archivos ^ Punto de montaje en el servidor ^ |
| + | | /srv/www | /srv/nfs/ | ||
| + | | /srv/svn | /srv/nfs/ | ||
| - | NOTA: en principio winbind **NO** hace falta | + | 1. Servidor: |
| + | sudo aptitude install nfs-common nfs-kernel-server | ||
| + | 2. Cliente: | ||
| - | ==== Configuracion servidor ==== | + | sudo aptitude install nfs-common |
| + | |||
| + | NOTA: en principio rpcbind **NO** hace falta | ||
| + | |||
| + | ==== Configuracion | ||
| 1. Configurar los siguientes archivos: | 1. Configurar los siguientes archivos: | ||
| Line 263: | Line 271: | ||
| **IMPORTANTE**: | **IMPORTANTE**: | ||
| + | |||
| + | ==== Configuracion servidor ==== | ||
| + | |||
| + | 0. Realizar los pasos anteriores | ||
| + | |||
| + | 1. Configurar los siguientes archivos: | ||
| **/ | **/ | ||
| - | /srv | + | /srv |
| 2. Se reinicia el servicio: | 2. Se reinicia el servicio: | ||
| Line 276: | Line 290: | ||
| ==== Configuracion cliente ==== | ==== Configuracion cliente ==== | ||
| - | 1. Instalar estos paquetes: | + | 1. Ver los recursos que ofrece el servidor: |
| - | + | ||
| - | sudo aptitude install nfs-common | + | |
| - | + | ||
| - | 2. Ver los recursos que ofrece el servidor: | + | |
| sudo showmount -e nfs_server.example.com | sudo showmount -e nfs_server.example.com | ||
| - | |||
| - | Export list for nfs_server.example.com: | ||
| - | /srv 10.2.3.0/ | ||
| 2. Montar el recurso: | 2. Montar el recurso: | ||
| - | sudo mount -v -t nfs4 nfs_server.example.com:/ | + | sudo mount -v -t nfs4 nfs_server.example.com:/ |
| - | + | ||
| - | This will mount nfs_server.example.com:/ | + | |
| 3. Comprobar permisos: | 3. Comprobar permisos: | ||
| - | ls -la /mnt/mount_point_of_nfs | + | ls -la /mnt/nfs |
| **NO** deberia pertenecer a nobody: | **NO** deberia pertenecer a nobody: | ||
| Line 305: | Line 310: | ||
| Y anyadir la siguiente entrada: | Y anyadir la siguiente entrada: | ||
| - | | + | |
| 5. Ahora lo puede montar cualquier usuario: | 5. Ahora lo puede montar cualquier usuario: | ||
| - | mount /mnt/mount_point_of_nfs | + | mount /mnt/nfs |
informatica/linux/nfs.1372842169.txt.gz · Last modified: (external edit)
