Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Mike Costantino 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
-
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
-
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
-
check your downloaded and untarred drbd package. The error complaints about a file not being present.....
-
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.
-
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
-
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
-
Where?
-
Good question... :-(
http://www.star-support.com/downloads/mitel/contrib/Linux-HA/
Sorry ;-)
-
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
-
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
-
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 ;-)
-
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
-
Did it help you?
-
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
-
Mike,
Any chance you would like to share your cluster set-up?
I would love to see a production example explained.
Please e-mail me directly.
-guestHH
-
Actually it is the setup that you describe in your how-to, but instead of server only, I am using server-gateway. So basically the setup is the same, except drbd is using eth2, and eth1 is the WAN and eth0 is LAN. I haven't had much time to figure out if I can get two virtual IP's working (one for LAN and one for WAN) so at this point it is just a primary server hosting http,mail, etc and a secondary server as a backup (different IP) The virtual IP is only on the LAN. If you have any suggestions or insights, I would really appreciate the help ;-)
Mike
P.S. this setup is NOT in production yet.