systemadmin.es > Clustering > Haciendo trampas para instalar heartbeat en RHEL

Haciendo trampas para instalar heartbeat en RHEL

Tal y como podemos encontrar en la documentación para instalar heartbeat en RHEL 6, si no queremos obtener la versión de pago podemos instalar la versión de CentOS mediante su repositorio dejándolo deshabilitado (sino transformaríamos poco a poc, a medida que saliesen updates, una RHEL en una CentOS):

[centos-6-base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
enabled=0
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

El problema que nos encontraremos será el siguiente:

# yum install --enablerepo=centos-6-base heartbeat
Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. 6Server is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6Server/centos-6-base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos-6-base. Please verify its path and try again

Si nos fijamos en el path que nos indica:

removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6Server/centos-6-base/mirrorlist.txt

En CentOS no existe el concepto “6Server“, “6Client” o “6Workstation“, todo es 6, por lo que deberemos modificar el repositorio eliminando la variable y añadiendo únicamente 6:

[centos-6-base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
enabled=0

A continuación deberemos importar la clave pública:

# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

Y ya podremos instalar paquetes de CentOS en RHEL simplemente habilitando el repositorio centos-6-base:

# yum install --enablerepo=centos-6-base heartbeat cluster-glue resource-agents pacemaker 

(...)

Dependencies Resolved

=====================================================================================================================================================
 Package                                    Arch                       Version                               Repository                         Size
=====================================================================================================================================================
Installing:
 cluster-glue                               x86_64                     1.0.5-6.el6                           centos-6-base                      71 k
 heartbeat                                  x86_64                     3.0.4-2.el6                           epel                              161 k
 pacemaker                                  x86_64                     1.1.10-14.el6                         centos-6-base                     424 k
Installing for dependencies:
 cluster-glue-libs                          x86_64                     1.0.5-6.el6                           centos-6-base                     116 k
 clusterlib                                 x86_64                     3.0.12.1-59.el6                       centos-6-base                     103 k
 corosync                                   x86_64                     1.4.1-17.el6                          centos-6-base                     208 k
 corosynclib                                x86_64                     1.4.1-17.el6                          centos-6-base                     187 k
 heartbeat-libs                             x86_64                     3.0.4-2.el6                           epel                              263 k
 libibverbs                                 x86_64                     1.1.7-1.el6                           centos-6-base                      45 k
 libqb                                      x86_64                     0.16.0-2.el6                          centos-6-base                      70 k
 librdmacm                                  x86_64                     1.0.17-1.el6                          centos-6-base                      56 k
 libtool-ltdl                               x86_64                     2.2.6-15.5.el6                        centos-6-base                      44 k
 libxslt                                    x86_64                     1.1.26-2.el6_3.1                      centos-6-base                     452 k
 pacemaker-cli                              x86_64                     1.1.10-14.el6                         centos-6-base                     186 k
 pacemaker-cluster-libs                     x86_64                     1.1.10-14.el6                         centos-6-base                      73 k
 pacemaker-libs                             x86_64                     1.1.10-14.el6                         centos-6-base                     417 k
 perl-TimeDate                              noarch                     1:1.16-11.1.el6                       centos-6-base                      34 k

Transaction Summary
=====================================================================================================================================================
Install      17 Package(s)

Total download size: 2.8 M
Installed size: 8.0 M
Is this ok [y/N]: 

Podemos apreciar que vamos a necesitar el repositorio EPEL para obtener algunos de los paquetes necesarios

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>