<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0"> <channel><title>Rubén Ortiz</title> <link>http://www.rubenortiz.es</link> <description>Blog personal de Rubén Ortiz</description> <lastBuildDate>Mon, 16 Jan 2012 08:09:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/RubenOrtiz" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="rubenortiz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Zabbix – reducir tamaño base de datos</title><link>http://www.rubenortiz.es/2012/01/16/zabbix-reducir-tamano-base-de-datos/</link> <comments>http://www.rubenortiz.es/2012/01/16/zabbix-reducir-tamano-base-de-datos/#comments</comments> <pubDate>Mon, 16 Jan 2012 08:09:38 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[zabbix]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=3583</guid> <description><![CDATA[A continuación un comentario breve sobre la base de datos de Zabbix y su peso, comentar que el tema es la tabla history pero con estos tips podemos aligerar el tema. No lo toméis al pie de la letra. 12345678-bash-3.2# du -hs * 105M ibdata1 65M ib_logfile0 65M ib_logfile1 768K mysql 0 mysql.sock 4.0K test [...]]]></description> <content:encoded><![CDATA[<p>A continuación un comentario breve sobre la base de datos de Zabbix y su peso, comentar que el tema es la tabla history pero con estos tips podemos aligerar el tema. No lo toméis al pie de la letra.<br
/> <span
id="more-3583"></span></p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-bash-3.2# du -hs *<br
/> 105M ibdata1<br
/> 65M ib_logfile0<br
/> 65M ib_logfile1<br
/> 768K mysql<br
/> 0 mysql.sock<br
/> 4.0K test<br
/> &lt;strong&gt;46G zabbix&lt;/strong&gt;</div></td></tr></tbody></table></div><p>Paramos el servidor de Zabbix</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># /etc/init.d/zabbix_server stop</div></td></tr></tbody></table></div><p>Optimizamos los datos con mysqlcheck (hay que tener innodb-file-per-table en la configuración)</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mysqlcheck -uuser -ppassword -o --all-databases</div></td></tr></tbody></table></div><p>Después de la optimización de espacio realizada con el optimize vemos la reducción importante de espacio de la bbdd.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-bash-3.2# du -hs *<br
/> 105M ibdata1<br
/> 65M ib_logfile0<br
/> 65M ib_logfile1<br
/> 768K mysql<br
/> 0 mysql.sock<br
/> 4.0K test<br
/> 37G zabbix</div></td></tr></tbody></table></div><p>Entonces, realizamos un dump con mysqldump de la misma base de datos, pues vamos a mover la base de datos a una instancia MySQL donde se ejecutará aislada. Volcamos el dump y comprobamos el tamaño final después del proceso:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-bash-3.2# du -hs *<br
/> 1.6G ibdata1<br
/> 5.1M ib_logfile0<br
/> 5.1M ib_logfile1<br
/> 900K mysql<br
/> 0 mysql.sock<br
/> 1016K test<br
/> &lt;strong&gt;19G zabbix&lt;/strong&gt;</div></td></tr></tbody></table></div><p>Resumen del proceso:</p><p>1. Paramos Zabbix Server<br
/> 2. Optimización<br
/> 3. Dump<br
/> 4. Volcado<br
/> 5. 69% menos de peso en la base de datos</p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2012/01/16/zabbix-reducir-tamano-base-de-datos/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Varnish &amp; WordPress – Ips y comentarios</title><link>http://www.rubenortiz.es/2012/01/10/varnish-wordpress-ips-y-comentarios/</link> <comments>http://www.rubenortiz.es/2012/01/10/varnish-wordpress-ips-y-comentarios/#comments</comments> <pubDate>Tue, 10 Jan 2012 11:50:40 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[varnish]]></category> <category><![CDATA[wordpress]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=5017</guid> <description><![CDATA[Hace unos meses publiqué un tip sobre WP &#038; Varnish, por un tema concreto, el registro correcto de ips en nuestro sistema instalando un módulo, el Rpaf. Es un módulo útil cuando tenemos algún tipo de proxy, o caché, como en este caso varnish. Hace poco he tenido un &#8220;problema&#8221; con un cliente. Al hacer [...]]]></description> <content:encoded><![CDATA[<p>Hace unos meses publiqué un tip sobre WP &#038; Varnish, por un tema concreto, el registro correcto de ips en nuestro sistema instalando un módulo, el Rpaf. Es un módulo útil cuando tenemos algún tipo de proxy, o caché, como en este caso varnish.</p><p><span
id="more-5017"></span></p><p>Hace poco he tenido un &#8220;problema&#8221; con un cliente. Al hacer el split de su backend y frontend, akismet plugin comenzó a filtrar todos los comentarios como spam. Yo no me acordaba de este detalle, el de las variables:</p><p>REMOTE_ADDR<br
/> X_FORWARDER_FOR</p><p>Para arreglar esto hemos de seguir una serie de pasos explicados <a
href="http://www.rubenortiz.es/2011/07/01/varnish-direccion-ip-cliente/">aquí</a> Y adicionalmente, para el tema de los comentarios de WP, hemos de editar (y si alguien sabe otra manera que la diga <img
src='http://www.rubenortiz.es/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) los archivos:</p><p>wp-includes/comment.php<br
/> wp-content/plugins/akismet/akismet.php</p><p>tendremos que editar estos dos archivos buscando la variable</p><p>REMOTE_ADDR</p><p>y editando por</p><p>HTTP_X_FORWARDED_FOR</p><p>Faltará reiniciar Varnish y ya lo tenemos.</p><p><strong>Links</strong><br
/> <a
href="http://mclear.co.uk/2010/12/03/wordpress-and-varnish-comment-ips/">http://mclear.co.uk/2010/12/03/wordpress-and-varnish-comment-ips/</a></p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2012/01/10/varnish-wordpress-ips-y-comentarios/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Prestashop – habilitar modo debug</title><link>http://www.rubenortiz.es/2012/01/05/prestashop-habilitar-modo-debug/</link> <comments>http://www.rubenortiz.es/2012/01/05/prestashop-habilitar-modo-debug/#comments</comments> <pubDate>Thu, 05 Jan 2012 10:43:59 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Prestashop]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[prestashop]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=5010</guid> <description><![CDATA[Útil para cuando queremos investigar errores en Prestashop. En config/config.inc.php modificar estas lineas 12@ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); por estas otras 12@ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true);]]></description> <content:encoded><![CDATA[<p>Útil para cuando queremos investigar errores en Prestashop. En config/config.inc.php modificar estas lineas</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@ini_set('display_errors', 'off');<br
/> define('_PS_DEBUG_SQL_', false);</div></td></tr></tbody></table></div><p>por estas otras</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@ini_set('display_errors', 'on');<br
/> define('_PS_DEBUG_SQL_', true);</div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2012/01/05/prestashop-habilitar-modo-debug/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VZ 4.7 – problemas de memoria – caso práctico</title><link>http://www.rubenortiz.es/2011/11/29/vz-4-7-problemas-de-memoria-caso-practico/</link> <comments>http://www.rubenortiz.es/2011/11/29/vz-4-7-problemas-de-memoria-caso-practico/#comments</comments> <pubDate>Tue, 29 Nov 2011 11:33:33 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Parallels]]></category> <category><![CDATA[Virtualizacion]]></category> <category><![CDATA[Virtuozzo]]></category> <category><![CDATA[Virtuozzo Linux]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4960</guid> <description><![CDATA[Tenemos un VPS que nos da el siguiente error 1Fatal resource shortage: privvmpages, UB 101. Entramos en vps 1vzctl enter 101 Comprobamos memoria 12345free -m &#160; &#160; &#160; &#160; &#160; &#160; &#160;total &#160; &#160; &#160; used &#160; &#160; &#160; free &#160; &#160; shared &#160; &#160;buffers &#160; &#160; cached Mem: &#160; &#160; &#160; &#160; &#160; 512 [...]]]></description> <content:encoded><![CDATA[<p>Tenemos un VPS que nos da el siguiente error</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Fatal resource shortage: privvmpages, UB 101.</div></td></tr></tbody></table></div><p><span
id="more-4960"></span><br
/> Entramos en vps</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vzctl enter 101</div></td></tr></tbody></table></div><p>Comprobamos memoria</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">free -m<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total &nbsp; &nbsp; &nbsp; used &nbsp; &nbsp; &nbsp; free &nbsp; &nbsp; shared &nbsp; &nbsp;buffers &nbsp; &nbsp; cached<br
/> Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 512 &nbsp; &nbsp; &nbsp; &nbsp;469 &nbsp; &nbsp; &nbsp; &nbsp; 42 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; 53<br
/> -/+ buffers/cache: &nbsp; &nbsp; &nbsp; &nbsp;416 &nbsp; &nbsp; &nbsp; &nbsp; 95<br
/> Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</div></td></tr></tbody></table></div><p>Vemos que, está máquina tiene configurado 512MB. Nosotros sabemos que, venimos de un modo SLM en el que, 512MB era el softlimit mientras que el hardlimit es de 756MB. Problemas, en 4.7 no está el modo SLM y se ha sustituido por VSwap.</p><p>En el momento en que entramos, no tuvimos problemas pero otras veces vemos &#8220;Cannot Allocate Memory&#8221;. Estamos en un caso complejo de:</p><p>- VPS con problemas de recursos, ha sobrepasado el tiempo de gracia y se reduce su RAM a softlimit<br
/> - VPS con configuración 4.6 en VZ 4.7</p><p>Al mover nuestros VPS a 4.7, automáticamente todos empiezan a usar el nuevo esquema de RAM. En el caso de SLM es asi:</p><p>- el total de RAM lo marca slmmemorylimit<br
/> - el total de swap es 0<br
/> - el límite de memoria a alojar es el valor de slmmemorylimit por 1.5.</p><p>El nuevo esquema tiene este comportamiento:</p><blockquote><p> 1 You set for a Container a certain amount of RAM and swap space that can be used by the processes running in the Container.</p><p>2 When the Container exceeds the RAM limit set for it, the swapping process starts. The swapping process for Containers slightly differs from that on a standalone computer. The Container swap file is virtual and, if possible, resides in the Node RAM. In other words, when the swap-out for a Container starts and the Node has enough RAM to keep the swap file, the swap file is stored in the Node RAM rather than on the hard drive.</p><p>3 Once the Container exceeds its swap limit, the system invokes the OOM Killer for this container.</p><p>4 The OOM Killer chooses one or more processes running in the affected Container and forcibly<br
/> kills them.</p></blockquote><p>En todo caso, estamos ante un problema de recursos, pero vamos a aplicar ya la nueva configuración.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /vz/private/VEID/<br
/> cp ve.conf ve.conf.bak</div></td></tr></tbody></table></div><p>editamos ve.conf y eliminamos cualquier mención de SLM</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vctl restart VEID</div></td></tr></tbody></table></div><p>El vps no se va a levantar pues, no tiene parámetros UBC o Vswap que aplicar. Es justo lo que queremos.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/>9<br
/>10<br
/>11<br
/>12<br
/>13<br
/>14<br
/>15<br
/>16<br
/>17<br
/>18<br
/>19<br
/>20<br
/>21<br
/>22<br
/>23<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Resource parameter numproc is not set<br
/> Resource parameter numtcpsock is not set<br
/> Resource parameter numothersock is not set<br
/> Resource parameter vmguarpages is not set<br
/> Resource parameter kmemsize is not set<br
/> Resource parameter tcpsndbuf is not set<br
/> Resource parameter tcprcvbuf is not set<br
/> Resource parameter othersockbuf is not set<br
/> Resource parameter dgramrcvbuf is not set<br
/> Resource parameter oomguarpages is not set<br
/> Resource parameter lockedpages is not set<br
/> Resource parameter shmpages is not set<br
/> Resource parameter privvmpages is not set<br
/> Resource parameter numfile is not set<br
/> Resource parameter numflock is not set<br
/> Resource parameter numpty is not set<br
/> Resource parameter numsiginfo is not set<br
/> Resource parameter dcachesize is not set<br
/> Resource parameter physpages is not set<br
/> Resource parameter numiptent is not set<br
/> Not enough parameters to start the Container<br
/> Container is unmounted<br
/> Failed to start the Container</div></td></tr></tbody></table></div><p>Ahora configuramos los parámetros teniendo en cuenta, las necesidades del VPS</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vzctl set 101 --save --ram 1G --swap 512M</div></td></tr></tbody></table></div><p>Rebotamos el VPS y miramos ahora la nueva configuración</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total &nbsp; &nbsp; &nbsp; used &nbsp; &nbsp; &nbsp; free &nbsp; &nbsp; shared &nbsp; &nbsp;buffers &nbsp; &nbsp; cached<br
/> Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024 &nbsp; &nbsp; &nbsp; &nbsp;236 &nbsp; &nbsp; &nbsp; &nbsp;787 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; 38<br
/> -/+ buffers/cache: &nbsp; &nbsp; &nbsp; &nbsp;198 &nbsp; &nbsp; &nbsp; &nbsp;825<br
/> Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;512 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;512</div></td></tr></tbody></table></div><p>Si abrimos el fichero veremos los dos parámetros añadidos</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">PHYSPAGES=&quot;262144:262144&quot;<br
/> SWAPPAGES=&quot;131072:131072&quot;</div></td></tr></tbody></table></div><p>PHYSPAGES muestra el valor total de RAM en páginas de 4KB, así como el valor de SWAPPAGES. Aún así desde la documentación oficial se nos &#8220;insta&#8221; a poder tunear el VPS a un nivel más granular con parámetros UBC.</p><p>Otro parámetro a tener en cuenta es overcommit. Lo que nos genera la duda, al menos a mí, sobre el nuevo esquema de memoria. La duda es sobre si se refiere exclusivamente a una app (application) de un template VZ o aplicaciones en general :-/ La teoría dice:</p><blockquote><p>When an application starts in a Container, it allocates a certain amount of memory for its needs. Usually, the allocated memory is much more than the application actually requires for its execution. This may lead to a situation when you cannot run an application in the Container even if it has<br
/> enough free RAM.</p><p>To deal with such situations, the VSwap memory management scheme introduces a new parameter—VM_Overcommit. Using this parameter, you can configure the amount of memory applications in a Container may allocate, irrespective of the amount of RAM and swap space assigned to the Container.The amount of memory that can be allocated by applications of a Container is the sum of RAM and swap space set for this Container multiplied by a memory overcommit factor. In the default (basic) Container configuration file, this factor is set to 1.5. For example, if a Container is based on the default configuration file and assigned 1 GB of RAM and 512 MB, the memory allocation limit for the Container will be 2304 MB.</p></blockquote><p>Bueno, ha sido una primera aproximación a este nuevo esquema de memoria.</p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/11/29/vz-4-7-problemas-de-memoria-caso-practico/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Percona Server cotejamiento</title><link>http://www.rubenortiz.es/2011/11/11/percona-server-cotejamiento/</link> <comments>http://www.rubenortiz.es/2011/11/11/percona-server-cotejamiento/#comments</comments> <pubDate>Fri, 11 Nov 2011 11:55:32 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[MySql]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[percona]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4933</guid> <description><![CDATA[Estos días trabajamos en Rsystem (ITnet Consulting) el lanzamiento de un proyecto (start-up). El proyecto requería una base de datos MySQL. De inicio montamos Percona Server e hicimos la importación de la base de datos suya de su entorno viejo al nuestro actual. Y es ahí donde nos avisaron del problema. Por defecto, el cotejamiento [...]]]></description> <content:encoded><![CDATA[<p>Estos días trabajamos en Rsystem (ITnet Consulting) el lanzamiento de un proyecto (start-up). El proyecto requería una base de datos MySQL. De inicio montamos Percona Server e hicimos la importación de la base de datos suya de su entorno viejo al nuestro actual. Y es ahí donde nos avisaron del problema. Por defecto, el cotejamiento de Percona Servers es latin. Vamos a cambiarlo a utf para que los carácteres especiales se guarden bien.<br
/> <span
id="more-4933"></span></p><p>Comprobamos que valores tenemos antes de todo</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mysqladmin -uroot -p variables |grep character<br
/> | character_set_results &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | latin1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_server &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| latin1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_system &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_sets_dir &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| /usr/share/mysql/charsets/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|ç</div></td></tr></tbody></table></div><p>Como podemos ver, latin1 es el _set_server. Vamos a editar my.cnf.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vim /etc/my.cnf<br
/> character_set_server = utf8<br
/> collation_server = utf8_general_ci</div></td></tr></tbody></table></div><p>Sólo queda entonces rebotar el servicio y volver a comprobar</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/>9<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mysqladmin -uroot -p variables |grep character<br
/> | character_set_client &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_connection &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_database &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_filesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| binary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_results &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_server &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_set_system &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br
/> | character_sets_dir &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| /usr/share/mysq/charsets/ |</div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/11/11/percona-server-cotejamiento/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CentOS – deshabilitar selinux</title><link>http://www.rubenortiz.es/2011/10/11/centos-deshabilitar-selinux/</link> <comments>http://www.rubenortiz.es/2011/10/11/centos-deshabilitar-selinux/#comments</comments> <pubDate>Tue, 11 Oct 2011 07:21:59 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Centos]]></category> <category><![CDATA[Linux]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4832</guid> <description><![CDATA[Para hacerlo al momento sin esperar a reinicio 1# setenforce 0 Cambiar configuración para siguientes reinicios 12345678910# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # &#160; &#160; &#160; enforcing - SELinux security policy is enforced. # &#160; &#160; &#160; permissive - SELinux prints [...]]]></description> <content:encoded><![CDATA[<p>Para hacerlo al momento sin esperar a reinicio</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># setenforce 0</div></td></tr></tbody></table></div><p><span
id="more-4832"></span><br
/> Cambiar configuración para siguientes reinicios</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/>9<br
/>10<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># This file controls the state of SELinux on the system.<br
/> # SELINUX= can take one of these three values:<br
/> # &nbsp; &nbsp; &nbsp; enforcing - SELinux security policy is enforced.<br
/> # &nbsp; &nbsp; &nbsp; permissive - SELinux prints warnings instead of enforcing.<br
/> # &nbsp; &nbsp; &nbsp; disabled - SELinux is fully disabled.<br
/> SELINUX=disabled<br
/> # SELINUXTYPE= type of policy in use. Possible values are:<br
/> # &nbsp; &nbsp; &nbsp; targeted - Only targeted network daemons are protected.<br
/> # &nbsp; &nbsp; &nbsp; strict - Full SELinux protection.<br
/> SELINUXTYPE=targeted</div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/10/11/centos-deshabilitar-selinux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Parallels Bare Metal contra ISCSI</title><link>http://www.rubenortiz.es/2011/10/10/parallels-bare-metal-contra-iscsi/</link> <comments>http://www.rubenortiz.es/2011/10/10/parallels-bare-metal-contra-iscsi/#comments</comments> <pubDate>Mon, 10 Oct 2011 08:49:58 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Parallels Bare Metal]]></category> <category><![CDATA[Virtualizacion]]></category> <category><![CDATA[bare metal]]></category> <category><![CDATA[Parallels]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4826</guid> <description><![CDATA[No vamos a tratar nada relacionado con el clúster de PSBM de momento, pero se trata de una parte importante del proceso. Hace no mucho que Parallels por cierto, lanzó la release 5.0 de PSBM, podemos ver un resumen de sus mejoras aquí: http://www.parallels.com/es/products/server/baremetal/sp/whatsnew/ Pero sigamos con el principal objetivo de este post. Vamos a [...]]]></description> <content:encoded><![CDATA[<p>No vamos a tratar nada relacionado con el clúster de PSBM de momento, pero se trata de una parte importante del proceso. Hace no mucho que Parallels por cierto, lanzó la release 5.0 de PSBM, podemos ver un resumen de sus mejoras aquí:</p><p><a
href="http://www.parallels.com/es/products/server/baremetal/sp/whatsnew/">http://www.parallels.com/es/products/server/baremetal/sp/whatsnew/</a><br
/> <span
id="more-4826"></span><br
/> Pero sigamos con el principal objetivo de este post. Vamos a ello.</p><p>0. Con la distribución 5.0 de PSBM, vienen instaladas ya las utilidades para conectar contra ISCSI. No hay que instalar nada más.</p><p>1. Formatear PSBM: en la instalación tenemos la opción de configurar las redes. Si podemos será bueno tener desde principio la conectividad a Internet y de paso, obligatorio, añadir la licencia del producto para poder instalar de esta forma PVA, agente, de forma fácil. Sino, lo podemos hacer luego vía shell. Instalamos /, swap y /vz (disco local).</p><p>2. Una vez acabados los preparativos inciales, nos logueamos en la shell de PSBM.</p><p>3. Si lo hemos hecho de forma básica, tendremos montado /vz contra un disco local con la configuración que hayamos dispuesto. El manual del clúster dispone que no hay que instalar /vz al principio, sin embargo, yo lo he hecho así.</p><p>4. Con la red configurada, actualizamos el servidor:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vzup2date</div></td></tr></tbody></table></div><p>5. Si procede rebotamos.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># reboot</div></td></tr></tbody></table></div><p>6. Configuramos el servicio iscsi para que inicie automáticamente y lo arranque. Si hemos dispuesto usuarios y passwords para el volúmen ISCSI, debermos editar previamente el archivo /etc/iscsi/iscsi.conf según se necesite (en este ejemplo, no hace falta):</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># chkconfig iscsi on<br
/> # service iscsi start</div></td></tr></tbody></table></div><p>7. Buscamos discos ISCSI contra nuestra SAN:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iscsiadm --mode discovery --type sendtargets --portal 10.0.0.10<br
/> 10.0.0.10:3260,1 iqn.2011-11.com.local:raid</div></td></tr></tbody></table></div><p>donde 10.0.0.10 es la dirección IP del dispositivo de almacenamiento ISCSI. Una vez el comando se ha ejecutado, nos mostrará los targets disponibles contra este dispositivo. Si hay más de uno disponible, deberemos elegir cual conectar o en el caso de que soporte múltiples conexiones, de todas formas, se deberá rebotar el servicio iscsi</p><p>8. Reiniciamos servicio iscsi y chequeamos que accedemos al disco (debe estar listado en /proc/partitions)</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># service iscsi restart</div></td></tr></tbody></table></div><p>mirando en dmesg, veremos como se van descubriendo los dispositivos ISCSI. Lo deberemos ver listado, en el siguiente archivo</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cat /proc/partitions<br
/> 8 &nbsp; &nbsp; &nbsp; 32 &nbsp;786432000 sdc<br
/> 8 &nbsp; &nbsp; &nbsp; 33 &nbsp;786429913 sdc1</div></td></tr></tbody></table></div><p>También aparecerá si ejecutamos fdisk</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fdisk -l</div></td></tr></tbody></table></div><p>Podemos también vía iscsiadm, ver que targets hemos descubierto</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iscsiadm -m node<br
/> 10.0.0.10:3260,-1 iqn.2011-11.com.local:raid</div></td></tr></tbody></table></div><p>Y ver las sesiones activas</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iscsiadm -m session<br
/> tcp: [1] 10.0.0.10:3260,-1 iqn.2011-11.com.local:raid</div></td></tr></tbody></table></div><p>9. En este punto, tenemos el disco ISCSI accesible. Vamos a formatearlo.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mkfs.ext3 -L psbm-1 /dev/sdc1</div></td></tr></tbody></table></div><p>Podemos probar de montarlo en una carpeta, como prueba extra para ver que es totalmente accesible.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mkdir /vz_local<br
/> # mount mount LABEL=psbm-1 /vz_local</div></td></tr></tbody></table></div><p>10. Ahora queda montar /vz en nuestro volúmen ISCSI. Es probable que tengamos problemas para cambiar /vz a una carpeta temporal. Describimos un proceso en el que con toda seguridad podemos hacer el cambio.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># rsync -v -a /vz/* /vz_local/.</div></td></tr></tbody></table></div><p>Editamos fstaba y comentamos la línea del montaje actual de /vz. Rebotamos</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># reboot</div></td></tr></tbody></table></div><p>Una vez devueltos al sistema, comprobaremos que /vz no se ha montado. Es hora de editar fstab para que monte automáticamente /vz con nuestro volúmen ISCSI. Para ello, debemos tener en cuenta que cada vez que asignamos, descubrimos, un volúmen ISCSI en linux, le otorga un nombre de partición-disco diferente, para ello los LABELS etiquetas son muy útiles. Tomo prestado un buen consejo al respecto:</p><blockquote><p> &#8220;Si el iniciador iSCSI solo se va a conectar a un target con una única partición podemos utilizar los LABELs sin problemas, en cambio, si nos conectamos a un target que está exportando varios volumenes, puede ocurrir que algunos tengan el mismo LABEL. En la medida de lo posible, se recomienda el uso del parámetro UUID para evitar montar una partición equivocada con el mismo LABEL.&#8221;</p></blockquote><p>Ejectuamos blkid , para ver que UUID tiene nuestro disco ISCSI</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># blkid <br
/> ...<br
/> /dev/sdc1: LABEL=&quot;psbm-1&quot; UUID=&quot;74fb6429-4a74-4af1-8488-42d61122b766&quot; TYPE=&quot;ext3&quot;<br
/> ...</div></td></tr></tbody></table></div><p>Con esta información editamos nuestro fstab y añadimos la siguiente línea:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vim /etc/fstab<br
/> UUID=74fb6429-4a74-4af1-8488-42d61122b766 /vz &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ext3 &nbsp; &nbsp;_netdev,rw &nbsp;0 0</div></td></tr></tbody></table></div><blockquote><p>&#8220;Añadir el parámetro _netdev a las opciones de montaje del dispositivo, de este modo durante el arranque de la máquina el script rc.sysinit no lo montará. Posteriormente el script netfs se encargará de montar todos aquellos puntos de montajes marcados con esta opción, una vez inicializada la red y tras conectar a los targets iSCSI. Si no utilizamos el parámetro _netdev será imposible montar la partición, ya que Linux tratará de montar el punto de montaje antes de tener habilitado el soporte de red.&#8221;</p></blockquote><p>Sólo quedará hacer un último reinicio del sistema para comprobar que, el montaje de /vz sobre el disco ISCSI al inicio del sistema es correcto.</p><p><strong>Links</strong><br
/> <a
href="http://download.parallels.com/doc/psbm/v5/rtm/Deploying_Clusters_in_Parallels-Based_Systems.pdf">http://download.parallels.com/doc/psbm/v5/rtm/Deploying_Clusters_in_Parallels-Based_Systems.pdf</a><br
/> <a
href="http://wiki.woop.es/Configuracion_iniciador_iSCSI_CentOS">http://wiki.woop.es/Configuracion_iniciador_iSCSI_CentOS</a></p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/10/10/parallels-bare-metal-contra-iscsi/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>MongoDB en CentOS</title><link>http://www.rubenortiz.es/2011/10/06/mongodb-en-centos/</link> <comments>http://www.rubenortiz.es/2011/10/06/mongodb-en-centos/#comments</comments> <pubDate>Thu, 06 Oct 2011 11:17:49 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Centos]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[centos]]></category> <category><![CDATA[mongodb]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4810</guid> <description><![CDATA[¿Qué es MongoDB? Buena pregunta, ¿hay algún médico en la sala? Pues es una base de datos orientada a documentos, un concepto bastente diferente del SQL. MongoDB wasn’t designed in a lab. We built MongoDB from our own experiences building large scale, high availability, robust systems. We didn’t start from scratch, we really tried to [...]]]></description> <content:encoded><![CDATA[<p>¿Qué es MongoDB? Buena pregunta, ¿hay algún médico en la sala? Pues es una base de datos orientada a documentos, un concepto bastente diferente del SQL.</p><blockquote><p>MongoDB wasn’t designed in a lab. We built MongoDB from our own experiences building large scale, high availability, robust systems. We didn’t start from scratch, we really tried to figure out what was broken, and tackle that. So the way I think about MongoDB is that if you take MySql, and change the data model from relational to document based, you get a lot of great features: embedded docs for speed, manageability, agile development with schema-less databases, easier horizontal scalability because joins aren’t as important. There are lots of things that work great in relational databases: indexes, dynamic queries and updates to name a few, and we haven’t changed much there. For example, the way you design your indexes in MongoDB should be exactly the way you do it in MySql or Oracle, you just have the option of indexing an embedded field.</p><p>– Eliot Horowitz, 10gen CTO and Co-founder</p></blockquote><p>Acabamos de conocernos pero lo poco que he visto me gusta, al menos, la documentación es amplia y precisa. En este post tratamos la instalación y cuatro comandos de newbie<br
/> <span
id="more-4810"></span></p><p>La instalación se lleva a cabo en CentOS 6 64 bits.<br
/> Editamos nuestro repositorio de CentOS:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /etc/yum.repos.d<br
/> # vim mongodb.10gen.repo</div></td></tr></tbody></table></div><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[10gen]<br
/> name=10gen Repository<br
/> baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/<br
/> gpgcheck=0</div></td></tr></tbody></table></div><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># sudo yum install mongo-stable-server<br
/> # sudo /etc/init.d/monod start<br
/> # chkconfig mongod on</div></td></tr></tbody></table></div><p>Primeros pasos:</p><p>Accedemos por consola a nuestro MongoDB</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-bash-4.1# mongo<br
/> MongoDB shell version: 1.6.5<br
/> connecting to: test<br
/> &amp;gt;</div></td></tr></tbody></table></div><p>Una vez dentro, listamos bases de datos a las que estamos conectados</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; show dbs<br
/> admin<br
/> local</div></td></tr></tbody></table></div><p>Cambiamos a otra base de datos o creamos una de cero</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; use prueba<br
/> switched to db prueba</div></td></tr></tbody></table></div><p>Añadimos y salvamos un documento</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/>9<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; post={<br
/> ... 'title':'aprendiendo mongodb',<br
/> ... 'content':'base de datos orientada a documentos???? lol'<br
/> ... }<br
/> {<br
/> &quot;title&quot; : &quot;aprendiendo mongodb&quot;,<br
/> &quot;content&quot; : &quot;base de datos orientada a documentos???? lol&quot;<br
/> }<br
/> &amp;gt; db.blog.insert(post)</div></td></tr></tbody></table></div><p>Hacemos query de todos los documentos</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; db.blog.find()<br
/> { &quot;_id&quot; : ObjectId(&quot;4e8d8a2b9699783129d48d61&quot;), &quot;title&quot; : &quot;aprendiendo mongodb&quot;, &quot;content&quot; : &quot;mongodb es una base de datos orientada a documentos...LOL&quot; }</div></td></tr></tbody></table></div><p>Query de un documento</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; db.blog.findOne()<br
/> {<br
/> &quot;_id&quot; : ObjectId(&quot;4e8d8a2b9699783129d48d61&quot;),<br
/> &quot;title&quot; : &quot;aprendiendo mongodb&quot;,<br
/> &quot;content&quot; : &quot;mongodb es una base de datos orientada a documentos...LOL&quot;<br
/> }<br
/> &amp;gt;</div></td></tr></tbody></table></div><p>Query de documentos en base a un valor especifico</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt; db.blog.find({'title':'aprendiendo mongodb'})<br
/> { &quot;_id&quot; : ObjectId(&quot;4e8d8a2b9699783129d48d61&quot;), &quot;title&quot; : &quot;aprendiendo mongodb&quot;, &quot;content&quot; : &quot;mongodb es una base de datos orientada a documentos...LOL&quot; }<br
/> &amp;gt;</div></td></tr></tbody></table></div><p><strong>Links</strong></p><ul><li><a
href="http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell">http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell</a></li><li><a
href="http://komunitasweb.com/2010/06/my-first-step-into-mongodb-installing-mongodb-on-ubuntu/">http://komunitasweb.com/2010/06/my-first-step-into-mongodb-installing-mongodb-on-ubuntu/</a></li><li><a
href="http://komunitasweb.com/2010/06/beginner-step-into-mongodb/">http://komunitasweb.com/2010/06/beginner-step-into-mongodb/</a></li><li><a
href="http://www.mongodb.org/display/DOCS/Introduction">http://www.mongodb.org/display/DOCS/Introduction</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/10/06/mongodb-en-centos/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux – montar swap</title><link>http://www.rubenortiz.es/2011/10/03/linux-montar-swap/</link> <comments>http://www.rubenortiz.es/2011/10/03/linux-montar-swap/#comments</comments> <pubDate>Mon, 03 Oct 2011 13:18:51 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[Centos]]></category> <category><![CDATA[Linux]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4801</guid> <description><![CDATA[Apunte sobre swap. Mejor que esté y lo puedas utilizar, que lo tengas que utilizar y no lo hayas montado. Tenemos una máquina sin swap activo pero con la partición ya formateada. 12345678# fdisk -l Disk /dev/sda: 274.8 GB, 274877906944 bytes 255 heads, 63 sectors/track, 33418 cylinders Units = cylinders of 16065 * 512 = [...]]]></description> <content:encoded><![CDATA[<p>Apunte sobre swap. Mejor que esté y lo puedas utilizar, que lo tengas que utilizar y no lo hayas montado. Tenemos una máquina sin swap activo pero con la partición ya formateada.<br
/> <span
id="more-4801"></span></p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/>2<br
/>3<br
/>4<br
/>5<br
/>6<br
/>7<br
/>8<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fdisk -l<br
/> Disk /dev/sda: 274.8 GB, 274877906944 bytes<br
/> 255 heads, 63 sectors/track, 33418 cylinders<br
/> Units = cylinders of 16065 * 512 = 8225280 bytes<br
/> <br
/> ...<br
/> /dev/sda4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 33158 &nbsp; &nbsp; &nbsp; 33419 &nbsp; &nbsp; 2096128 &nbsp; 82 &nbsp;Linux swap / Solaris<br
/> ...</div></td></tr></tbody></table></div><p>Utilizamos mkswap  para configurar el área de swap</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mkswap -f /dev/sda4</div></td></tr></tbody></table></div><p>Y finalmente, activamos la swap del sistema</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table
cellspacing="0" cellpadding="0"><tbody><tr><td
style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br
/></div></td><td><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># swapon /dev/sda4</div></td></tr></tbody></table></div><p><strong>Link</strong><br
/> <a
href="http://lissot.net/partition/partition-08.html">http://lissot.net/partition/partition-08.html</a></p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/10/03/linux-montar-swap/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Windows 2003 – No tiene acceso al dispositivo</title><link>http://www.rubenortiz.es/2011/09/29/windows-2003-no-tiene-acceso-al-dispositivo/</link> <comments>http://www.rubenortiz.es/2011/09/29/windows-2003-no-tiene-acceso-al-dispositivo/#comments</comments> <pubDate>Thu, 29 Sep 2011 06:20:23 +0000</pubDate> <dc:creator>Rubén Ortiz</dc:creator> <category><![CDATA[2003 Server]]></category> <category><![CDATA[Windows]]></category> <guid isPermaLink="false">http://www.rubenortiz.es/?p=4797</guid> <description><![CDATA[Intentamos ejecutar un archivo y nos devuelve este error: &#8220;windows no tiene acceso al dispositivo, ruta de acceso o archivo especificado&#8221; Haz click derecho, haz click sobre propiedades y haz click sobre el boton desbloquear al lado de donde indica: &#8220;Este archivo provino de otro equipo y puede que se bloquee para ayudar a proteger [...]]]></description> <content:encoded><![CDATA[<p>Intentamos ejecutar un archivo y nos devuelve este error:</p><p><strong>&#8220;windows no tiene acceso al dispositivo, ruta de acceso o archivo especificado&#8221;</strong></p><p>Haz click derecho, haz click sobre propiedades y haz click sobre el boton desbloquear al lado de donde indica: &#8220;Este archivo provino de otro equipo y puede que se bloquee para ayudar a proteger este equipo&#8221;</p> ]]></content:encoded> <wfw:commentRss>http://www.rubenortiz.es/2011/09/29/windows-2003-no-tiene-acceso-al-dispositivo/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><!-- Dynamic Page Served (once) in 0.711 seconds --><!-- Cached page served by WP-Cache -->

