[DRBD-user] create rpm sles10 sp2 8.2.6

Lars Ellenberg lars.ellenberg at linbit.com
Wed Sep 10 18:54:32 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Wed, Sep 10, 2008 at 03:36:30PM +0200, morbus2000 at web.de wrote:
> hello
> 
> we have Problems creating RPM's for drbd 8 on sles10sp2, drbd 8.2.6 for kernel 2.6.16.60_0.21 or 2.6.16.60_0.27.
> 
> we extract the Tarball to /usr/src/drbd-8.2.6/
> # cd /usr/src/linux
> # make mrproper

why would you make mrproper there?
without making sure that the config matches the running kernel?

when using "stock" kernels,
it should be enough to have the "-source" and "-syms" packages
installed, and telling DRBD to "KDIR=/usr/src/linux-bla-obj/arch/flavour"

you should not "make" in the /usr/src/linux at all.

if using a NON-stock (self-built) kernel, make sure you build drbd
against the exact same config as your running kernel.

> # cd /usr/src/drbd-8.2.6/drbd
> # make clean all
> ...
> CC /usr/src/drbd-8.2.6/drbd/drbd.mod.o
> LD [M] /usr/src/drbd-8.2.6/drbd/drbd.ko
> make[1]: Leaving directory `/usr/src/linux-2.6.16.60-0.21-obj/x86_64/smp'
> mv .drbd_kernelrelease.new .drbd_kernelrelease
> Memorizing module configuration ... done.
> >> softlink /lib/modules/2.6.16.60-0.21-smp/build to /usr/src/linux-2.6.16.60-0.21-obj/x86_64/smp
> 
> # cd /usr/src/drbd-8.2.6/
> # make rpm
> ...
> we find an ERROR "Conflicts: km_drbd"
> ...
> dist/RPMS/x86_64/drbd-8.2.6-3.x86_64.rpm
> dist/RPMS/x86_64/drbd-km-2.6.16.60_0.21_smp-8.2.6-3.x86_64.rpm
> 
> when we try install package drbd-8.2.6-3.x86_64.rpm with YaST - OK.
> when we install package drbd-km-2.6.16.60_0.21_smp-8.2.6-3.x86_64.rpm
> get ERROR "There are no installable providers of
> kernel(drivers_connector)==3fa207f05b78df64 for
> drbd-km-2.6.16.60_0.21_smp-8.2.6-3.x86_64[_krpmview_tempoary]"
> 
> is this a bug?
> Can anybody help us, please?

if that all is too much trouble,
have a look at my sig...
 ;)

-- 
: Lars Ellenberg                
: LINBIT HA-Solutions GmbH
: DRBD®/HA support and consulting    http://www.linbit.com

DRBD® and LINBIT® are registered trademarks
of LINBIT Information Technologies GmbH
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list