Working in the installation of a cluster of post high availability (HA high availability cluster or) under disk on the network (DRBD - network RAID-1) on CentOS Linux.
During the installation of the software I had some problems or conflicts when you install version of the module drbd Kernel, apparently handling units yum this in its infancy compared with the apt, for some strange reason the image of the updated kernel had conflicts with the drbd of modules. After I share with you my solution;
To install the heartbeat, with the application of drbd and the respective kernel module type;
[root @ mail01 ~] # yum install kmod-drbd heartbeat drbd Total download size: 17 M Is this ok [y / N]: Y Downloading Packages: (1 / 8): heartbeat-2.1.3-3. 100% |=========================| 1.7 MB 01:45 (2 / 8): kernel-2.6.18-53.1 100% |=========================| 13 MB 07:51 (3 / 8): kmod-drbd-8.0.11-1 100% |=========================| 797 kB 00:17 (4 / 8): heartbeat-pils-2.1 100% |=========================| 213 kB 00:04 (5 / 8): drbd-8.0.11-1.el5. 100% |=========================| 134 kB 00:02 (6 / 8): heartbeat-stonith-100% |=========================| 311 kB 00:06 (7 / 8): PyXML-0.8.4-4.i386 100% |=========================| 1.1 MB 01:09 (8 / 8): drbd82-8.2.5-1.el5 100% |=========================| 141 kB 00:04 Running Transaction Test Finished Transaction Test
Several lines later, after resolving dependencies;
Check Transaction Failed: package kernel-2.6.18-53.1.19.el5 (which is newer than kernel-2.6.18-53.1.14.el5) is already installed file / etc / drbd.conf conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / etc / rc.d / init.d / drbd conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / sbin / drbdadm conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / sbin / drbdmeta conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / sbin / drbdsetup conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man5/drbd.conf.5.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man8/drbd.8.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man8/drbdadm.8.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man8/drbddisk.8.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man8/drbdmeta.8.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos file / usr/share/man/man8/drbdsetup.8.gz conflicts between attempted installs of drbd82-8.2.5-1.el5.centos and drbd-8.0.11-1.el5.centos Error Summary -------------
After the error read well, I decided to delete the updated version of the kernel and thus return to the previous one.
[root @ mail01 ~] # yum erase kernel-2.6.18-53.1.19.el5 Running Transaction Removing: kernel ######################### [1 / 1] Removed: kernel.i686 0:2.6.18-53.1.19. El5 Complete!
After the downgrade of the kernel, I do not remember well, but I recommend to restart so boot with the old kernel. Already we are running the version of the kernel of CentOS desired, proceed to install the DRBD module, keyboard;
[root @ mail01 ~] # yum install kmod-drbd heartbeat Installed: heartbeat.i386 0:2.1.3-3. El5.centos kmod-drbd.i686 0:8.0.11-1.2.6.18 _53.1.14.el5 Dependency Installed: PyXML.i386 0:0.8.4-4 drbd.i386 0:8.0.11-1. El5.centos heartbeat-pils.i386 0:2.1.3-3. El5.centos heartbeat-stonith.i386 0: 2.1.3-3.el5.centos kernel.i686 0:2.6.18-53.1.14. El5 Complete!
Starting DRBD
Now that we have inserted the module into the kernel proper, try to run the service of DRBD.
[root @ mail01 ~] # service drbd start / etc / drbd.conf: 20: in resource r0, on mail01 (... ...) mail02 on (... ): There are multiple host sections for the peer. Maybe misspelled local host name 'mail02.guatewireless.org'? / etc / drbd.conf: 20: in resource r0, there is no host section for this host. Missing 'on mail02.guatewireless.org {...}'? Starting DRBD resources: / etc / drbd.conf: 20: in resource r0, on mail01 (... ...) mail02 on (... ): There are multiple host sections for the peer. Maybe misspelled local host name 'mail02.guatewireless.org'? / etc / drbd.conf: 20: in resource r0, there is no host section for this host. Missing 'on mail02.guatewireless.org {...}'? Can not load the drbd module.
The error Can not load the drbd module is not to panic, simply DRBD Service can not find or resolve the name of mail02. Edit / etc / hosts and added mail01 and mail02 so that it can be resolved.
With the change earlier reboot the server and tried to ping. If one exists, and we can lift the service of DRBD, typing;
[root @ mail01 ~] # service drbd start --== Thank you for participating in the Global usage survey ==-- The server's response is: In the future drbdadm will only contact you when usage.drbd.org update DRBD or when you use 'drbdadm create-md'. Of course it will continue to ask you for confirmation as long as' usage-count is at its default value of 'ask'. Just press [enter] to continue: Ready ... Starting DRBD resources: [d (r0) s (r0) n (r0)].
To see if the DRBD is running correctly
[root @ node1 etc] watch-n 1 # cat / proc / drbd Version: 8.0.11 (api: 86/proto: 86) GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by buildsvn @ c5-i386-build, 2008-03-09 10:26:33 1: cs: Connected st: Primary / Secondary ds: uptodate / uptodate C r --- ns: 1064988 nr: 0 dw: 13,160 dr: 1413581 at: 103 bm: 480 it: 0 pe: 0 ua: 0 pt: 0 resync: used: 0 / 31 hits: 66066 misses: 295 Starving: 0 dirty: 0 changed: 295 act_log: used: 0 / 257 hits: 3187 misses: 111 Starving: 0 dirty: 8 changed: 103
More info | Centos HA-Drbd
Popularity: 5% [?]
A comment to the Center DRBD Kernel conflicts "
Trackback URI | Comments RSS







on 02 Oct 2008 at 10:49 am # fher98
For a more updated version of the running if we Centos kernel 2.6.18-92.1.13.el5 is necessary to remove
yum erase kernel-2.6.18-92.1.13.el5
Instead of kernel-2.6.18-53.1.19.el5, as he says in the article.
[Reply]