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

Title: drbd on 6.0
Post 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
Title: Re: drbd on 6.0
Post by: Graeme Fleming 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
Title: Re: drbd on 6.0
Post by: Mike Costantino 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
Title: Re: drbd on 6.0
Post by: guestHH on June 20, 2003, 12:07:56 AM
check your downloaded and untarred drbd package. The error complaints about a file not being present.....
Title: Re: drbd on 6.0
Post by: Mike Costantino 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.
Title: Re: drbd on 6.0
Post by: Mike Costantino 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
Title: Re: drbd on 6.0
Post by: guestHH 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
Title: Re: drbd on 6.0
Post by: Mike Costantino on June 20, 2003, 02:30:29 AM
Where?
Title: Re: drbd on 6.0
Post by: guestHH on June 20, 2003, 11:49:58 AM
Good question... :-(

http://www.star-support.com/downloads/mitel/contrib/Linux-HA/

Sorry ;-)
Title: Re: drbd on 6.0
Post by: Mike Costantino 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
Title: Re: drbd on 6.0
Post by: guestHH 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
Title: Re: drbd on 6.0
Post by: Mike Costantino 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 ;-)
Title: Re: drbd on 6.0
Post by: guestHH 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
Title: Re: drbd on 6.0
Post by: guestHH on June 23, 2003, 05:24:17 PM
Did it help you?
Title: Re: drbd on 6.0
Post by: Mike Costantino 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
Title: Re: drbd on 6.0
Post by: guestHH on July 02, 2003, 12:54:41 PM
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
Title: Re: drbd on 6.0
Post by: Mike Costantino on July 02, 2003, 07:58:37 PM
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.