<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3580804162837307304</id><updated>2018-09-08T03:13:20.574-05:00</updated><category term="CentOS 7"/><category term="Lost esxi root password"/><category term="RHEL 7"/><category term="Red Hat 7"/><category term="acceso denegado"/><category term="contraseña root"/><category term="grub"/><category term="kernel"/><category term="lam pcre"/><category term="password reset"/><category term="rename eno1 to eth0"/><category term="rename ethernet"/><category term="renombrar tarjetass de red"/><category term="reset root password"/><category term="root password reset"/><category term="samba3"/><category term="smbpasswd"/><category term="symlink"/><category term="update php"/><category term="update php5.1 to 5.2"/><category term="virt-console"/><category term="virt-manager"/><category term="virtualizacion"/><category term="vmware"/><title type='text'>Tips y Solucion a problemas en Linux y asociados</title><subtitle type='html'>Solución a problemas que surgen a través del trabajo día a día</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-3750565192997782536</id><published>2018-02-20T18:21:00.000-05:00</published><updated>2018-02-26T16:53:02.594-05:00</updated><title type='text'>Verificacion de WWN en Linux</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Muchas veces los administradores del almacenamiento SAN nos solicitan a los administradores de la infraestructura Linux el WWN de las tarjetas HBA, para ello podemos recurrir a estos sencillos pasos:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;1. Identificar si tenemos nuestro S.O reconoció las tarjetas, normalmente si son PCI y de una marca reconocida (Emulex o Qlogic) estas deberian&lt;br /&gt;tomarse por defecto&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt; dmesg | grep -i &lt;b&gt;fibre&lt;/b&gt;[    3.623049] Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6&lt;br /&gt;[    4.442259] scsi host1: &lt;b&gt;Emulex LPe12000 PCIe Fibre Channel Adapter on PCI&lt;/b&gt; bus 10 device 00 irq 66&lt;br /&gt;[    7.358475] scsi host2: &lt;b&gt;Emulex LPe12000 PCIe Fibre Channel Adapter on PCI&lt;/b&gt; bus 10 device 01 irq 69&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Verificamos los nombres de los puertos y que estén disponibles&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt; ls -l /sys/class/fc_host&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;total 0&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;lrwxrwxrwx. 1 root root 0 Feb 19 20:07 host1 -&amp;gt; ../../devices/pci0000:00/0000:00:03.0/0000:10:00.0/host1/fc_host/host1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;lrwxrwxrwx. 1 root root 0 Feb 19 20:07 host2 -&amp;gt; ../../devices/pci0000:00/0000:00:03.0/0000:10:00.1/host2/fc_host/host2&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;2. Teniendo en cuenta que si se detectaron las tarjetas, podríamos ingresar a los archivos de configuración&amp;nbsp;y verificar el archivo node_name o podemos instalar el paquete sysfsutils con el comando yum&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]# &lt;/b&gt;cat /sys/class/fc_host/host1/node_name&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;0x2000001b320aeaf3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]# &lt;/b&gt;cat /sys/class/fc_host/host2/node_name&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;0x2001001b320aeaf3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;o&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt; yum -y install sysfsutils&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3. Ejecutar el comando systool con los parámetros de verificación de los puertos fc (fibre channel&lt;/span&gt;)&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt;  systool -c fc_host -v | grep node_name&lt;br /&gt;    node_name           = &quot;0x2000001b320aeaf3&quot;&lt;br /&gt;    node_name           = &quot;0x2001001b322aeaf3&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Esto quiere decir que esta maquina cuenta con&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt; 2 puertos de fibra con los WWN:&lt;/span&gt;&lt;/code&gt;&lt;code style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;Puerto 1 - 20:&lt;b&gt;00&lt;/b&gt;:00:1b:32:0a:ea:f3&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;Puerto 2 - 20:&lt;b&gt;01&lt;/b&gt;:00:1b:32:0a:ea:f3&lt;/span&gt;&lt;/code&gt;&amp;nbsp;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span id=&quot;goog_180489415&quot;&gt;&lt;/span&gt;4. Una vez identificados los puertos se pueden configurar las zonas en los switches de SAN y se pueden visualizar como en el siguiente ejemplo de una solución de almacenamiento IBM&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-t78q11LW0wQ/WB0OgjOWwNI/AAAAAAAAEbA/SzQ1sKwf0jA6kT2Roipfx40OVQH_-LYhwCEw/s1600/2016-11-04_1740.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;467&quot; src=&quot;https://4.bp.blogspot.com/-t78q11LW0wQ/WB0OgjOWwNI/AAAAAAAAEbA/SzQ1sKwf0jA6kT2Roipfx40OVQH_-LYhwCEw/s640/2016-11-04_1740.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Información extra&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;En algunos casos ya se cuenta con algún almacenamiento presentado ya sea por SAN o incluso desde un virtualilzador como RHV, ovirt, Vmware, Xen y queremos que sin tener que reiniciar la maquina se re escaneen los discos, para ello podemos realizar los siguientes pasos&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;[&lt;span style=&quot;font-size: x-small;&quot;&gt;root@jmanuelcalvo ~]# &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;yum install sg3_utils&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;una vez instalado ejecutar el comando &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;pre&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: small;&quot;&gt;[root@jmanuelcalvo ~]# &lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;rescan-scsi-bus.sh&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;y verificar nuevamente si nuestro disco se encuentra disponible ya sea con el comando fdisk -l o con lsblk según la distribución de Linux y su versión&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;[&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;root@jmanuelcalvo ~]# &lt;/b&gt;fdisk  -l   &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;o &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt; lsblk&lt;br /&gt;NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT&lt;br /&gt;sda           8:0    0   20G  0 disk&lt;br /&gt;├─sda1        8:1    0    1G  0 part /boot&lt;br /&gt;└─sda2        8:2    0   12G  0 part&lt;br /&gt;  ├─cl-root 253:0    0   20G  0 lvm  /&lt;br /&gt;  └─cl-swap 253:1    0    2G  0 lvm  [SWAP]&lt;br /&gt;&lt;b&gt;sdb           8:16   0   20G  0 disk&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;En caso que el comando rescant-scasi-bus.sh no encuentre el nuevo almacenamiento,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;antes de reiniciar la maquina intente ejecutando:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt; echo &quot;- - -&quot; &amp;gt; /sys/class/scsi_host/host0/scan&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@jmanuelcalvo ~]#&lt;/b&gt;&amp;nbsp;echo &quot;- - -&quot; &amp;gt; /sys/class/scsi_host/host1/scan&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3&gt;&lt;br /&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/3750565192997782536/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2018/02/verificacion-de-wwn-en-linux.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3750565192997782536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3750565192997782536'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2018/02/verificacion-de-wwn-en-linux.html' title='Verificacion de WWN en Linux'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-t78q11LW0wQ/WB0OgjOWwNI/AAAAAAAAEbA/SzQ1sKwf0jA6kT2Roipfx40OVQH_-LYhwCEw/s72-c/2016-11-04_1740.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-3061798712017136130</id><published>2018-02-02T19:18:00.002-05:00</published><updated>2018-02-02T19:18:54.369-05:00</updated><title type='text'>Hojas de trucos (cheat-sheet)</title><content type='html'>Muchas amigos y alumnos me preguntan si tengo una página o documento con comandos de Linux, ahora la respuesta es este post con las url de algunas hojas de trucos y lo mejor es que se pueden descargar en formato pdf&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;RED HAT ENTERPRISE LINUX 5, 6, AND 7 Common administrative commands&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/sites/default/files/attachments/rhel_5_6_7_cheatsheet_27x36_1014_jcs_web.pdf&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNH3uFVXrDTWuwA5NX8c7n3Tc1hvNg&quot; href=&quot;https://access.redhat.com/sites/default/files/attachments/rhel_5_6_7_cheatsheet_27x36_1014_jcs_web.pdf&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/site&lt;wbr&gt;&lt;/wbr&gt;s/default/files/attachments/&lt;wbr&gt;&lt;/wbr&gt;rhel_5_6_7_cheatsheet_27x36_&lt;wbr&gt;&lt;/wbr&gt;1014_jcs_web.pdf&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;systemd Cheat Sheet for Red Hat Enterprise Linux 7&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/systemd-cheat-sheet&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNFwDvi8D5SJoamPSkJ4VGePWaxyaA&quot; href=&quot;https://access.redhat.com/articles/systemd-cheat-sheet&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/systemd-cheat-sheet&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;ip Command Cheat Sheet for Red Hat Enterprise Linux&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/ip-command-cheat-sheet&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNHX7jkFcH-do-35OqY-dZWaou5eQw&quot; href=&quot;https://access.redhat.com/articles/ip-command-cheat-sheet&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/ip-command-cheat-sheet&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Hammer cheat sheet&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/2258471&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNE-mKXhUGYhWt2Vd_e58t5BJPsLjg&quot; href=&quot;https://access.redhat.com/articles/2258471&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/2258471&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Yum Command Cheat Sheet for Red Hat Enterprise Linux&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/yum-cheat-sheet&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNH2BUIbSdYinB_mOyytk0UOrs3ukw&quot; href=&quot;https://access.redhat.com/articles/yum-cheat-sheet&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/yum-cheat-sheet&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Subscription-Manager Command Cheat Sheet for Red Hat Enterprise Linux&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;&quot;&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/rhsm-cheat-sheet&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNGl6NIT4yn670o7_5-XJvGEJnBzlw&quot; href=&quot;https://access.redhat.com/articles/rhsm-cheat-sheet&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/rhsm-cheat-sheet&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Red Hat Ceph Storage Commands Cheat Sheet&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;&quot;&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://access.redhat.com/articles/3250281&amp;amp;source=gmail&amp;amp;ust=1517703268898000&amp;amp;usg=AFQjCNGTAUGM-BnPoLtUESrUPsJ8fH2zlA&quot; href=&quot;https://access.redhat.com/articles/3250281&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/arti&lt;wbr&gt;&lt;/wbr&gt;cles/3250281&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/3061798712017136130/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2018/02/hojas-de-trucos-cheat-sheet.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3061798712017136130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3061798712017136130'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2018/02/hojas-de-trucos-cheat-sheet.html' title='Hojas de trucos (cheat-sheet)'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-395410912176287336</id><published>2016-03-02T10:16:00.002-05:00</published><updated>2016-03-02T10:16:56.528-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS 7"/><category scheme="http://www.blogger.com/atom/ns#" term="contraseña root"/><category scheme="http://www.blogger.com/atom/ns#" term="password reset"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat 7"/><category scheme="http://www.blogger.com/atom/ns#" term="reset root password"/><category scheme="http://www.blogger.com/atom/ns#" term="root password reset"/><title type='text'>Resetear / Restaurar contraseña de root en Red Hat 7 / CentOS 7</title><content type='html'>Al momento de iniciar la maquina en el gestor de arranque Grub2 se debe seleccionar el kernel y presionar la tecla &amp;nbsp;(e) edit&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-X3fdTImknIA/Vtb9iokiMwI/AAAAAAAAEGM/1i3rMEvOYuc/s1600/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B9.48.42%2Ba.m..png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://4.bp.blogspot.com/-X3fdTImknIA/Vtb9iokiMwI/AAAAAAAAEGM/1i3rMEvOYuc/s320/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B9.48.42%2Ba.m..png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Aquí se debe ubicar la linea que asocia al kernel, que para el caso de grub2 la linea se llama linux16, al final (tecla FIN) de esta linea adicionar el parámetro rd.break &amp;nbsp;(Ram disk Pausa) esto quiere decir &lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;que vamos a pausar el proceso de arranque cuando la maquina este cargado su RAM Disk, una vez adicionado, Ctrl x para que la maquina bootee&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-FLE1exNw6Ow/Vtb_m9VDUII/AAAAAAAAEGY/3iZZN9VLyCA/s1600/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B9.53.43%2Ba.m..png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://2.bp.blogspot.com/-FLE1exNw6Ow/Vtb_m9VDUII/AAAAAAAAEGY/3iZZN9VLyCA/s320/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B9.53.43%2Ba.m..png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;En este momento del arranque, &amp;nbsp;la partición Raiz se ha cargado sobre la partición /sysroot en modo solo lectura, por lo que es necesario realizar el comando de remontaje para poder escribir el archivo /etc/shadow que es donde se almacenan las contraseñas del sistema operativo&lt;br /&gt;Ejecutamos el comando&lt;br /&gt;switch_root:/# mount -o remount,rw /sysroot&lt;br /&gt;Luego para que la partición /sysroot se tome como la Raiz (/) debemos ejecutar el comando de chroot&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;switch_root:/#&lt;/b&gt;&amp;nbsp;chroot /sysroot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ya con el sistema operativo montado sobre la raiz, el comportamiento de los comandos funciona como si estuvieramos con la maquina iniciada normalmente, en este paso se puede ejecutar el comando passwd para cambiar la contraseña del usuario root&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sh-4.2#&lt;/b&gt; passwd root&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Al comento de actualizar la contraseña de root, se cambia el contexto de SELinux sobre el archivo /etc/shadow, por lo que es necesario indicarle al S.O que ejecute ejecute una restauración de contextos de SELinux (restorecon), para ello se debe crear el archivo .autorelable sobre la Raiz del S.O, en caso el sistema sea instalado hace algún tiempo y la maquina contenga muchos archivos, el proceso de re labeling se puede demorar un poco&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sh-4.2#&lt;/b&gt;&amp;nbsp;touch /.autorelabel&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Por ultimo salimos del chroot con el comando exit y también salimos del modo Ram disk (rd.break) con el comando exit, para que la maquina inicie&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sh-4.2#&lt;/b&gt; exit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;switch_root:/#&lt;/b&gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-ZwW5_dn6M7k/VtcDCe7xqRI/AAAAAAAAEGk/u8ITccc_cxs/s1600/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B10.03.08%2Ba.m..png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://1.bp.blogspot.com/-ZwW5_dn6M7k/VtcDCe7xqRI/AAAAAAAAEGk/u8ITccc_cxs/s320/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B10.03.08%2Ba.m..png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/395410912176287336/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2016/03/resetear-restaurar-contrasena-de-root.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/395410912176287336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/395410912176287336'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2016/03/resetear-restaurar-contrasena-de-root.html' title='Resetear / Restaurar contraseña de root en Red Hat 7 / CentOS 7'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-X3fdTImknIA/Vtb9iokiMwI/AAAAAAAAEGM/1i3rMEvOYuc/s72-c/Captura%2Bde%2Bpantalla%2B2016-03-02%2Ba%2Blas%2B9.48.42%2Ba.m..png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-5667928900429684591</id><published>2015-04-15T10:51:00.000-05:00</published><updated>2015-04-15T10:51:26.510-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS 7"/><category scheme="http://www.blogger.com/atom/ns#" term="rename eno1 to eth0"/><category scheme="http://www.blogger.com/atom/ns#" term="rename ethernet"/><category scheme="http://www.blogger.com/atom/ns#" term="renombrar tarjetass de red"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL 7"/><title type='text'>CentOS 7 / RedHat 7 cambiar nombre de interfase de red a eth</title><content type='html'>Dentro de los muchos nuevos cambios/mejoras realizados en las distribuciones CentOS 7 y RHEL 7 con ella se viene el del nombramiento de las interfases de Red a como estuvimos acostumbrados durante muchos años (eth0, eth1...)&lt;br /&gt;&lt;br /&gt;Para facilitarnos la vida se cambio el mecanismos de nombramiento basado en el firmware, el cual funciona de acuerdo a la topología del dispositivo y tipo de dispositivo así:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Topologia&lt;/b&gt;&lt;br /&gt;Interfase ethernet &amp;nbsp;= en&lt;br /&gt;Interfase Wireless = wl&lt;br /&gt;Interfase WWan &amp;nbsp; = ww&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Tipo de adaptador&lt;/b&gt;&lt;br /&gt;On board = o&lt;br /&gt;Hot plug &amp;nbsp;= s&lt;br /&gt;PCI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= p&lt;br /&gt;&lt;br /&gt;Teniendo en cuenta lo anterior, una tarjeta de red ethernet que este incorporada en la board sea de &amp;nbsp;la vamos a observar con el nombre de eno1 en caso que se tengan 2 onboard, eno2, en cuanto a las tarjetas pci dentro del nombramiento se incluye el numero de puerto pci y su nombre podría ser así: enp2s0 (pci socket 2 tarjeta 1)&lt;br /&gt;&lt;br /&gt;Si por alguna razón usted necesita conservar el nombre de las tarjetas con el formato antiguo (eth0, eth1, eth....) puede realizar los siguientes pasos:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@workstation ~]#&lt;/b&gt; &amp;nbsp;vi /etc/default/grub&lt;/span&gt;&lt;br /&gt;adicionar en la linea&amp;nbsp;GRUB_CMDLINE_LINUX las lineas&amp;nbsp;net.ifnames=0 y&amp;nbsp;biosdevname=0 asi&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;GRUB_CMDLINE_LINUX=&quot;rd.lvm.lv=rootvg/usrlv rd.lvm.lv=rootvg/swaplv crashkernel=auto vconsole.keymap=usrd.lvm.lv=rootvg/rootlv vconsole.font=latarcyrheb-sun16 rhgb quiet &lt;span style=&quot;color: red;&quot;&gt;net.ifnames=0 biosdevname=0&lt;/span&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Una vez realizado el cambio, es necesario ejecutar el comando grub2-mkconfig para que se tomen los cambios realizados&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@workstation ~]#&lt;/b&gt; &amp;nbsp;grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Luego se renombra el archivo de configuración de la tarjeta eth0 y se debe garantizar que en los parámetros del archivo ifcfg-eth0 el parametro DEVICE=eth0&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@workstation ~]#&lt;/b&gt; mv /etc/sysconfig/network-scripts/ifcfg-eno1 /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Por ultimo se reinicia el sistema y se realizan la respectiva verificación&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@workstation ~]#&lt;/b&gt; reboot&lt;/span&gt;&lt;br /&gt;o&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@workstation ~]#&lt;/b&gt; systemctl reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/5667928900429684591/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2015/04/centos-7-redhat-7-cambiar-nombre-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5667928900429684591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5667928900429684591'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2015/04/centos-7-redhat-7-cambiar-nombre-de.html' title='CentOS 7 / RedHat 7 cambiar nombre de interfase de red a eth'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-3304615169636323191</id><published>2013-09-26T15:18:00.000-05:00</published><updated>2013-09-26T15:18:07.587-05:00</updated><title type='text'>Zimbra cache is out of date or doesn&#39;t exist</title><content type='html'>Una de las fallas mas comunes del servicio de Zimbra es cuando luego de 1 año de instalado el servicio este deja de funcionar sin previo aviso.&lt;br /&gt;&lt;br /&gt;Cuando se verifica el log (/var/log/zimbra.log) el error que se muestra es similar a:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;cache is out of date or doesn&#39;t exist&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;Lo cual en la mayoría de los casos es que el certificado digital ha caducado.&lt;br /&gt;&lt;br /&gt;Para validar fecha de caducidad del certificado podemos ejecutar el comando:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr viewdeployedcrt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;En caso que efectivamente el certificado este caducado, se deben ejecutar los siguientes comandos:&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;b&gt;Generar certificado digital de Zimbra&lt;/b&gt;&lt;/h2&gt;&lt;br /&gt;como usuario root:&lt;br /&gt;&lt;br /&gt;Lo primero que debemos hacer es garantizar que ningún proceso de zimbra se encuentre corriendo en la el servidor. esto lo podemos verificar con el comando:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# ps xau | grep zimbra&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;En caso que exista algun proceso, bajar el servicio de zimbra (/etc/init.d/zimbra stop) y en caso que continúen procesos, matarlos a través del PID con el comando kill -9&lt;br /&gt;&lt;br /&gt;Luego de esta verificación debemos seguir estos para la creación del nuevo certificado:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Generación del CA&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr createca -new&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Generación del certificado (incluye nuevo tiempo de expiracion)&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr createcrt -new -days 365&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Despliegue el certificado&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr deploycrt self&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Despliegue de la CA&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr deployca&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Verificacion del nuevo certificado&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /opt/zimbra/bin/zmcertmgr viewdeployedcrt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Reiniciar el servicio de zimbra&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# /etc/init.d/zimbra start&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En caso que el problema no se solución con este procedimiento, recuede siempre revisar el archivo de log principal del servicio /var/log/zimbra.log o los logs específicos en la ruta /opt/zimbra/logs&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/3304615169636323191/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2013/09/zimbra-cache-is-out-of-date-or-doesnt.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3304615169636323191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/3304615169636323191'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2013/09/zimbra-cache-is-out-of-date-or-doesnt.html' title='Zimbra cache is out of date or doesn&#39;t exist'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-73620142309534748</id><published>2013-05-16T09:54:00.001-05:00</published><updated>2013-05-16T09:55:08.319-05:00</updated><title type='text'>Zimbra: INFECTED: Heuristics.Encrypted.PDF</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A la cuenta de administrador llegan correos con el siguiente asunto:&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: Arial, Helvetica, sans-serif;&quot;&gt;VIRUS (Heuristics.Encrypted.PDF) in mail FROM ......&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;o con contenido similar a:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: Arial, Helvetica, sans-serif;&quot;&gt;A virus was found: Heuristics.Encrypted.PDF&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Scanner detecting a virus: ClamAV-clamd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Generalmente llegan por que al Zimbra se estan enviando archivos PDF adjuntos con contraseña&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Buscando en los foros se indica ingresar al panel de&amp;nbsp;administración&amp;nbsp;-&amp;gt; Global Settings -&amp;gt; AS/AV y deshabilitar la casilla Block encryped archives y por ultimo reiniciar el servicio de Zimbra. como se puede ver en la imagen de la pagina: &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://agilemail.com.au/blog/how-disable-zimbra-virus-scanner-blocking-encrypted-archives-and-files&quot;&gt;http://agilemail.com.au/blog/how-disable-zimbra-virus-scanner-blocking-encrypted-archives-and-files&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-5HC2xvI7uDI/UZTw77MfOyI/AAAAAAAAC8M/3KNQR-vZrQM/s1600/20111213-j2i563ki4wnrpm8bjfpe4mwweq.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;http://2.bp.blogspot.com/-5HC2xvI7uDI/UZTw77MfOyI/AAAAAAAAC8M/3KNQR-vZrQM/s320/20111213-j2i563ki4wnrpm8bjfpe4mwweq.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En mi caso este procedimiento NO me funciono,&amp;nbsp;así&amp;nbsp;que&amp;nbsp;procedí&amp;nbsp;a editar los siguientes archivos de&amp;nbsp;configuración:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@dominio:~] #&lt;/b&gt; vi /opt/zimbra/conf/clamd.conf&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Reemplazar&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ArchiveBlockEncrypted yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;por&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ArchiveBlockEncrypted no&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;y en el archivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@dominio:~] #&lt;/b&gt; vi /opt/zimbra/conf/clamd.conf.in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;%%uncomment VAR:zimbraVirusBlockEncryptedArchive%%ArchiveBlockEncrypted yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;por&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;%%uncomment VAR:zimbraVirusBlockEncryptedArchive%%ArchiveBlockEncrypted no&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;y por ultimo si estamos en un ambiente de&amp;nbsp;producción, reiniciamos&amp;nbsp;únicamente&amp;nbsp;el servicio de antivirus para que no se tarde tanto tiempo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@dominio:~] #&amp;nbsp;&lt;/b&gt;zmclamdctl stop &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stopping freshclam...done.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Stopping clamd...done.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;[root@dominio:~]&amp;nbsp;#&lt;/b&gt; zmclamdctl start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Starting freshclam...done.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Starting clamd...done.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/73620142309534748/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2013/05/zimbra-infected-heuristicsencryptedpdf.html#comment-form' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/73620142309534748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/73620142309534748'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2013/05/zimbra-infected-heuristicsencryptedpdf.html' title='Zimbra: INFECTED: Heuristics.Encrypted.PDF'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-5HC2xvI7uDI/UZTw77MfOyI/AAAAAAAAC8M/3KNQR-vZrQM/s72-c/20111213-j2i563ki4wnrpm8bjfpe4mwweq.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-1875429646030502317</id><published>2012-03-24T03:45:00.001-05:00</published><updated>2012-03-24T03:46:54.320-05:00</updated><title type='text'>Yum install desde CD</title><content type='html'>Algunas veces nos&amp;nbsp;encontramos&amp;nbsp;en apuros para instalar paquetes directamente desde el comando rpm por que se necesita x o y dependencia y cuando&amp;nbsp;recurrimos&amp;nbsp;al comando yum para que se descargue de Internet puede suceder que o la maquina no tiene Internet o en caso de ser un Red Hat no se cuente con la&amp;nbsp;suscripción&amp;nbsp;a Red Hat Network.&lt;br /&gt;&lt;br /&gt;Pero tenemos a la mano el DVD de&amp;nbsp;Instalación&amp;nbsp;de sistema operativo.&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;En este caso o similares, la&amp;nbsp;recomendación&amp;nbsp;es crear un repositorio local para que sea el propio comando yum el que se encargue de resolver las&amp;nbsp;dependencias y las saque directamente del disco local para ellos se crea un repositorio del medio (CD/DVD)&lt;br /&gt;&lt;br /&gt;Lo primero es crear un archivo llamado CentOS-Media.repo donde se debe indicar la ruta del CD/DVD o la copia del medio de instalación, este&amp;nbsp;parámetro&amp;nbsp;se puede indicar varias veces en caso que se tengan&amp;nbsp;diferentes&amp;nbsp;rutas de CD o DVD con el&amp;nbsp;parámetro&amp;nbsp;file, por ultimo se copian las&amp;nbsp;demás&amp;nbsp;opciones tal cual se muestra en el siguiente archivo&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; vi /etc/yum.repos.d/CentOS-Media.repo&lt;/span&gt;&lt;br /&gt;[c5-media]&lt;br /&gt;name=CentOS-$releasever - Media&lt;br /&gt;baseurl=file:///media/CentOS/&lt;br /&gt;file:///media/cdrom/&lt;br /&gt;file:///media/cdrecorder/&lt;br /&gt;gpgcheck=1&lt;br /&gt;enabled=0&lt;br /&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Una vez creado dicho archivo, ya se puede refereciar los paquetes con el comando yum de la forma:&lt;br /&gt;&lt;br /&gt;Ej:&amp;nbsp;Instalación&amp;nbsp;del paquete vim-enhanced&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;[root@orleans ~]#&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&amp;nbsp;yum --disablerepo=\* --enablerepo=c5-media install vim-enhanced&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;Ej:&amp;nbsp;Instalación&amp;nbsp;del grupo de paquetes de desarrollo&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;b&gt;[root@orleans ~]#&lt;/b&gt; yum --disablerepo=\* --enablerepo=c5-media groupinstall &#39;Development Tools&#39;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/1875429646030502317/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/03/yum-install-desde-cd.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1875429646030502317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1875429646030502317'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/03/yum-install-desde-cd.html' title='Yum install desde CD'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-540511603284570019</id><published>2012-03-24T03:22:00.000-05:00</published><updated>2012-03-24T03:22:41.148-05:00</updated><title type='text'>Configuracion bonding / Team sobre las tarjetas de Red</title><content type='html'>&lt;br /&gt;&lt;div align=&quot;CENTER&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Configuración del Team/bond en las tarjetas de red&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;1. Creación del dispositivo de bonding (bond0)&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;Por defecto en los sistema operativos Red Hat Enterprise, la configuración de red se encuentra en el directorio /etc/sysconfig/network-script, lo primero que se debe realizar es crear un archivo llamado  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;ifcfg-bond0 con la información IP  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt; vi /etc/sysconfig/network-scripts/ifcfg-bond0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;DEVICE=bond0 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;IPADDR=192.168.1.20 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;NETWORK=192.168.1.0 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;NETMASK=255.255.255.0 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;USERCTL=no &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;BOOTPROTO=none &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;ONBOOT=yes&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;2. Modificar los archivos de configuración de las tarjetas eth0 y eth1  &lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Una vez creado el archivo, se deben configurar las tarjetas de red que aran parte del bonding, para ello se deben configurar los archivos ifcfg-eth0 y ifcfg-eth1 indicando que el MASTER sera el bond0&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt; vi /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;DEVICE=&lt;span style=&quot;color: red;&quot;&gt;eth0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;USERCTL=no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;ONBOOT=yes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MASTER=bond0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;SLAVE=yes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;BOOTPROTO=none&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt; vi /etc/sysconfig/network-scripts/ifcfg-eth1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;DEVICE=&lt;span style=&quot;color: red;&quot;&gt;eth1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;USERCTL=no&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;ONBOOT=yes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MASTER=bond0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;SLAVE=yes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;BOOTPROTO=none&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;3. Cargar el modulo/driver del bonding&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Se debe garantizar que el modulo del bonding se cargue en el kernel y este asociado al dispositivo de bond0 creado en el paso numero 1&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Adicionar las siguientes lineas al final del archivo /etc/modprobe.conf&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt;vi /etc/modprobe.conf&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;alias &lt;span style=&quot;color: red;&quot;&gt;bond0&lt;/span&gt;bonding &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;options &lt;span style=&quot;color: red;&quot;&gt;bond0&lt;/span&gt;mode=balance-alb miimon=100&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;4. Iniciar servicio de red con bonding&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Una vez se reinicie el servicio el modulo iniciara automáticamente, pero habilitar el modulo de inmediato se deben ejecutar los siguientes comandos:&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt;modprobe bonding&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt;service network restart&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;5. Probar el servicio&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Para realizar las pruebas del servicio basta con mantener un ping sostenido sobre la dirección IP configurada en el dispositivo bond0 y desconectar manualmente una de las tarjetas, el ping debería mantenerse (es probable detectar algunos milisegundos de mas sobre el ping al momento de desconectar una de la interfaces)&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;6. verificar el estado del bonding&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Dentro del archivo de /proc/net/bonding/bond0 podrá encontrar información adicionar sobre el modo de funcionamiento, las interfaces incluidas, la velocidad entre otros&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]# &lt;/b&gt;cat /proc/net/bonding/bond0&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Bonding Mode: adaptive load balancing&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Primary Slave: None&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Currently Active Slave: eth0&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MII Status: up&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MII Polling Interval (ms): 100&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Up Delay (ms): 0&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Down Delay (ms): 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Slave Interface: eth0&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MII Status: up&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Speed: 1000 Mbps&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Duplex: full&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Link Failure Count: 1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Permanent HW addr: e4:1f:13:ff:35:48&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Slave Interface: eth1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;MII Status: up&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Speed: 1000 Mbps&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Duplex: full&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Link Failure Count: 2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Permanent HW addr: e4:1f:13:ff:35:4a&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 class=&quot;western&quot;&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;7. Tipos de bonding&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Para verificar que tipo de bonding se va a utilizar, es necesario tener en cuenta la configuración del switch y que modo es el que se desea, en este el modo es balance-tlb (modo 5) el cual se indico en el archivo  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;/etc/modprobe.conf y que también se puede verificar con el siguiente comando:&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;commandos-western&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;b&gt;[root@dbdwh01 ~]#&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;more /sys/class/net/bond0/bonding/mode&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #222222;&quot;&gt;balance-alb 6&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Por ultimo dejo los diferentes tipos de bonding  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;mode=1 &lt;/b&gt;(active-backup)  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond&#39;s MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode. &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;mode=2&lt;/b&gt;(balance-xor)  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;XOR policy: Transmit based on [(source MAC address XOR&#39;d with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mode=3 &lt;/b&gt;(broadcast)  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mode=4&lt;/b&gt; (802.3ad)  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Prerequisites: &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Ethtool support in the base drivers for retrieving the speed and duplex of each slave. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;A switch that supports IEEE 802.3ad Dynamic link aggregation. Most switches will require some type of configuration to enable 802.3ad mode. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;mode=5&lt;/b&gt;(balance-tlb)  &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave. &lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/div&gt;&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/540511603284570019/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/02/configuraciondel-team-link-aggregation.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/540511603284570019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/540511603284570019'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/02/configuraciondel-team-link-aggregation.html' title='Configuracion bonding / Team sobre las tarjetas de Red'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-689403218615664702</id><published>2012-02-01T11:14:00.004-05:00</published><updated>2012-03-12T12:08:08.044-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="virt-console"/><category scheme="http://www.blogger.com/atom/ns#" term="virt-manager"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualizacion"/><title type='text'>virsh console no funciona en KVM</title><content type='html'>&lt;div&gt;En las versiones de KVM por defecto no es posible conectarse a las maquinas virtuales a través del comando virsh console, únicamente desde la interface de virt-manager o en su defecto conectarse por otras herramientas como ssh o vnc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pero algunas veces no contamos con ambiente gráfico para iniciar la interface del virt-manager o simplemente no se desea configurar el vnc para la conexion a la maquina virtual y seguramente mas adelanta vamos a requerir hacerlo directamente desde el servidor de virtualizacion, para ello este caso o similar es necesario que una vez se instale la maquina virtual, se edite realicen los siguientes pasos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Verificar las maquinas virtuales &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@charm ~]# virsh list&lt;/div&gt;&lt;div&gt;Id Nombre               Estado&lt;/div&gt;&lt;div&gt;----------------------------------&lt;/div&gt;&lt;div&gt;1 vm-ProjectOpen       ejecutándose&lt;/div&gt;&lt;div&gt;2 vm-LeoMartinez       ejecutándose&lt;/div&gt;&lt;div&gt;3 vm-Zimbra7           ejecutándose&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Una vez con el identificador de la maquina virtual ejecutamos&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;[root@charm ~]# virsh console vm-ProjectOpen&lt;/div&gt;&lt;div&gt;Connected to domain vm-ProjectOpen&lt;/div&gt;&lt;div&gt;Escape character is ^]&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pero como indicaba anteriormente la pantalla se queda ahi (Ctrl + 5 para salir)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Ingresar a la maquina virtual, en este caso si es necesario realizarlo por el ambiente gráfico virt-manager o por ssh en caso que ya se tenga acceso por red y editar el archivo /etc/grub.conf (RedHat, CentOS) y adicionar la linea console=ttyS0 al final de la linea del kernel como se puede observar en el siguiente ejemplo:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@up ~]# vi /etc/grub.conf &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# grub.conf generated by anaconda&lt;/div&gt;&lt;div&gt;#&lt;/div&gt;&lt;div&gt;# Note that you do not have to rerun grub after making changes to this file&lt;/div&gt;&lt;div&gt;# NOTICE:  You have a /boot partition.  This means that&lt;/div&gt;&lt;div&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;/div&gt;&lt;div&gt;#          root (hd0,0)&lt;/div&gt;&lt;div&gt;#          kernel /vmlinuz-version ro root=/dev/hda3&lt;/div&gt;&lt;div&gt;#          initrd /initrd-version.img&lt;/div&gt;&lt;div&gt;#boot=/dev/hda&lt;/div&gt;&lt;div&gt;default=0&lt;/div&gt;&lt;div&gt;timeout=5&lt;/div&gt;&lt;div&gt;splashimage=(hd0,0)/grub/splash.xpm.gz&lt;/div&gt;&lt;div&gt;hiddenmenu&lt;/div&gt;&lt;div&gt;title CentOS (2.6.18-274.el5)&lt;/div&gt;&lt;div&gt;root (hd0,0)&lt;/div&gt;&lt;div&gt;kernel /vmlinuz-2.6.18-274.el5 ro root=LABEL=/ rhgb quiet &lt;span class=&quot;Apple-style-span&quot;&gt;console=ttyS0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;initrd /initrd-2.6.18-274.el5.img&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Una vez adicionada esta linea se debe reiniciar la maquina para que el kernel tome estos cambios al inicio del sistema operativo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Cuando la maquina reinicie desde el servidor de maquinas virtuales ya se puede acceder a esta maquina nuevamente con el comando virsh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@charm ~]# virsh console vm-ProjectOpen&lt;/div&gt;&lt;div&gt;Connected to domain vm-ProjectOpen&lt;/div&gt;&lt;div&gt;Escape character is ^]&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ENTER &lt;/span&gt;&lt;/div&gt;&lt;div&gt;CentOS release 5.5 (Final)&lt;/div&gt;&lt;div&gt;Kernel 2.6.18-194.el5 on an i686&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;up.e-quarks.com login: &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NOTA: siempre que se desee salir de la maquina virtual habiendo ingresado por virsh console lo puede hacer con la combinación de teclas Ctrl + 5 (Teclado en Español), las tareas que se esten ejecutando en la maquina virtual se continuaran haciando así se salga del virtsh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/689403218615664702/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/02/virsh-console-no-funciona-en-kvm.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/689403218615664702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/689403218615664702'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/02/virsh-console-no-funciona-en-kvm.html' title='virsh console no funciona en KVM'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-6464142801573068461</id><published>2012-01-18T15:12:00.003-05:00</published><updated>2012-03-24T03:06:12.735-05:00</updated><title type='text'>Instalar sobre particiones mayores de 2TB</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;&gt;En un blog anterior habia publicado como crear particiones mayores de 2TB sobre un nuevo disco.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://jmanuelcalvo.blogspot.com/2011/01/creacion-de-particiones-mayores-2tb-en.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;http://jmanuelcalvo.blogspot.com/2011/01/creacion-de-particiones-mayores-2tb-en.html&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;En esta excenario el caso es un poco diferente, ya que se cuenta con una unica particion de 4TB y esta debe ser tanto para los datos como para la instalacion del sistema operativo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Al momento de iniciar la instalacion, este unicamente al igual que como comentaba en el blog anterior particiones de 2TB.  entonces gracias a esta pagina &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://www.centos.org/modules/newbb/viewtopic.php?topic_id=33535&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; text-align: -webkit-auto;&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;https://www.centos.org/&lt;wbr&gt;&lt;/wbr&gt;modules/newbb/viewtopic.php?&lt;wbr&gt;&lt;/wbr&gt;topic_id=33535&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Los pasos son:&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;1. Iniciar la instalacion de RedHat/CentOS de forma normal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;2. En los primeros pasos (Seleccion de Idioma o Teclado) Ctrl + Alt + F2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;3. Ejecutar el comando fdisk -l para identificar el nombre del disco (sda,sdb,etc) normalmente sda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;4. ejecutar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;parted /dev/sda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;mklabel gpt&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;quit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;5. Reiniciar el proceso de instalación &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;reboot&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;6. Iniciar nuevamente el proceso de instalación  y realizar los pasos normales de instalacion, ( yo realice este proceso en CentOS 6), en el momento de las particiones, se ejecuta selecciona la opcion &quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&quot;Use Free Space&quot; o &quot;Utilice el espacio libre&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;este se encargara de crear un LVM con los tamaños de las particiones&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;7. Por ultimo continuar con el proceso de instalacion normal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/6464142801573068461/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/01/instalar-sobre-particiones-mayores-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/6464142801573068461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/6464142801573068461'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2012/01/instalar-sobre-particiones-mayores-de.html' title='Instalar sobre particiones mayores de 2TB'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-4176595109244594943</id><published>2011-11-30T09:43:00.001-05:00</published><updated>2012-03-24T03:07:10.970-05:00</updated><title type='text'>Mensaje &quot;Device eth0 does not seem to be present&quot; en VMWARE</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Hola a todos, este es mi primer blog en apoyo a la nueva y ya existente comunidad del OpenSource. Puen bien, este blog trara sobre un pequeño royo que me ocurrió hace unos días migrando o copiando una VM de un pc a otro.&lt;/div&gt;&lt;br /&gt;y todo comezó así.........................&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Una vez terminada mi labor sobre la máquina virutal sobre un Scientific Linux 6, mi jefe me solicitó que le facilitara una copia a un proveedor para que tuviera un ambiente pruebas funcional para el desarrollo del proyecto. Pues bien le facilité la copia y como medida preventiva se hizo una prueba en otro pc, y todo marchaba bien (inició sin ningún problema). Seguido a esto se quizo validar el aplicativo y OOOOOOOOOOOOO sorpresa no subió. Mirando cosas varias me encuntro que la interfaz de red no subió y que cuando reinciaba el servicio aparecia algo como&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization &amp;nbsp;[&lt;span style=&quot;color: red;&quot;&gt;FAILED&lt;/span&gt;]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;Una vez se tenga este mensaje tan claro se procede a realizar lo siguiente:&lt;br /&gt;&lt;br /&gt;1. Listar los dispositivos registrados&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #999999; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;[root@ftp ~]# ls - /sys/class/net&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #999999; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;eth1 &amp;nbsp; &amp;nbsp;lo &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;sit0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y como se podrán dar cuenta por ningún lado aparece eth0..... Esto ocurre debido a que la dirección de la NIC cambió y por ende nuestro Linux genera una nueva interfaz que para este efecto es &lt;b&gt;eth1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;2. Ahora se procede a editar el archivo de Red persistente de udev.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: inherit; font-size: x-small;&quot;&gt;[root@ftp ~]# cat /etc/udev/rules.d/70-persistent-net.rules&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# This file was automatically generated by the /lib/udev/write_net_rules&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# program, run by the persistent-net-generator.rules rules file.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;#&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# You can modify it, as long as you keep each rule on a single&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# line, and change only the value of the NAME= key.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: inherit; font-size: x-small;&quot;&gt;# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0c:29:0f:94:93&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: inherit; font-size: x-small;&quot;&gt;# PCI device 0x1022:0x2000 (pcnet32)&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0c:29:93:48:14&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: inherit; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;2. Vamos a editar el archivo anterior, realizando los siguientes paso:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;- Cambios la dirección f&lt;/span&gt;ísica (ATTR{address}) de eth0 por la de eth1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&amp;nbsp;- Borramos la entrada relacionada con eth1 (las últimas 3 lineas)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&amp;nbsp;- Después de realizar este ajuste, el archivo debió quedar algo como esto:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;[root@ftp ~]# less /etc/udev/rules.d/70-persistent-net.rules&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# This file was automatically generated by the /lib/udev/write_net_rules&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# program, run by the persistent-net-generator.rules rules file.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;#&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# You can modify it, as long as you keep each rule on a single&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;# line, and change only the value of the NAME= key.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;code style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #666666; font-family: monospace;&quot;&gt;00:0c:29:93:48:14&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&amp;nbsp;- Guardamos los cambio.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;3. Realizar el cambio en el archivo de configuración en el archivo ifcfg-eth0 en la etiqueta de HWADDR y colocamos la que asignamos en el paso anterior (&lt;span style=&quot;font-family: monospace; font-size: 12px; line-height: 17px;&quot;&gt;00:0c:29:93:48:14).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;4. Con lo anterior, estamos solo a un paso. Por último le aplicamos un reboot y si todo salió bien cuando la VM suba ya tendremos RED.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Listo, Ahora solo me queda desearles FELIZ FIESTAS Y UN PROSPERO 2012.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/4176595109244594943/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/mensaje-device-eth0-does-not-seem-to-be.html#comment-form' title='11 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4176595109244594943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4176595109244594943'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/mensaje-device-eth0-does-not-seem-to-be.html' title='Mensaje &quot;Device eth0 does not seem to be present&quot; en VMWARE'/><author><name>Jaime Tovar</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-5949521607747666871</id><published>2011-11-22T11:51:00.002-05:00</published><updated>2012-03-24T03:10:00.591-05:00</updated><title type='text'>Recuperar contraseña root de MySQL con xampp</title><content type='html'>&lt;div&gt;En caso que no recuerde el password de MySQL con xampp el procedimiento es:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Bajar el servicio de lampp&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; /opt/lampp/lampp stop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Iniciar la base de datos en modo skip-grant-tables&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp#&lt;/b&gt; /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql   --skip-grant-tables &amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ingresar a la base de datos&lt;/div&gt;&lt;div&gt;Es importante estar ubicado en la ruta /opt/lampp/bin o ejecutar el mysql con el path completo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; ./mysql -uroot&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Your MySQL connection id is 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Server version: 5.5.16 Source distribution&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Oracle is a registered trademark of Oracle Corporation and/or its&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;affiliates. Other names may be trademarks of their respective&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;owners.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Ingreso a la bd mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;mysql&amp;gt;&lt;/b&gt; use mysql;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Database changed&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Actualizacion del password&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;mysql&amp;gt;&lt;/b&gt; update user set password=PASSWORD(&quot;&lt;span class=&quot;Apple-style-span&quot;&gt;password&lt;/span&gt;&quot;) where User=&#39;root&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Query OK, 2 rows affected (0,15 sec)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Rows matched: 2  Changed: 2  Warnings: 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;mysql&amp;gt;&lt;/b&gt; flush privileges;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Query OK, 0 rows affected (0,02 sec)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;mysql&amp;gt;&lt;/b&gt; quit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Bye&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Matar los proceso de mysqld_safe&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; ps xa | grep mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;15037&lt;/span&gt; pts/0    S+     0:00 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/tmp/mysqld.pid --skip-grant-tables&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;15685&lt;/span&gt; pts/0    Sl+    0:00 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --plugin-dir=/opt/lampp/lib/mysql/plugin --user=nobody --skip-grant-tables --log-error=/opt/lampp/var/mysql/jmanuel.err --pid-file=/tmp/mysqld.pid --socket=/opt/lampp/var/mysql/mysql.sock --port=3306&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; kill -9 15037 15685&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Por ultimo iniciar nuevamente el lampp y probar&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; /opt/lampp/lampp start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Starting XAMPP for Linux 1.7.7...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;XAMPP: Starting Apache with SSL (and PHP5)...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;XAMPP: Starting MySQL...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;XAMPP: Starting ProFTPD...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;XAMPP for Linux started.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;root@jmanuel:/opt/lampp/bin#&lt;/b&gt; ./mysqlshow -uroot -ppassword&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;+--------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;|     Databases      |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;+--------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| information_schema |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| cdcol              |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| mysql              |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| performance_schema |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| phpmyadmin         |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| test               |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;| vtigetr            |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;+--------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/5949521607747666871/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/recuperar-contrasena-root-de-mysql-con.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5949521607747666871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5949521607747666871'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/recuperar-contrasena-root-de-mysql-con.html' title='Recuperar contraseña root de MySQL con xampp'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-7283242795623503122</id><published>2011-11-12T13:11:00.002-05:00</published><updated>2012-03-24T03:10:19.746-05:00</updated><title type='text'>Apache + php + oci8 - sin compilación</title><content type='html'>&lt;div&gt;Procedimiento instalación del modulo oci8 sin compilar el apache y php&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial; font-size: small;&quot;&gt;1. Verificar la arquitectura de hardware&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;b style=&quot;font-family: &#39;courier new&#39;, monospace;&quot;&gt;[root@aplicaciones ~]#&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;, monospace;&quot;&gt; arch&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;i686&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;2. Descargar el grupo de paquetes de desarrollo de Linux&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]#&lt;/b&gt; yum groupinstall &quot;Development Tools&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;3. Descargar los paquetes httpd y php&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]#&lt;/b&gt; yum install php php-pear php-devel httpd  httpd-devel  zlib zlib-devel&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;4. Descargar los paquetes instantclient desde la pagina de oracle&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html&quot;&gt;http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;oracle-instantclient-basic-10.2.0.4-1.i386.rpm&lt;/div&gt;&lt;div&gt;oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm&lt;/div&gt;&lt;div&gt;oracle-instantclient-devel-10.2.0.4-1.i386.rpm&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;5. Instalacion de los paquetes oracle-instantclient&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones home]#&lt;/b&gt; rpm -ihv oracle-instantclient-*&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Preparando...               ########################################### [100%]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;   1:oracle-instantclient-ba########################################### [ 33%]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;   2:oracle-instantclient-de########################################### [ 67%]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;   3:oracle-instantclient-sq########################################### [100%]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;6. Poner adicionar las librerias&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]# &lt;/b&gt;vi /etc/ld.so.conf.d/oracle_client.conf &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;/usr/lib/oracle/10.2.0.4/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;/usr/lib/oracle/10.2.0.4/client/lib&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;7. Ejecutar el comando ld para que las librerias sean tomadas por el sistema&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]#&lt;/b&gt; ldconfig &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;8. Descargar y descomprimir el modulo de oci8&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]#&lt;/b&gt; wget  pecl.php.net/get/oci8-1.2.5.tgz &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones ~]#&lt;/b&gt; tar xvfzp oci8-1.2.5.tgz&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;9. Compilar el modulo&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; phpize &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.4/client/lib/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;10. Adicionar el modulo al httpd y reiniciar el servicio para que se tomen los cambios&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; echo extension=oci8.so &amp;gt; /etc/php.d/oci8.ini&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; /etc/init.d/httpd restart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Parando httpd:                                             [  OK  ]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Iniciando httpd:                                           [  OK  ]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;11. Validación del modulo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; php -m | grep oci&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;oci8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;o desde el navegador&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones oci8-1.2.5]#&lt;/b&gt; cd /var/www/html/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@aplicaciones html]#&lt;/b&gt; vi info.php&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;phpinfo();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Ingresar al link&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;http://localhost/info.php&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Adicionalmente para el cliente, se  cambiaron los siguientes parámetros en apache para asegurar el servicio&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ServerTokens OS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;por&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ServerTokens Prod&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#ExtendedStatus On&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;por&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ExtendedStatus Off&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Alias /error/ &quot;/var/www/error/&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;por&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#Alias /error/ &quot;/var/www/error/&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: arial; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/7283242795623503122/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/apache-php-oci8-sin-compilacion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/7283242795623503122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/7283242795623503122'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/apache-php-oci8-sin-compilacion.html' title='Apache + php + oci8 - sin compilación'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-9190537443395415064</id><published>2011-11-01T08:37:00.002-05:00</published><updated>2012-03-24T03:11:02.217-05:00</updated><title type='text'>Incrementar tamaño de los adjuntos en Zimbra</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Para incrementar o disminuir el tamaño de los adjuntos se deben ejecutar los siguientes comandos:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;1. Ingresar a la maquina como usuario root&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;2. Cambiar de usuario a zimbra&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@correo ~]#&lt;/b&gt; su - zimbra&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;3. Verificar el tamaño actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[zimbra@correo ~]$&lt;/b&gt; zmprov gcf zimbraMtaMaxMessageSize&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;zimbraMtaMaxMessageSize: 10000000&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;4. Modificar el tamaño del adjunto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[zimbra@correo ~]$&lt;/b&gt; zmprov modifyConfig zimbraMtaMaxMessageSize 15728640&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;El tamaño esta dado en bits, para calcular el tamaño en Megas,  se puede ejecutar el siguiente comando:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[zimbra@correo ~]$&lt;/b&gt; echo 15*1024*1024 | bc&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;15728640&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;De donde 15 M sera el tamaño a modificar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;NOTA: Para el cambio en el tamaño de los adjuntos no es necesario reiniciar el servicio, únicamente con cerrar y abrir la session del usuario desde la interface web se toman los cambios, para el caso de Outlook si se toma automático&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/9190537443395415064/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/incrementar-tamano-de-los-adjuntos-en.html#comment-form' title='8 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/9190537443395415064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/9190537443395415064'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/11/incrementar-tamano-de-los-adjuntos-en.html' title='Incrementar tamaño de los adjuntos en Zimbra'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-1649345477581313802</id><published>2011-10-04T11:28:00.001-05:00</published><updated>2012-03-24T03:11:12.108-05:00</updated><title type='text'>Relación de confianza SSH y Rsync</title><content type='html'>El siguiente procedimiento y script nos permite realizar copias de carpetas de forma total e incremental entre dos servidores de forma mas rapida y segura que a traves de un scp y adicionalmente concervando los permisos y atrubutos del servidor de origen.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Lo primero que vamos ha hacer es crear una realacion de confianza por SSH entre los dos servidores lo cual quiere decir que entre servidores y usuarios no se va a solicitar contraseña a traves de ssh en este caso entre los que se va ha realizar la copia de carpetas, para ello se debe ejecutar:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Para este ejemplo se utilizan las maquinas caronte (192.168.0.1) y hades (192.168.0.2) y la copia se realizara desde caronte hacia hades&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Caronte -&amp;gt; Hades&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]# &lt;/b&gt; ssh-keygen -d &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Generating public/private rsa key pair.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Enter file in which to save the key (/root/.ssh/id_rsa): &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Enter passphrase (empty for no passphrase):  ENTER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Enter same passphrase again:  ENTER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Your identification has been saved in /root/.ssh/id_rsa.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;The key fingerprint is:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Una vez generada la llave continuamos con:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recuerde que el carácter ~ en sistemas Linux representa el HOME del usuario, es importante tener en cuenta que este procedimiento genera relaciones de confianza entre maquinas y usuarios, si el procedimiento se genera como root en ambas maquinas, esta relación quedara únicamente entre estos usuarios.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; chmod 400 ~/.ssh/authorized_keys2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Por ultimo se procede a comprimir la carpeta .ssh y pasarla al otro servidor para ser descomprimida en la carpeta /root y el el HOME de usuario con el que se quiera tener esta relación&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; tar cvfzp ssh.tgz /root/.ssh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; scp ssh.tgz 192.168.0.2:/root&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; ssh 192.168.0.2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;b&gt;[root@hades ~]#&lt;/b&gt; tar xvfzp ssh.tgz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Una vez realizados los pasos anteriores, podemos utilizar el siguiente script, en mi caso lo dejo ubicado en la carpeta /usr/local/src &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; vi /usr/local/src/rsync.sh&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# my_rsync.sh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# timm.schenker@urz.uni-heidelberg.de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# IP Destino&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;master=&quot;192.168.1.2&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# Archivos y carpetas a syncronizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;rsync_dirs=&quot;/home/ /var/lib/vmware /opt/WorldOfGoo /chroot/&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;rsync_files=&quot;/etc/issue&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# Lockfile para el control de escritura&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;lockfile_slave=&quot;/var/lock/subsys/mirror.lock&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;lockfile_master=&quot;/var/lock/subsys/my_rsync.lock&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# Syslog&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;slog=&quot;logger -t my_rsync &quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;if [ -e $lockfile_slave ]; then &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; $slog &quot;my_rsync nicht gestartet: $lockfile_slave existiert!&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; exit 1 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;if [ -e $lockfile_master ]; then &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; $slog &quot;my_rsync nicht gestartet: $lockfile_master existiert!&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; exit 1 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;touch $lockfile_master&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;if [ &quot;$(/sbin/ifconfig eth0 | grep $master)&quot; != &quot;&quot; ]; then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; othernode=$slave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; othernode=$master  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;for i in $rsync_dirs; do&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; (rsync --rsh=$(which ssh) -aurlq --delete $i/ $othernode:$i) || {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;   $slog &quot;rsync Fehler bei Verzeichnis $i&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;for i in $rsync_files; do&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; (rsync --rsh=$(which ssh) -aurlq  $i $othernode:$i) || {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;   $slog &quot;rsync Fehler bei Datei $i&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;rm -f $lockfile_master&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;exit 0&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;courier new&#39;; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Basta con cambiar únicamente los parámetros que se encuentran en rojo al inicio del script que son:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;master=&quot;192.168.1.2&quot;  Dirección IP de Hades en este caso o destino donde se va a realizar la copia&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;rsync_dirs=&quot;/home/ /var/lib/vmware /opt/WorldOfGoo /chroot/&quot; Carpetas que se vana sincronizar&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;rsync_files=&quot;/etc/issue&quot; &lt;span class=&quot;Apple-style-span&quot;&gt;archivos que se van a sincronizar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/1649345477581313802/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/10/relacion-de-confianza-ssh-y-rsync.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1649345477581313802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1649345477581313802'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/10/relacion-de-confianza-ssh-y-rsync.html' title='Relación de confianza SSH y Rsync'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-4343155486914668844</id><published>2011-08-19T09:05:00.000-05:00</published><updated>2012-03-24T03:11:43.375-05:00</updated><title type='text'>Adicionar la fecha y la hora en el comando history</title><content type='html'>En algunos casos es importante no solo tener el historial de los comandos que has ejecutado en una consola si no también saber en que hora o que día los ejecutaste, &lt;br /&gt;&lt;br /&gt;Para ello se debe realizar el siguiente procedimiento: &lt;br /&gt;&lt;br /&gt;&lt;b&gt;procedimiento por cada usuario &lt;/b&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; vi /root/.bashrc &lt;br /&gt;# .bashrc &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;# User specific aliases and functions &lt;br /&gt;&lt;br /&gt;alias rm=&#39;rm -i&#39; &lt;br /&gt;alias cp=&#39;cp -i&#39; &lt;br /&gt;alias mv=&#39;mv -i&#39; &lt;br /&gt;alias vi=&#39;vim&#39; &lt;br /&gt;&lt;br /&gt;# Source global definitions &lt;br /&gt;if [ -f /etc/bashrc ]; then &lt;br /&gt;      . /etc/bashrc &lt;br /&gt;fi &lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;export HISTTIMEFORMAT=&quot;%h/%d - %H:%M:%S &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;Este procedimiento se aplicara cuando la se vuelta a ingresar con el usuario o ejecutando el comando:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; source /root/.bashrc &lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Verificar&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; history &lt;br /&gt;&lt;br /&gt;431  Aug/19 - 08:43:11 iptables -n -L -v -t nat &lt;br /&gt;432  Aug/19 - 08:43:11 iptraf &lt;br /&gt;433  Aug/19 - 08:43:11 iptables -n -L -v -t nat &lt;br /&gt;434  Aug/19 - 08:43:11 getenforce &lt;br /&gt;435  Aug/19 - 08:43:11 ifconfig &lt;br /&gt;436  Aug/19 - 08:43:11 ifconfig &lt;br /&gt;437  Aug/19 - 08:43:11 ifconfig &lt;br /&gt;438  Aug/19 - 08:44:30 vi /root/.bashrc &lt;br /&gt;439  Aug/19 - 08:44:39 source /root/.bashrc &lt;br /&gt;440  Aug/19 - 08:44:41 history &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;si el procedimiento se desea realizar para todos los usuarios,  se adiciona la linea el el archivo /etc/profile en la ultima linea&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@caronte ~]#&lt;/b&gt; vi /etc/profile&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;export HISTTIMEFORMAT=&quot;%h/%d - %H:%M:%S &quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/4343155486914668844/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/08/adicionar-la-fecha-y-la-hora-en-el.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4343155486914668844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4343155486914668844'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/08/adicionar-la-fecha-y-la-hora-en-el.html' title='Adicionar la fecha y la hora en el comando history'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-375409803625435853</id><published>2011-07-18T11:00:00.000-05:00</published><updated>2012-03-24T03:12:06.704-05:00</updated><title type='text'>Zimbra - Enabled services read from cache. Service list may be inaccurate.</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Generalmente cuando se presenta el error: &lt;span class=&quot;Apple-style-span&quot;&gt;Enabled services read from cache. Service list may be inaccurate.&lt;/span&gt; Seguramente es por que tu instalación de Zimbra lleva aproximadamente 1 año de instalada y pasa que el certificado digital creado por defecto a caducado, para ellos se deben generar los siguientes pasas:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@correo ~]#&lt;/b&gt; su - zimbra&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[zimbra@correo ~]$&lt;/b&gt; zmcontrol start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Host correo.e-quarks.com.co&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Unable to determine enabled services from ldap.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Enabled services read from cache. Service list may be inaccurate.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Starting logger...Failed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Starting logswatch...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;zimbra logger service is not enabled!  failed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;Solución&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Como usuario root ejecutar:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@correo ~]#&lt;/b&gt; /opt/zimbra/java/bin/keytool -import -alias root -keystore /opt/zimbra/&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;java/jre/lib/security/cacerts -storepass changeit -file /opt/zimbra/ &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;conf/ca/ca.pem &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/375409803625435853/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/07/zimbra-enabled-services-read-from-cache.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/375409803625435853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/375409803625435853'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/07/zimbra-enabled-services-read-from-cache.html' title='Zimbra - Enabled services read from cache. Service list may be inaccurate.'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-1901443957968169806</id><published>2011-06-23T18:54:00.000-05:00</published><updated>2012-03-24T03:12:31.289-05:00</updated><title type='text'>slapd warning: cannot open /etc/hosts.allow: Too many open files</title><content type='html'>&lt;div&gt;Generalmente cuando ocurre este error, es por que la autenticacion dejo de funcionar, y cuando miramos el archivo /var/log/message se genera un error como el del titulo (&lt;span class=&quot;Apple-style-span&quot;&gt;slapd warning: cannot open /etc/hosts.allow: Too many open files&lt;/span&gt;),  basta con reiniciar el servicio de openldap y el servicio de autenticacion vuelve a funcionar de manera correcta.&lt;/div&gt;&lt;br /&gt;Googleando acerca del este error encontré esta solución &lt;br /&gt;&lt;br /&gt;http://www.sunmanagers.org/pipermail/summaries/2005-March/006226.html &lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Basicamente lo que indican es que es necesario aumentar el parametro idletimeout del ldap &lt;br /&gt;&lt;br /&gt;http://www.zytrax.com/books/ldap/ch6/#idletimeout &lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3 style=&quot;border-bottom-color: rgb(153, 187, 255); border-bottom-style: solid; border-bottom-width: 3px; border-left-color: rgb(153, 187, 255); border-left-style: solid; border-left-width: 0px; border-right-color: rgb(153, 187, 255); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(153, 187, 255); border-top-style: solid; border-top-width: 0px; color: #333366; font-size: 12pt; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;idletimeout&lt;/span&gt;&lt;/h3&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;Format:&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;g-c-s&quot; style=&quot;background-color: #aaccff; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 8pt/normal &#39;Courier New&#39;, monospace; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;idletimeout integer &lt;/span&gt;&lt;/pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;The &lt;b&gt;idletimeout&lt;/b&gt; directive defines the time in seconds after which an idle client bind connection is forcibly terminated (an unbind operation is forced).&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;If no &lt;b&gt;idletimeout&lt;/b&gt; directive is defined or an idletimeout of 0 is used the feature is disabled, that is idle clients bind connections are maintained indefinitely (no unbind operation is forced by the server). Examples:&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;g-c-s&quot; style=&quot;background-color: #aaccff; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 8pt/normal &#39;Courier New&#39;, monospace; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;idletimeout 0 # do not logout idle clients idletimeout 30 # logout idle clients after 30 seconds &lt;/span&gt;&lt;/pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;b&gt;Caution:&lt;/b&gt; This is a server wide value so that all bind connections are affected by it. If this server is either a replication consumer (using the &lt;a class=&quot;t-db&quot; href=&quot;http://www.zytrax.com/books/ldap/ch6/#syncrepl&quot; style=&quot;color: blue; text-decoration: none;&quot;&gt;syncrepl&lt;/a&gt; directive with a type value of&lt;b&gt;refreshAndPersist&lt;/b&gt;) or a provider (using the &lt;a class=&quot;t-db&quot; href=&quot;http://www.zytrax.com/books/ldap/ch6/syncprov.html&quot; style=&quot;color: blue; text-decoration: none;&quot;&gt;overlay syncprov&lt;/a&gt; directive with a one of more consumers with a type of &lt;b&gt;refreshAndPersist&lt;/b&gt;) then it is highly likely that these links will remain idle for prolonged periods of time. Extreme caution should be used when defining the idletimeout directive in either of these conditions because the net effect may be to change such replication connections into type &lt;b&gt;refreshOnly&lt;/b&gt; which may not be a welcome side effect.&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Que  determina el tiempo en segundos después de que cada conexión es terminada por alguna razón, si no se setea este parámetro o se setea en 0 esta característica es como si estuviera desabilitada y en este caso las conexiones cerradas se mantienen indefinidamente o hasta que el servidor es reiniciado &lt;br /&gt;&lt;br /&gt;lo que se debe hacer es setear este parámetro en el archivo /etc/openldap/slapd.conf con el valor: &lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-size: 13px; line-height: 18px;&quot;&gt;&lt;b&gt;[root@e-quarks ~]# &lt;/b&gt;vi /etc/openldap/slapd.conf&lt;/span&gt;&lt;br /&gt;idletimeout 30 &lt;br /&gt;# logout idle clients after 30 seconds &lt;/span&gt;&lt;br /&gt;Reiniciamos el ldap y listo &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;courier new&#39;; font-size: 13px; line-height: 18px;&quot;&gt;&lt;b&gt;[root@e-quarks ~]# &lt;/b&gt;/etc/init.d/ldap restart&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/1901443957968169806/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/slapd-warning-cannot-open-etchostsallow.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1901443957968169806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1901443957968169806'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/slapd-warning-cannot-open-etchostsallow.html' title='slapd warning: cannot open /etc/hosts.allow: Too many open files'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-4001322375245619852</id><published>2011-06-20T15:10:00.000-05:00</published><updated>2012-03-24T03:13:05.124-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="smbpasswd"/><title type='text'>Script de cambio de claves de samba masivo</title><content type='html'>&lt;div&gt;&lt;div&gt;Crear un archivo llamado pass.sh con el siguiente contenido&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; vi pass.sh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#!/usr//bin/expect --&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# wrapper to make passwd(1) be non-interactive&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# username is passed as 1st arg, passwd as 2nd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# Executable only by root&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;set password [lindex $argv 1]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;spawn /usr/bin/smbpasswd [lindex $argv 0]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;expect &quot;password:&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;send &quot;$password\r&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;expect &quot;password:&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;send &quot;$password\r&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;expect eof&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Una vez creado el script se asignan permisos de ejecución&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; chmod 755 pass.sh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Por ultimo para cambiar las claves se ejecuta el siguiente comando&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; ./pass.sh  usuario clave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ejemplo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; ./pass.sh  jmanuel clave123.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;spawn /usr/bin/smbpasswd jmanuel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;New SMB password:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Retype new SMB password:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/4001322375245619852/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/script-de-cambio-de-claves-de-samba.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4001322375245619852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/4001322375245619852'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/script-de-cambio-de-claves-de-samba.html' title='Script de cambio de claves de samba masivo'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-1636824103887619589</id><published>2011-06-07T12:16:00.000-05:00</published><updated>2012-03-24T03:13:18.117-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="acceso denegado"/><category scheme="http://www.blogger.com/atom/ns#" term="samba3"/><category scheme="http://www.blogger.com/atom/ns#" term="symlink"/><title type='text'>Error de acceso a enlaces simbólicos en samba</title><content type='html'>Luego de realizar una actualización a la version 3.4 de samba para el soporte con Windows 7 los links o enlaces simbólicos creados en el sistema operativo daban error de acceso denegado.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(No tiene acceso a \\servidor\carpeta\link. puede que no tenga permisos para utilizar este recurso de red. Póngase en contacto con el administrador de este servidor para comprobar si tiene permisos de acceso.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Acceso denegado.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5615530678858632434&quot; src=&quot;http://4.bp.blogspot.com/-zw0DMAgMFr0/Te5fZmqtTPI/AAAAAAAACro/NNjQzebNTSI/s320/error-links1.PNG&quot; style=&quot;cursor: hand; cursor: pointer; float: left; height: 63px; margin: 0 10px 10px 0; width: 320px;&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;para solucionar dicho error se debe adicionar al archivo de configuración /etc/samba/smb.conf  en las opciones [globales]  los siguientes parametros:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# Enlaces simbolicos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;unix extensions = No&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;follow symlinks = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;wide links = yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Una vez cambiados los parametros es necesario reinicar el servicio de smb, ya que con hacer reload no es sufucuente &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@orleans ~]#&lt;/b&gt; /etc/init.d/smb restart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Verificación de Samba&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@orleans ~]#&lt;/b&gt; rpm -qa | grep samba&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;samba3-winbind-3.4.7-42.el5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;samba3-cifsmount-3.4.7-42.el5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;samba3-3.4.7-42.el5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;samba3-client-3.4.7-42.el5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;samba3-utils-3.4.7-42.el5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/1636824103887619589/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/error-de-acceso-enlaces-simbolicos-en.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1636824103887619589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1636824103887619589'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/06/error-de-acceso-enlaces-simbolicos-en.html' title='Error de acceso a enlaces simbólicos en samba'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-zw0DMAgMFr0/Te5fZmqtTPI/AAAAAAAACro/NNjQzebNTSI/s72-c/error-links1.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-8121574558430138653</id><published>2011-05-17T11:29:00.001-05:00</published><updated>2012-03-24T03:13:49.921-05:00</updated><title type='text'>Recuperar contraseña root de MySQL</title><content type='html'>&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 style=&quot;background-color: inherit; color: #818181; font-size: 26px; font-weight: normal; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Recuperar contraseña root de MySQL&lt;/span&gt;&lt;/h1&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Publicado por admin el 18 de junio de 2008 en &lt;a href=&quot;http://www.codigomaestro.com/category/mysql/&quot; rel=&quot;category tag&quot; style=&quot;background-color: inherit; color: #336699; text-decoration: none;&quot; title=&quot;Ver todas las entradas en MySQL&quot;&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Usted puede recuperar la contraseña del servidor de base de datos MySQL con los siguientes pasos:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Paso 1: Detener cualquier proceso del servidor MySQL.&lt;br /&gt;Paso 2: Iniciar el proceso del servidor MySQL (mysqld) con la opción &lt;strong&gt;–skip-grant-tables&lt;/strong&gt; por lo cual este no preguntará por la contraseña.&lt;br /&gt;Paso 3: Conectar al servidor MySQL como el usuario root&lt;br /&gt;Paso 4: Configurar una nueva contraseña para la nueva contraseña root&lt;br /&gt;Paso 5: Salir y reiniciar el servidor MySQL&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;A continuación están los comandos necesarios para cada uno de los pasos mencionados anteriormente (iniciar sesión como el usuario root):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 1&lt;/strong&gt;: Detener el servicio mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 584px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# /etc/init.d/mysql stop&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Salida:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Stopping MySQL database server: mysqld.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 2&lt;/strong&gt;: Iniciar el servidor MySQL sin contraseña:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 534px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# mysqld_safe --skip-grant-tables&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Salida:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;[1] 5988&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Iniciando el motor de mysqld de las bases de datos desde /var/lib/mysql&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;mysqld_safe[6025]: started&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 3&lt;/strong&gt;: Conectar al servidor mysql usando el cliente mysql:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 534px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# mysql -u root&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Salida:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Bienvenido al monitor de MySQL.  Comandos y con ; o \g.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Your MySQL connection id is 1 to server version: 5.0.21-log&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Tipiar ‘help;’ o ‘\h’ para obtener ayuda. Tipiar ‘\c’ para en vaciar el buffer.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;mysql&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 4&lt;/strong&gt;: Configurar una nueva contraseña del servidor MySQL para el usuario root:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 534px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;mysql&amp;gt; use mysql;&lt;/code&gt;&lt;br /&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;mysql&amp;gt; update user set password=PASSWORD(&quot;NEW-ROOT-PASSWORD&quot;) where User=&#39;root&#39;;&lt;/code&gt;&lt;br /&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;mysql&amp;gt; flush privileges;&lt;/code&gt;&lt;br /&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;mysql&amp;gt; quit&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 5&lt;/strong&gt;: Detener el servidor MySQL:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 534px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# /etc/init.d/mysql stop&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Salida:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Stopping MySQL database server: mysqld&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;STOPPING server from pid file /var/run/mysqld/mysqld.pid&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;mysqld_safe[6121]: ended&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;[1]+  Done                    mysqld_safe –skip-grant-tables&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;strong&gt;Paso # 6&lt;/strong&gt;: Iniciar el servidor MySQL y verificar la contraseña:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #efefef; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; width: 534px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: rgb(240, 240, 240); border-bottom-style: initial; border-bottom-width: initial; border-left-color: rgb(240, 240, 240); border-left-style: initial; border-left-width: initial; border-right-color: rgb(240, 240, 240); border-right-style: initial; border-right-width: initial; border-top-color: rgb(240, 240, 240); border-top-style: initial; border-top-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3pt; padding-left: 3pt; padding-right: 3pt; padding-top: 3pt; text-align: left; vertical-align: top; width: 525px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# /etc/init.d/mysql start&lt;/code&gt;&lt;br /&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;# mysql -u root -p&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #4d4e4e; font-size: 9pt; line-height: 13px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;code style=&quot;font-size: 11px;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 14px;&quot;&gt;&lt;code style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;http://www.codigomaestro.com/mysql/recuperar-contrasena-root-de-mysql/&quot;&gt;http://www.codigomaestro.com/mysql/recuperar-contrasena-root-de-mysql/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/8121574558430138653/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/05/recuperar-contrasena-root-de-mysql.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/8121574558430138653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/8121574558430138653'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/05/recuperar-contrasena-root-de-mysql.html' title='Recuperar contraseña root de MySQL'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-5908595867979506827</id><published>2011-02-12T16:20:00.000-05:00</published><updated>2012-03-24T03:15:51.704-05:00</updated><title type='text'>Cambiar particiones en Software Raid 1 md raid</title><content type='html'>Semi traducción del articulo: &lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;http://www.css-networks.com/2010/12/how-to-remove-linux-software-raid1-md-raid-on-the-fly-so-that-vmware-converter-works/ ( How to remove Linux software RAID1 (md raid) on-the-fly so that VMWare Converter works )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Alguna vez utilizando el Vmware Convert, intente clonar una maquina con software Raid 1, y el convert siempre sacaba error, por lo cual fue necesario cambiar las particiones de /dev/md1 a /dev/sda1 o /dev/hda1 como generalmente se ven las particiones cuando no tienen RAID, para ello se realizo el siguiente procedimiento:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NOTA: En vista que se supone que estamos trabajando con un RAID 1 donde los discos se encuentran totalmente duplicados, se recomienda antes de iniciar el procedimiento iniciar la maquina con cada uno de los discos de forma independiente y cada uno de ellos debería funcionar, una vez realizada esta prueba, deje únicamente uno de los discos en la maquina, con esto podrá tener la certeza que si algo sale mal podrá poner el disco sobre el cual no se hicieron modificaciones.............. Buena Suerte!!!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Lo primero fue realizar una copia de la configuración de los archivos involucrados&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks ~]#&lt;/b&gt; cd /etc/ &lt;br /&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; mv mdadm.conf  mdadm.conf.default &lt;br /&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; cp grub.conf grub.conf.default &lt;br /&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; cp fstab fstab.default &lt;br /&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; fdisk -l&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;Disk /dev/hda: 160.0 GB, 160041885696 bytes &lt;br /&gt;255 heads, 63 sectors/track, 19457 cylinders &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes &lt;br /&gt;&lt;br /&gt; Device Boot      Start         End      Blocks   Id  System &lt;br /&gt;/dev/hda1   *           1          13      104391   fd  Linux raid autodetect &lt;br /&gt;/dev/hda2              14         271     2072385   fd  Linux raid autodetect &lt;br /&gt;/dev/hda3             272       19457   154111545   fd  Linux raid autodetect &lt;br /&gt;&lt;br /&gt;Disk /dev/hdc: 160.0 GB, 160041885696 bytes &lt;br /&gt;255 heads, 63 sectors/track, 19457 cylinders &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes &lt;br /&gt;&lt;br /&gt; Device Boot      Start         End      Blocks   Id  System &lt;br /&gt;/dev/hdc1   *           1          13      104391   fd  Linux raid autodetect &lt;br /&gt;/dev/hdc2              14         271     2072385   fd  Linux raid autodetect &lt;br /&gt;/dev/hdc3             272       19457   154111545   fd  Linux raid autodetect &lt;br /&gt;&lt;br /&gt;Disk /dev/md2: 157.8 GB, 157810098176 bytes &lt;br /&gt;2 heads, 4 sectors/track, 38527856 cylinders &lt;br /&gt;Units = cylinders of 8 * 512 = 4096 bytes &lt;br /&gt;&lt;br /&gt;Disk /dev/md2 doesn&#39;t contain a valid partition table &lt;br /&gt;&lt;br /&gt;Disk /dev/md1: 2122 MB, 2122055680 bytes &lt;br /&gt;2 heads, 4 sectors/track, 518080 cylinders &lt;br /&gt;Units = cylinders of 8 * 512 = 4096 bytes &lt;br /&gt;&lt;br /&gt;Disk /dev/md1 doesn&#39;t contain a valid partition table &lt;br /&gt;&lt;br /&gt;Disk /dev/md0: 106 MB, 106823680 bytes &lt;br /&gt;2 heads, 4 sectors/track, 26080 cylinders &lt;br /&gt;Units = cylinders of 8 * 512 = 4096 bytes &lt;br /&gt;&lt;br /&gt;Disk /dev/md0 doesn&#39;t contain a valid partition table &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Una vez viendo los discos y sus respectivos RAID, se procede a realizar el cambio en el tipo de partición&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; fdisk /dev/hda&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;The number of cylinders for this disk is set to 19457. &lt;br /&gt;There is nothing wrong with that, but this is larger than 1024, &lt;br /&gt;and could in certain setups cause problems with: &lt;br /&gt;1) software that runs at boot time (e.g., old versions of LILO) &lt;br /&gt;2) booting and partitioning software from other OSs &lt;br /&gt; (e.g., DOS FDISK, OS/2 FDISK) &lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Disk /dev/hda: 160.0 GB, 160041885696 bytes &lt;br /&gt;255 heads, 63 sectors/track, 19457 cylinders &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes &lt;br /&gt;&lt;br /&gt; Device Boot      Start         End      Blocks   Id  System &lt;br /&gt;/dev/hda1   *           1          13      104391   fd  Linux raid autodetect &lt;br /&gt;/dev/hda2              14         271     2072385   fd  Linux raid autodetect &lt;br /&gt;/dev/hda3             272       19457   154111545   fd  Linux raid autodetect &lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;t&lt;/span&gt;&lt;br /&gt;Partition number (1-4): &lt;span class=&quot;Apple-style-span&quot;&gt;1&lt;/span&gt;&lt;br /&gt;Hex code (type L to list codes): &lt;span class=&quot;Apple-style-span&quot;&gt;83&lt;/span&gt;&lt;br /&gt;Changed system type of partition 1 to 83 (Linux) &lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;t&lt;/span&gt;&lt;br /&gt;Partition number (1-4): &lt;span class=&quot;Apple-style-span&quot;&gt;2&lt;/span&gt;&lt;br /&gt;Hex code (type L to list codes): &lt;span class=&quot;Apple-style-span&quot;&gt;82&lt;/span&gt;&lt;br /&gt;Changed system type of partition 2 to 82 (Linux swap / Solaris) &lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;t&lt;/span&gt;&lt;br /&gt;Partition number (1-4): &lt;span class=&quot;Apple-style-span&quot;&gt;3&lt;/span&gt;&lt;br /&gt;Hex code (type L to list codes): &lt;span class=&quot;Apple-style-span&quot;&gt;83&lt;/span&gt;&lt;br /&gt;Changed system type of partition 3 to 83 (Linux) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Disk /dev/hda: 160.0 GB, 160041885696 bytes &lt;br /&gt;255 heads, 63 sectors/track, 19457 cylinders &lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes &lt;br /&gt;&lt;br /&gt; Device Boot      Start         End      Blocks   Id  System &lt;br /&gt;/dev/hda1   *           1          13      104391   83  Linux &lt;br /&gt;/dev/hda2              14         271     2072385   82  Linux swap / Solaris &lt;br /&gt;/dev/hda3             272       19457   154111545   83  Linux &lt;br /&gt;&lt;br /&gt;Command (m for help): &lt;span class=&quot;Apple-style-span&quot;&gt;wq&lt;/span&gt;&lt;br /&gt;The partition table has been altered! &lt;br /&gt;&lt;br /&gt;Calling ioctl() to re-read partition table. &lt;br /&gt;&lt;br /&gt;WARNING: Re-reading the partition table failed with error 16: Device or resource busy. &lt;br /&gt;The kernel still uses the old table. &lt;br /&gt;The new table will be used at the next reboot. &lt;br /&gt;Syncing disks. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Luego de realizar el cambio en el tipo de particiones sobre los discos, se procede a cambiar el archivo /etc/fstab para que este vea los cambios&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; vi /etc/fstab&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;/dev/hda3                /                       &lt;span class=&quot;Apple-style-span&quot;&gt;ext3&lt;/span&gt;    defaults        1 1 &lt;br /&gt;/dev/hda1                /boot                   &lt;span class=&quot;Apple-style-span&quot;&gt;ext3&lt;/span&gt;    defaults        1 2 &lt;br /&gt;tmpfs                   /dev/shm                tmpfs   defaults        0 0 &lt;br /&gt;devpts                  /dev/pts                devpts  gid=5,mode=620  0 0 &lt;br /&gt;sysfs                   /sys                    sysfs   defaults        0 0 &lt;br /&gt;proc                    /proc                   proc    defaults        0 0 &lt;br /&gt;/dev/hda2                swap                    swap    defaults        0 0 &lt;/span&gt;&lt;br /&gt;Luego en el archivo del gestor de arranque también se deben modificar las particiones para que no las vea como md0 si no como sda o hda &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; vi grub.conf&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;# grub.conf generated by anaconda &lt;br /&gt;# &lt;br /&gt;# Note that you do not have to rerun grub after making changes to this file &lt;br /&gt;# NOTICE:  You have a /boot partition.  This means that &lt;br /&gt;#          all kernel and initrd paths are relative to /boot/, eg. &lt;br /&gt;#          root (hd0,0) &lt;br /&gt;#          kernel /vmlinuz-version ro root=/dev/md2 &lt;br /&gt;#          initrd /initrd-version.img &lt;br /&gt;#boot=/dev/md0 &lt;br /&gt;default=0 &lt;br /&gt;timeout=5 &lt;br /&gt;splashimage=(hd0,0)/grub/splash.xpm.gz &lt;br /&gt;hiddenmenu &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;title CentOS (2.6.18-194.8.1.el5) &lt;br /&gt;      root (hd0,0) &lt;br /&gt;     kernel /vmlinuz-2.6.18-194.8.1.el5 ro &lt;span class=&quot;Apple-style-span&quot;&gt;root=/dev/hda3&lt;/span&gt; rhgb quiet &lt;br /&gt;     initrd /initrd-2.6.18-194.8.1.el5.img &lt;br /&gt;title CentOS (2.6.18-164.15.1.el5) &lt;br /&gt;     root (hd0,0) &lt;br /&gt;     kernel /vmlinuz-2.6.18-164.15.1.el5 ro &lt;span class=&quot;Apple-style-span&quot;&gt;root=/dev/hda3&lt;/span&gt; rhgb quiet &lt;br /&gt;     initrd /initrd-2.6.18-164.15.1.el5.img &lt;br /&gt;title CentOS (2.6.18-164.el5) &lt;br /&gt;     root (hd0,0) &lt;br /&gt;     kernel /vmlinuz-2.6.18-164.el5 ro &lt;span class=&quot;Apple-style-span&quot;&gt;root=/dev/hda3&lt;/span&gt; rhgb quiet &lt;br /&gt;     initrd /initrd-2.6.18-164.el5.img&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Por ultimo es necesario re generar el archivo initrd, para ello se debe eliminar o mover el archivo actual, con la versión de kernel actual &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks etc]#&lt;/b&gt; cd /boot&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks boot]#&lt;/b&gt; mv  initrd-`uname -r`.img   initrd-`uname -r`.img.backup&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks boot]#&lt;/b&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #4e4e4e; line-height: 19px;&quot;&gt;mkinitrd /boot/initrd-`uname -r`.img `uname -r`&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;[root@e-quarks boot]#&lt;/b&gt; ls -ltr # para garantizar que el ultimo initrd sea el de la fecha actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Reiniciar la maquina y probar&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/5908595867979506827/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/02/cambiar-particiones-en-software-raid-1.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5908595867979506827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5908595867979506827'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/02/cambiar-particiones-en-software-raid-1.html' title='Cambiar particiones en Software Raid 1 md raid'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-5365420970889987345</id><published>2011-02-03T23:26:00.000-05:00</published><updated>2012-03-24T03:16:07.112-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>kernel panic insmod: error inserting &#39;/lib/ips.ko&#39;</title><content type='html'>En la migracion de una maquina física IBM a una maquina virtual con Vmware tuve problemas para realizarlo a través de VmWare Convert por lo cual se procedió a realizarlo con Acronix y Clonezilla pero al finalizar la migracion se generaba el siguiente error:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &#39;courier new&#39;; font-size: 85%;&quot;&gt;(insmod: error inserting &#39;/lib/ips.ko&#39;: -1 No such device)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_jMA4zGwI224/TUuA2K144kI/AAAAAAAACrA/begMqTgUzQU/s1600/kernel.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5569687032285422146&quot; src=&quot;http://2.bp.blogspot.com/_jMA4zGwI224/TUuA2K144kI/AAAAAAAACrA/begMqTgUzQU/s320/kernel.png&quot; style=&quot;cursor: pointer; float: left; height: 200px; margin: 0pt 10px 10px 0pt; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dicho error se genera por que la maquina fisica una tarjeta controladora ServRaidLx IBM controller el cual utiliza un driver llamado ips y el Raid de Vmware emula el driver llamado mptscsih&lt;br /&gt;&lt;br /&gt;para solucionar este incidente se deben generar los siguientes pasos:&lt;br /&gt;&lt;br /&gt;iniciar la maquina con un CD de Red Hat / CentOS, no importa la versión&lt;br /&gt;&lt;br /&gt;al iniciar seleccionar la opción de linux rescue y llegar hasta la consola una vez en consola ejecutar:&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel ~]#&lt;/span&gt; chroot /mnt/sysimage&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel ~]#&lt;/span&gt; vi /etc/modprobe.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;cambiar&lt;br /&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;alias scsi_hostadapter &lt;span style=&quot;color: red;&quot;&gt;ips&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;por&lt;br /&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;alias scsi_hostadapter &lt;span style=&quot;color: red;&quot;&gt;mptscsih&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;una vez realizado dicho cambio se debe generar la imagen del kernel (initrd) por la cual esté booteando el sistema por defecto&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel ~]# &lt;/span&gt;more /etc/grub.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;default=0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;timeout=5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;splashimage=(hd0,0)/grub/splash.xpm.gz&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;hiddenmenu&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;title CentOS (2.6.18-194.32.1.el5PAE)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;root (hd0,0)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;kernel /vmlinuz-2.6.18-194.32.1.el5PAE ro root=LABEL=/ rhgb quiet&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;initrd /initrd-&lt;/span&gt;&lt;span style=&quot;color: red; font-family: arial;&quot;&gt;2.6.18-194.32.1.el5PAE&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;.img&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Una vez conocida la version ejecutar:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; font-size: 85%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel ~]#&lt;/span&gt; mkinitrd /tmp/initrd.img &lt;span style=&quot;color: red;&quot;&gt;2.6.18-194.32.1.el5PAE&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel ~]# &lt;/span&gt;cd /boot&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel boot ]# &lt;/span&gt;mv initrd-2.6.18-194.32.1.el5PAE.img initrd-2.6.18-194.32.1.el5PAE.img.old&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel boot ]# &lt;/span&gt;cp /tmp/initrd.img /boot/initrd-2.6.18-194.32.1.el5PAE.img&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@jmanuel boot ]# &lt;/span&gt;reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Fuentes&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;http://communities.vmware.com/message/1207455&lt;br /&gt;http://www.linuxquestions.org/questions/red-hat-31/install-rhel4-from-a-ghost-under-vmware-722248/&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/5365420970889987345/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/02/kernel-panic-insmod-error-inserting.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5365420970889987345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/5365420970889987345'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/02/kernel-panic-insmod-error-inserting.html' title='kernel panic insmod: error inserting &#39;/lib/ips.ko&#39;'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_jMA4zGwI224/TUuA2K144kI/AAAAAAAACrA/begMqTgUzQU/s72-c/kernel.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-1339206353030600469</id><published>2011-01-20T09:40:00.000-05:00</published><updated>2012-03-24T03:16:40.251-05:00</updated><title type='text'>Creacion de particiones mayores a 2TB en Linux</title><content type='html'>Para este caso especifico, comparti un volumen desde una SAN de 11TB a un servidor pero cuando le di formato ext3 este unicamente mostraba 2TB, incluso pense que era por el tamaño de los bloques, asi que cree el sistema de archivos con el parametro mkfs.ext3 -b 4096 pero de igual forma cuando se montaba el volumen unicamente mostraba 2TB en la partición.&lt;br /&gt;&lt;br /&gt;Cuando revise desde fdisk el numero de bloques del disco vs el numero de bloques de la partición son inferiores los de la particion, investigando se indica que con fdisk unicamente se pueden crear particiones de 2TB máximo para lo cual la solución a mi problema fue crear la partición con el comando parted de la siguiente forma:&lt;br /&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;          &lt;style type=&quot;text/css&quot;&gt;p { margin-bottom: 0.21cm; } &lt;/style&gt;  &lt;br /&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt;  parted /dev/sdb&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;GNU Parted 1.8.1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;Using /dev/sdx&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: red; font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;(parted)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;(parted)&lt;/span&gt; mklabel gpt&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;(parted)&lt;/span&gt; mkpart primary 0 3001G&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;(parted)&lt;/span&gt; quit&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt; mkfs.ext3 /dev/sdb1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: courier new; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt; mount /dev/sdb1 /datos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Fuente&lt;/span&gt;:&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;br /&gt;http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/1339206353030600469/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/01/creacion-de-particiones-mayores-2tb-en.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1339206353030600469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/1339206353030600469'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2011/01/creacion-de-particiones-mayores-2tb-en.html' title='Creacion de particiones mayores a 2TB en Linux'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3580804162837307304.post-2321921566605480174</id><published>2010-12-09T15:19:00.000-05:00</published><updated>2012-03-24T03:16:54.048-05:00</updated><title type='text'>Instalacion Emulex en CentOS y RedHat version 5</title><content type='html'>Dos de las marcas de tarjetas HBA&#39;s de fibra que conozco son Qlogic y Emulex, normalmente con las qlogic nunca he tenido ningún conflicto pues el driver ya viene precompilado en la distribución pero hoy tuve un problema con una Emulex y los pasos para poderla complilar fueron:  verificar que se encontrara instalada fisicamente y que el Linux la estuviera reconociendo, para ellos se ejecuto:&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;    [root@bogota ~]# dmesg | grep -i emul &lt;/div&gt;&lt;div&gt;Emulex LightPulse Fibre Channel SCSI driver 8.2.0.33.3p &lt;/div&gt;&lt;div&gt;Copyright(c) 2004-2008 Emulex.  All rights reserved. &lt;/div&gt;&lt;div&gt; &lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;una vez verificado que la tarjeta se encontraba instalada se verifico el modulo del kernel para dicha tarjeta  [root@cosabog13lx002 ~]# vi /etc/sysconfig/hwconf&lt;/div&gt;&lt;div&gt;class: SCSI bus: PCI &lt;/div&gt;&lt;div&gt;detached: 0 &lt;/div&gt;&lt;div&gt;driver: &lt;span style=&quot;color: red;&quot;&gt;lpfc&lt;/span&gt; &lt;/div&gt;&lt;div&gt;desc: &quot;Emulex Corporation LP952 Fibre Channel Host Adapter&quot; &lt;/div&gt;&lt;div&gt;vendorId: 10df &lt;/div&gt;&lt;div&gt;deviceId: f095 &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;subVendorId: 0e11 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;subDeviceId: f095 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;pciType: 1 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;pcidom:    0 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;pcibus:  c &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;pcidev:  1 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;pcifn:  0 &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Luego se verifico que el modulo se encontrara cargado &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;  &lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt; lsmod | grep lpfc &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;lpfc                  291697  0  scsi_transport_fc      37449  1 lpfc scsi_mod              141589  8 lpfc,scsi_dh,sr_mod,sg,scsi_transport_fc,libata,cciss,sd_mod &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Luego se reinicio el modulo para verificar si encontraba los volúmenes asociados pero se presento el siguiente error:  &lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt; rmmod lpfc &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]# &lt;/span&gt;tail -f /var/log/messages &amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;[root@bogota ~]#&lt;/span&gt; modprobe lpfcVerificar las hbas&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Jul 21 10:01:44 orochi kernel: ACPI: PCI interrupt for device 0000:06:02.0 disabled&lt;/div&gt;&lt;div&gt;Jul 21 10:01:44 orochi kernel: ACPI: PCI interrupt for device 0000:06:01.0 disabled&lt;/div&gt;&lt;div&gt;Jul 21 10:01:57 orochi kernel: Emulex LightPulse Fibre Channel SCSI driver 8.2.0.63.3p&lt;/div&gt;&lt;div&gt;Jul 21 10:01:57 orochi kernel: Copyright(c) 2004-2009 Emulex.  All rights reserved.&lt;/div&gt;&lt;div&gt;Jul 21 10:01:57 orochi kernel: PCI: Enabling device 0000:06:01.0 (0150 -&amp;gt; 0152)&lt;/div&gt;&lt;div&gt;Jul 21 10:01:57 orochi kernel: ACPI: PCI Interrupt 0000:06:01.0[A] -&amp;gt; GSI 74 (level, low) -&amp;gt; IRQ 217&lt;/div&gt;&lt;div&gt;Jul 21 10:01:57 orochi kernel: scsi2 :  on PCI bus 06 device 08 irq 217&lt;/div&gt;&lt;div&gt;Jul 21 10:02:01 orochi kernel: PCI: Enabling device 0000:06:02.0 (0150 -&amp;gt; 0152)&lt;/div&gt;&lt;div&gt;Jul 21 10:02:01 orochi kernel: ACPI: PCI Interrupt 0000:06:02.0[A] -&amp;gt; GSI 78 (level, low) -&amp;gt; IRQ 50&lt;/div&gt;&lt;div&gt;Jul 21 10:02:01 orochi kernel: scsi3 :  on PCI bus 06 device 10 irq 50&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; [root@orochi host2]# systool -av -c fc_host&lt;/div&gt;&lt;div&gt;Class = &quot;fc_host&quot;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;  Class Device = &quot;host2&quot;&lt;/div&gt;&lt;div&gt;  Class Device path = &quot;/sys/class/fc_host/host2&quot;&lt;/div&gt;&lt;div&gt;    active_fc4s         = &quot;0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 &quot;&lt;/div&gt;&lt;div&gt;    fabric_name         = &quot;0x0&quot;&lt;/div&gt;&lt;div&gt;    issue_lip           = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt;    maxframe_size       = &quot;2048 bytes&quot;&lt;/div&gt;&lt;div&gt;    node_name           = &quot;0x20000000c94ed73c&quot;&lt;/div&gt;&lt;div&gt;    port_id             = &quot;0x000000&quot;&lt;/div&gt;&lt;div&gt;    port_name           = &quot;0x10000000c94ed73c&quot;&lt;/div&gt;&lt;div&gt;    port_state          = &quot;Linkdown&quot;&lt;/div&gt;&lt;div&gt;    port_type           = &quot;Unknown&quot;&lt;/div&gt;&lt;div&gt;    speed               = &quot;unknown&quot;&lt;/div&gt;&lt;div&gt;    supported_classes   = &quot;Class 3&quot;&lt;/div&gt;&lt;div&gt;    supported_fc4s      = &quot;0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 &quot;&lt;/div&gt;&lt;div&gt;    supported_speeds    = &quot;1 Gbit, 2 Gbit, 4 Gbit&quot;&lt;/div&gt;&lt;div&gt;    tgtid_bind_type     = &quot;wwpn (World Wide Port Name)&quot;&lt;/div&gt;&lt;div&gt;    uevent              = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;    Device = &quot;host2&quot;&lt;/div&gt;&lt;div&gt;    Device path = &quot;/sys/devices/pci0000:00/0000:00:06.0/0000:05:00.0/0000:06:01.0/host2&quot;&lt;/div&gt;&lt;div&gt;      uevent              = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;  Class Device = &quot;host3&quot;&lt;/div&gt;&lt;div&gt;  Class Device path = &quot;/sys/class/fc_host/host3&quot;&lt;/div&gt;&lt;div&gt;    active_fc4s         = &quot;0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 &quot;&lt;/div&gt;&lt;div&gt;    fabric_name         = &quot;0x0&quot;&lt;/div&gt;&lt;div&gt;    issue_lip           = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt;    maxframe_size       = &quot;2048 bytes&quot;&lt;/div&gt;&lt;div&gt;    node_name           = &quot;0x20000000c94eeb04&quot;&lt;/div&gt;&lt;div&gt;    port_id             = &quot;0x000000&quot;&lt;/div&gt;&lt;div&gt;    port_name           = &quot;0x10000000c94eeb04&quot;&lt;/div&gt;&lt;div&gt;    port_state          = &quot;Linkdown&quot;&lt;/div&gt;&lt;div&gt;    port_type           = &quot;Unknown&quot;&lt;/div&gt;&lt;div&gt;    speed               = &quot;unknown&quot;&lt;/div&gt;&lt;div&gt;    supported_classes   = &quot;Class 3&quot;&lt;/div&gt;&lt;div&gt;    supported_fc4s      = &quot;0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 &quot;&lt;/div&gt;&lt;div&gt;    supported_speeds    = &quot;1 Gbit, 2 Gbit, 4 Gbit&quot;&lt;/div&gt;&lt;div&gt;    tgtid_bind_type     = &quot;wwpn (World Wide Port Name)&quot;&lt;/div&gt;&lt;div&gt;    uevent              = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;    Device = &quot;host3&quot;&lt;/div&gt;&lt;div&gt;    Device path = &quot;/sys/devices/pci0000:00/0000:00:06.0/0000:05:00.0/0000:06:02.0/host3&quot;&lt;/div&gt;&lt;div&gt;      uevent              = &lt;store method=&quot;&quot; only=&quot;&quot;&gt;&lt;/store&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;Se procede a descargar el paquete proliant support pack que cuenta con herramientas de escaneo de dispositivos y con esta información es mas fácil asociar los caminos&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;En caso de querer configurar el Proliant Support Pack se puede descargar de los siguientes link y este cuenta con instaladores (sh install&lt;tab&gt;.sh)&lt;/tab&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Red Hat 4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;wget ftp://ftp.hp.com/pub/softlib2/software1/supportpack-linux/p308168486/v43341/psp-8.00.rhel4.i686.en.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Red Hat 5&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;wget ftp://ftp.hp.com/pub/softlib2/software1/supportpack-linux/p1640255777/v61539/psp-8.60.rhel5.i686.en.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;[root@orochi ~]# mkdir ProliantServicePack&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;[root@orochi ~]# tar xfzp psp-8.00.rhel4.i686.en.tar.gz  -C ProliantServicePack/&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;[root@orochi ~]# cd ProliantServicePack/compaq/csp/linux/&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jmanuelcalvo.blogspot.com/feeds/2321921566605480174/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://jmanuelcalvo.blogspot.com/2010/12/instalacion-emulex-en-centos-y-redhat.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/2321921566605480174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3580804162837307304/posts/default/2321921566605480174'/><link rel='alternate' type='text/html' href='http://jmanuelcalvo.blogspot.com/2010/12/instalacion-emulex-en-centos-y-redhat.html' title='Instalacion Emulex en CentOS y RedHat version 5'/><author><name>Jose Manuel Calvo I.</name><uri>http://www.blogger.com/profile/09627644439307861336</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>