drbd on centos 6

General support questions

drbd on centos 6

Postby Jonas » 2012/07/23 20:04:31

Hi everybody!

I'm worked on centos 6.3 with 2.6.32-279.2.1.el6.i686 kernel, and I have install drbd with yum.
My drbd version is drbd-8.4.1-32.el6.i686.

My problem is, when I want load my drbd module, my centos could not find it.
I search all packages available with "yum search drbd". The result of this command his :

drbdlinks.noarch : A program for managing links into a DRBD shared partition
drbd.i686 : Distributed Replicated Block Device.
......
drbd-kmdl-2.6.32-279.el6.i686 : Distributed Redundant Block Device.

So I upgrade my kernel with the last version available, so before I use "modprode brbd" and it's already the same issue.... --> FATAL: Module drbd not found.

My repository are:

atrpms Centos 6 - i386 - ATrpms
atrpms-testing Centos 6 - i386 - ATrpms
base CentOS-6 - Base
epel Extra Packages for Enterprise Linux 5 - i386
extras CentOS-6 - Extras
rpmforge RHEL 6 - RPMforge.net - dag
updates CentOS-6 - Updates


Did you have a great issue for lead and continue to configure the DRBD solution.

Best regard,
Jonas.
Jonas
 
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

drbd on centos 6

Postby toracat » 2012/07/23 20:59:20

drbd-kmdl from ATrpms is kernel version specific, that is, for each kernel update you need to install a corresponding version of the kmdl package.

I recommend you look into drbd from ELRepo ( http://elrepo.org/tiki/kmod-drbd84 ). It is kABI-tracking, meaning it survives kernel updates transparently.
User avatar
toracat
Forum Moderator
 
Posts: 6695
Joined: 2006/09/03 16:37:24
Location: California, US

Re: drbd on centos 6

Postby pschaff » 2012/07/23 21:54:10

Note that ATrpms, EPEL, and RPMforge are mutually incompatible and that mix of 3rd party repos is virtually guaranteed to be problematic. Throwing ELRepo into the mix (without [elrepo-extras]) may or may not make things worse, but neither will it help with conflicts and dependency issues. Use of the yum priorities plugin is recommended. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores. Better yet, disable all 3rd party repos by default and use "yum --enablerepo ..." to install or update from a particular repo.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: drbd on centos 6

Postby Jonas » 2012/07/24 07:49:32

Great,

So I restore my virtual machine and I add repository atrmps and elrepo and I search all packages available and the result is :


============================== N/S Matched: drbd ===============================
drbd83-utils.i686 : Management utilities for DRBD %{version}
drbd84-utils.i686 : Management utilities for DRBD
kmod-drbd83.i686 : drbd83 kernel module(s)
kmod-drbd84.i686 : drbd84 kernel module(s)
drbd.i686 : Distributed Replicated Block Device.
drbd-kmdl-2.6.32-220.13.1.el6.i686 : Distributed Redundant Block Device.
drbd-kmdl-2.6.32-220.13.1.el6.centos.plus.i686 : Distributed Redundant Block
: Device.
drbd-kmdl-2.6.32-220.17.1.el6.i686 : Distributed Redundant Block Device.
drbd-kmdl-2.6.32-220.17.1.el6.centos.plus.i686 : Distributed Redundant Block
: Device.
drbd-kmdl-2.6.32-220.23.1.el6.i686 : Distributed Redundant Block Device.
drbd-kmdl-2.6.32-220.23.1.el6.centos.plus.i686 : Distributed Redundant Block
: Device.
drbd-kmdl-2.6.32-220.4.2.el6.i686 : Distributed Redundant Block Device.
drbd-kmdl-2.6.32-220.7.1.el6.i686 : Distributed Redundant Block Device.
drbd-kmdl-2.6.32-279.el6.i686 : Distributed Redundant Block Device.


I could just install drbd.i686, but I install drbd83-utils or drbd84-utils? and kmod-drbd83 or kmod-drbd84?

I didn't need to install drbd-kmdl-2.6.32-279.el6? My kernel is 2.6.32-279.1.1.el6.

Kind regards,
Jonas
Jonas
 
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Postby TrevorH » 2012/07/24 09:41:32

You would need kmod-drbd83 and drbd83-utils from ELrepo. You also need to make sure that all components of drbd come from the same repository, do not mix and match the kernel module and drbd utilities from different repositories.

I would also recommend the use of 8.3 for the moment as it's more stable than 8.4. 8.4.0 was fairly broken, 8.4.1 has fixed a number of those bugs but even more remain and 8.4.2 is not yet released.

Edit: if you are already using 8.4 then downgrading to 8.3 needs some explicit work done before you remove 8.4 so don't do it without finding out more!
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Postby Jonas » 2012/07/24 10:19:42

Thank for your reply TrevorH,

How I can make sure that all components come from the same repository? If I want use elrepo I do for example : yum install --elrepo? or something like that?

For the drbd8.3 he is available on ELrepo again?

Jonas?
Jonas
 
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Postby TrevorH » 2012/07/24 10:29:52

The easy way to make sure all components come from the same repo is to remove the other repos from your configuration or add include= or exclude= lines to their /etc/yum.repos.d files. You can also use --enablerepo= and/or --disablerepo= parameters to yum for temporary overrides.

Yes, drbd83 is in ELrepo for el6 but please look up to see what you need to do to go backlevel before you uninstall 8.4 as it needs some preparation that can only be done with 8.4 already installed - something about al extents I seem to recall.
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Postby Jonas » 2012/07/24 11:27:07

I did have install drbd, I will restored my virtual machine when my module was not found.
The good way can I do, is install drbd.i686, drbd83-utils.i686, kmod-drbd83.i686 that's it?

I didn't need to install drbd-kmdl-2.6.32-279.el6.i686? (although I do not know what it is.. ^^)
Jonas
 
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Postby TrevorH » 2012/07/24 11:59:57

I think you'll find that you only need 2 packages: from ELrepo you need drbd83-utils and kmod-drbd83 OR from atrpms you need drbd and drbd-kmdl. They are the same thing by different names in the different repos.
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Postby Jonas » 2012/07/24 13:17:43

All rights thank a lot!

Jonas.
Jonas
 
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Next

Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 8 guests