[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
es:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/15 19:38 (UTC)] – slackwarespanol | es:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/15 20:26 (UTC)] – [Supuestos] slackwarespanol | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | <note warning> | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | ====== NFS - Configuración rápida y sucia ====== | + | ====== NFS - Quick and Dirty Setup ====== |
Se sabe que funcionan con Slackware 14, 14.1 y 14.2 \\ | Se sabe que funcionan con Slackware 14, 14.1 y 14.2 \\ | ||
====== Supuestos ====== | ====== Supuestos ====== | ||
- | 1) Este HOWTO asume que estás usando ** una instalación de Slackware ** vainilla | + | 1) Este HOWTO asume que estás usando ** una instalación de Slackware ** vainilla |
2) Para este ejemplo, el directorio compartido en el servidor será /nfs_share \\ | 2) Para este ejemplo, el directorio compartido en el servidor será /nfs_share \\ | ||
3) Para este ejemplo, el punto de montaje del recurso compartido NFS será / | 3) Para este ejemplo, el punto de montaje del recurso compartido NFS será / | ||
4) Queremos que cualquier persona en nuestra subred (192.168.1.x) tenga acceso RW al recurso compartido \\ | 4) Queremos que cualquier persona en nuestra subred (192.168.1.x) tenga acceso RW al recurso compartido \\ | ||
- | ====== | + | ====== |
- | 1) Setup the server | + | 1) Configurar el servidor |
- | 2) Setup the client | + | 2) Configurar el cliente |
- | 3) Mount the NFS directories on the client | + | 3) Montar los directorios |
- | + | ====== | |
- | ====== | + | Agregue los recursos compartidos de NFS al archivo |
- | Add the NFS shares to the / | + | |
< | < | ||
- | add: \\ | + | agregue: \\ |
<file sh / | <file sh / | ||
- | Start the NFS and RPC daemons | + | Inicia los demonios |
< | < | ||
chmod 755 / | chmod 755 / | ||
Línea 27: | Línea 25: | ||
/ | / | ||
- | Export the shares | + | Exporte los compartidos |
< | < | ||
- | Check to see if the shares are being shared | + | Compruebe si los recursos compartidos se comparten |
< | < | ||
- | ====== | + | ====== |
- | Create the mount point \\ | + | Crear el punto de montaje |
< | < | ||
- | Start the RPC daemon | + | Inicia el demonio |
< | < | ||
/ | / | ||
- | ====== | + | ====== |
- | On the CLIENT machine, you have 3 options here: manually mounting, auto-mount at boot, or semi-auto mount | + | En la máquina CLIENTE, tiene 3 opciones: montaje manual, montaje automático en el arranque o montaje semiautomático |
- | **MANUALLY MOUNT** \\ | + | ** MONTAJE MANUAL |
< | < | ||
- | **AUTO-MOUNT AT BOOT** \\ | + | **MONTAJE AUTOMÁTICO EN EL ARRANQUE |
- | Add the mount command to /etc/fstab \\ | + | Agregue el comando |
< | < | ||
add: \\ | add: \\ | ||
<file sh / | <file sh / | ||
- | **SEMI-AUTO-MOUNT** \\ | + | **MONTAJE |
- | Add the mount command to /etc/fstab \\ | + | Agregue el comando de montaje a /etc/fstab \\ |
< | < | ||
- | add: \\ | + | agregue: \\ |
<file sh / | <file sh / | ||
- | then when you want to mount, just run: \\ | + | entonces cuando quieras montar, simplemente ejecuta: \\ |
< | < | ||
- | **NOTE ABOUT AUTO_MOUNTING** \\ | + | ** NOTA SOBRE AUTO_MOUNTING ** \\ |
- | If you mount at boot and the server machine is unavailable, it will cause your client machine to take a long time to boot as the NFS client will make multiple attempts to connect and you will have to wait for it to time-out for each attampt. \\ | + | Si lo monta durante el arranque y la máquina del servidor no está disponible, la máquina cliente tardará mucho tiempo en iniciarse, ya que el cliente |
- | ====== | + | ====== |
- | All the steps with no explanation: \\ | + | Todos los pasos sin explicación:\\ |
- | **SERVER:** \\ | + | ** SERVIDOR: ** \\ |
< | < | ||
chmod 755 / | chmod 755 / | ||
Línea 75: | Línea 72: | ||
exportfs -a</ | exportfs -a</ | ||
- | **CLIENT:** \\ | + | **CLIENTE:** \\ |
< | < | ||
chmod 755 / | chmod 755 / | ||
Línea 83: | Línea 80: | ||
</ | </ | ||
- | ====== | + | ====== |
- | PROBLEM: NFS shares won't mount on client box with a "Stale NFS file handle" | + | PROBLEMA: Los recursos compartidos de NFS no se montarán en la caja del cliente con un error "Manejador de archivo |
- | SOLUTION: \\ | + | SOLUCIÓN: \\ |
- | 1) Forcibly unmount the directory on the CLIENT machine | + | 1) Desmonte por la fuerza el directorio en la máquina del CLIENTE |
< | < | ||
- | 2) Flush the NFS registry on the SERVER machine: | + | 2) Vacíe el registro |
< | < | ||
- | 3) Remount the NFS share | + | 3) Vuelva a montar el recurso |
4) No Root Squash: | 4) No Root Squash: | ||
- | There are many options for NFS and I want to keep this article short but effective so I am leaving out many of the various configuration items that you could do. However there is one option that is worth mentioning, **no_root_squash**. | + | Hay muchas opciones para NFS y quiero que este artículo sea breve pero efectivo, por lo que omito muchos de los diversos elementos de configuración que podría hacer. Sin embargo, hay una opción que vale la pena mencionar, ** no_root_squash **. Por defecto, |
- | If I create a file as the root user on the client on the NFS share, by default that file is owned by the nobody | + | |
< | < | ||
| | ||
Línea 101: | Línea 97: | ||
| | ||
</ | </ | ||
- | Sometimes it is important to share files that are owned as root with the proper permissions, in these cases this can be done by simply adding the **no_root_squash** | + | A veces es importante compartir archivos que son propiedad de la raíz con los permisos adecuados, en estos casos se puede hacer simplemente agregando el atributo |
- | **Edit the / | + | **Edite / |
< | < | ||
/nfs_share 192.168.1.1/ | /nfs_share 192.168.1.1/ | ||
</ | </ | ||
- | ====== | + | ====== |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: Banging my head in frustration and figuring it out. --> | <!-- * Original source: Banging my head in frustration and figuring it out. --> | ||
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
- | * Originally written by [[wiki: | + | |
+ | * Traducido por: [[wiki: | ||
<!-- * Contributions by [[wiki: | <!-- * Contributions by [[wiki: | ||