<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>montar-nfs &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/montar-nfs/</link>
	<description>Feed of posts on WordPress.com tagged "montar-nfs"</description>
	<pubDate>Sat, 02 Jan 2010 00:39:47 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Montar servidor NFS]]></title>
<link>http://mas20.wordpress.com/2008/02/08/montar-servidor-nfs/</link>
<pubDate>Fri, 08 Feb 2008 23:54:36 +0000</pubDate>
<dc:creator>Más 2.0 Admins</dc:creator>
<guid>http://mas20.wordpress.com/2008/02/08/montar-servidor-nfs/</guid>
<description><![CDATA[SERVIDOR EN CENTOS Y CLIENTES EN UBUNTU Verificar Verificar que la distribución del servidor tenga i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p align="center"><b>SERVIDOR EN CENTOS Y CLIENTES EN UBUNTU</b></p>
<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--></p>
<p align="justify" style="margin-bottom:0;line-height:150%;"><b>Verificar</b></p>
<p align="justify" style="margin-bottom:0;line-height:150%;">Verificar que la distribución del servidor tenga instalado el paquete nfs-utils y el paquete portmap, caso contrario instalarlos desde el cd de instalación mediante el comando que se muestra debajo o de la fuente deseada.</p>
<p align="justify" style="margin-bottom:0;line-height:150%;">rpm –q nfs-utils portmap //busca el archivo</p>
<p align="justify" style="margin-bottom:0;line-height:150%;"><span>mount /mnt/cdrom/ //monta el cdrom</span></p>
<p align="justify" style="margin-bottom:0;line-height:150%;"><span>rpm –Uvh /mnt/cdrom/Centos/RPMS/nfs-utils //instala archive desde CD</span></p>
<p>Y en el cliente verificar de la siguiente manera</p>
<p>$sudo apt-get install nfs-common</p>
<p>$apt-get install nfs-kernel-server</p>
<p>$apt-get install portmap</p>
<p>Esto hará que se instalen los paquetes para la práctica y si estos ya se encuentran instalados aparecerá un mensaje indicando el estado de los paquetes.</p>
<p><strong>Configurar la seguridad </strong></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">Para elevar el nivel de seguridad del servidor y el cliente deben configurarse los archivos <i>/etc/hosts.allow </i>donde se indicará que maquinas pueden acceder al servidor y el archivo <i>/etc/hosts.deny</i> donde se indicará cuáles no.</font></p>
<p><font face="Times New Roman"></font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">Las capturas de pantalla de hosts.allow y hosts.deny respectivamente indican lo mencionado:</font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><img border="0" width="240" src="http://farm3.static.flickr.com/2066/2250852545_891f132f6b_m.jpg" height="79" style="width:240px;height:90px;" />  <img border="0" width="240" src="http://farm3.static.flickr.com/2128/2250852533_0043a70486_m.jpg" height="91" /></p>
<p> Una vez realizado esto se debe reiniciar el demonio portmap</p>
<p align="justify" style="margin-bottom:0;line-height:150%;">/sbin/service portmap restart</p>
<p><b><i>Compartiendo un volumen</i></b></p>
<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } 	--></p>
<p align="justify" style="margin-bottom:0;line-height:150%;">Ahora se creará una carpeta o directorio el cuál será el directorio que se exportará para que los clientes accedan a el, ejemplos: /home/compartir o /var/nfs/publico, etc.</p>
<p align="justify" style="margin-bottom:0;line-height:150%;">Además debe agregarse este directorio en el archivo <i>/etc/exports</i> el cuál contiene todos los directorios exportados, los permisos y maquinas que pueden acceder a ese directorio, como se muestra en la sguiente captura:</p>
<div style="text-align:center;"><img border="0" width="240" src="http://farm3.static.flickr.com/2211/2250852541_326905c0a8_m.jpg" height="61" /></div>
<div align="left" style="text-align:center;"></div>
<div align="left" style="text-align:center;">
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">Luego de esto se deberá reiniciar o inciar, cuál sea el caso, el servicio nfs:</font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>/sbin/service nfs star</font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>/sbin/service nfs restart</font></p>
<p><font face="Times New Roman"></font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">Para asegurarnos que el servicio está activo se ejecutará el siguiente comando:</font></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>/sbin/chkconfig –level 345 nfs on</font></p>
<p><b><font face="Times New Roman">Firewall</font></b></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">Se debe desactivar el firewall del sistema:</font></p>
<p style="text-indent:35.4pt;line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">service iptables stop</font></p>
<p><font face="Times New Roman"> </font><b><font face="Times New Roman">Configurando el cliente</font></b></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';">En la maquina cliente deben configurarse los mismos archivos excepto el archivo exports.</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';">hosts.allow y hosts.deny</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';"><img border="0" width="240" src="http://farm3.static.flickr.com/2145/2250852527_2baab85532_m.jpg" height="58" /> <img border="0" width="240" src="http://farm3.static.flickr.com/2369/2250852535_6441a9c9a6_m.jpg" height="53" style="width:240px;height:58px;" /></span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';"></span></p>
<p><span style="font-size:12pt;font-family:'Times New Roman';"></span><span style="font-size:12pt;font-family:'Times New Roman';"></span><span style="font-size:12pt;font-family:'Times New Roman';"></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal">Deberá crearse un punto de montaje donde se colgará el directorio exportado o compartido por el servidor, ejemplo: mkdir /home/compartidos</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal">Vale recalcar que se debe verificar que la maquina cliente esté en la misma red que la maquina servidor.</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal">Ahora ya que el cliente y servidor están en la misma red se escribirán los siguientes comandos para montar el servidor:</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span>            </span>showmount –e &#60;dir_ip&#62; <span>          </span>//muestra el directorio exportado por el servidor</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span>            </span>mount &#60;dir_ip&#62;:/directorio/exportado/<span>  </span>/punto/montaje</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><img border="0" width="240" src="http://farm3.static.flickr.com/2365/2249982965_ce4b2efb84_m.jpg" height="180" style="width:288px;height:180px;" /></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal">&#160;</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal">Para verificar que se haya logrado el montaje verificamos que la maquina cliente pueda observar los mismos archivos que la maquina servidor contiene, como se muestra en la figura:</p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';">Servidor</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';"><img border="0" width="500" src="http://farm3.static.flickr.com/2110/2249982969_71e6db07a6.jpg?v=0" height="400" /></span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';">Cliente</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';"><img border="0" width="500" src="http://farm3.static.flickr.com/2199/2250780504_9cd8f79d6d.jpg?v=0" height="375" /></span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman';">Posted by: <a href="http://barceludena.wordpress.com">Santiago</a></span></p>
<p></span></div>
</div>]]></content:encoded>
</item>

</channel>
</rss>
