Koozali.org: home of the SME Server

drbd on 6.0

Mike Costantino

drbd on 6.0
« on: June 19, 2003, 06:08:52 AM »
Has anybody compiled drbd on 6.0 yet?
If not, how about the dev-tools for 6.0 and I will compile (there's a first time for everything) and post drbd for all?

Thanks
Mike

Graeme Fleming

Re: drbd on 6.0
« Reply #1 on: June 19, 2003, 07:28:32 AM »
Quoted from the devinfo list:

Hi List,

i uploaded the devtools for SME 6.0 to:
http://mirror.contribs.org/smeserver/contribs/saco/contrib/devtools_SME6.0/

As allways, install the anaconda rpm with --nodeps option.

I hope everything is complete.


Peter Schubert

Mike Costantino

Re: drbd on 6.0
« Reply #2 on: June 19, 2003, 09:59:33 PM »
OK,
I've installed all of the packages, and got drbd-0.6.4. But when I try to "make" I get the following error:

make[1]: Entering directory /drbd/user'
gcc -c -Wall  -DAPI_VERSION=61 -DPRO_VERSION=62 -DREL_VERSION=\"0.6.4\" drbdsetup.c
drbdsetup.c:41:26: ../drbd/drbd.h: No such file or directory
make[1]: *** [drbdsetup.o] Error 1
make[1]: Leaving directory /drbd/user'
make: *** [all] Error 2

I have never tried to compile anything before, and am sure I'm missing something.

Any help would be great.

Thanks

guestHH

Re: drbd on 6.0
« Reply #3 on: June 20, 2003, 12:07:56 AM »
check your downloaded and untarred drbd package. The error complaints about a file not being present.....

Mike Costantino

Re: drbd on 6.0
« Reply #4 on: June 20, 2003, 12:39:31 AM »
I did not see the file "drbd.h" when I unpacked drbd, so I created an empty file named "drbd.h" and still got the same error. I've also tried other versions of drbd, and they do not seem to contain this file either.

Mike Costantino

Re: drbd on 6.0
« Reply #5 on: June 20, 2003, 02:14:34 AM »
OK,
I was running the smp kernel before, now I'm running uni, and I have a new problem:

make[1]: Entering directory /install/drbd/user'
make[1]: Nothing to be done for all'.
make[1]: Leaving directory /install/drbd/user'
make[1]: Entering directory /install/drbd/drbd'
Makefile:76: *** Version of running kernel and kernel config differ:
  2.4.20-18.7smp
  #include
  You may want to reconfigure to match the running kernel, or
  make KERNVER=2.4.XY LINUX=/path/to/kernel/source
  to override this.  Stop.
make[1]: Leaving directory /install/drbd/drbd'
make: *** [all] Error 2

I have no idea how to "reconfigue" but am a fast learner.

Thanks
Mike

guestHH

Re: drbd on 6.0
« Reply #6 on: June 20, 2003, 02:21:42 AM »
hmmm, take a look here. It's version 0.5.8 of drbd but maybe it will give you more to go on.

I have to update the how-to and components and will as time permits.

Regards,
guestHH

Mike Costantino

Re: drbd on 6.0
« Reply #7 on: June 20, 2003, 02:30:29 AM »
Where?

guestHH

Re: drbd on 6.0
« Reply #8 on: June 20, 2003, 11:49:58 AM »

Mike Costantino

Re: drbd on 6.0
« Reply #9 on: June 20, 2003, 08:23:17 PM »
I have already seen this how-to and am trying to apply the same setup to 6.0, but I need drbd compiled for that kernel (2.4.20-18.7) The one that you have compled will not run with this kernel, or SMP (both things that I need it to do). This is why I am trying to compile it myself.

Thanks
Mike

guestHH

Re: drbd on 6.0
« Reply #10 on: June 21, 2003, 04:08:28 PM »
Well, i've compiled drbd 0.6.4 for SME 6.0 (single processor)

It's over at:
http://mirror.contribs.org/smeserver/contribs/star/mitel/SME60/drbd_064/

Hope it helps

Mike Costantino

Re: drbd on 6.0
« Reply #11 on: June 21, 2003, 10:42:17 PM »
I downloaded it, and tried to compile it (it did not seem to be pre-compiled like the zip file that you inluded in your exellent how-to) but I am still getting the kernel version error:
Makefile:76: *** Version of running kernel and kernel config differ:
  2.4.20-18.7
  #include

I guess I am in need of a good tutorial on compiling software ;-)

guestHH

Re: drbd on 6.0
« Reply #12 on: June 22, 2003, 04:05:27 AM »
It _is_ compiled.

You have to copy the corect binaries to the correct place.
Take a look at you untared version and the one you've downloaded. You will find additional (compiled) files in every directory.

My previous post tells exactly what i've done. To see what a 'make install' would do, take a look at every Makefile in every directory for the exact location where the compiled file would be placed.

You've got it all, just a little more reading and understanding. Which ofcource I understand for I started a while back just like you did and benefited from advice, suggestions, instructions from all the other guys and galls over here ;-)

Anyway, the files compiled files are there (what you have downloaded) you just have to figure out where to place them. This will be included inmy next how-to just like in the previous one.

Regards,
guestHH

guestHH

Re: drbd on 6.0
« Reply #13 on: June 23, 2003, 05:24:17 PM »
Did it help you?

Mike Costantino

Re: drbd on 6.0
« Reply #14 on: June 23, 2003, 11:18:09 PM »
I tried but was unable to find "drbd.o" or its equivilent, and decided that I was getting too bogged down with this, so I installed 5.5 and put the cluster back together, so I can work on failover of all services in server-gateway mode.

Thanks for all of your help.

Mike