UBUNTU 6.10 DRBD HEARTBEAT [fixed]

Alberto Isaac albertoi7 en gmail.com
Vie Mar 2 22:23:53 GMT 2007


I did the following (might not be the most elegant way..)

apt-get install drbd0.7-module-source
m-a a-i drbd0.7-module-source

Now you have the source under /usr/src/modules/drbd. Just editing the two
Makefiles /usr/src/modules/drbd/Makefile and
/usr/src/modules/drbd/drbd/Makefile does not work, because the m-a unpacks
the tar file again.

Thus I edited the two Makefiles and added a SHELL=/bin/bash line somewhere
at the top, removed the /usr/src/drbd0.7.tar.gz file, created a new
drbd0.7.tar.gz with the changed Makefiles 'tar cvzf
drbd0.7.tar.gz/usr/src/modules/drbd/'

After that 'm-a a-i drbd0.7-module-source' works as expected.

I'm not very familiar with the module-assist command, I'm sure there is a
more elegant way to do this.

Listo ya pude compilar drbd y cargarlo como modulo


2007/3/2, Alberto Isaac <albertoi7 en gmail.com>:
>
> Desafortunamente no se de frances pero ..
>
> http://forum.ubuntu-fr.org/viewtopic.php?id=82636&p=2
>
> sudo rm -r /usr/src/modules/drbd
>
> sudo aptitude install drbd0.7-module-source drbd0.7-utils
> sudo dpkg --force-depends --purge linux-headers-2.6.17-10 linux-headers-2.6.17-10-generic
> sudo rm -r /usr/src/linux-headers-2.6.17-10 /usr/src/linux-headers-2.6.17-10-generic
>
> sudo aptitude install linux-headers-2.6.17-10 linux-headers-2.6.17-10-generic
> cd /usr/src
> sudo tar -xzf drbd0.7.tar.gz
> cd /usr/src/linux-headers-2.6.17-10-generic
> sudo make-kpkg --revision $(cat /usr/src/linux-
> headers-2.6.17-10/linux-headers.revision) configure
> sudo make-kpkg --added-modules drbd modules-image
> cd /usr/src
> sudo dpkg -i drbd0.7-module-2.6.17-10-generic_0.7.20-1+2.6.17.1-10.34_i386.deb
> sudo modprobe drbd
>
>
>
>
> siguiendo ese mismo ejemplo llego  ami mismo error:
>
> /usr/bin/make -C drbd KERNEL_SOURCES=/usr/src/linux-
> headers-2.6.17-10-generic MODVERSIONS=detect KERNEL=
> linux-2.6.17-10-generic KDIR=/usr/src/linux- headers-2.6.17-10-generic
> make[3]: Entering directory `/usr/src/modules/drbd/drbd'
>
>     Calling toplevel makefile of kernel source tree, which I believe is in
>     KDIR=/usr/src/linux-headers-2.6.17-10-generic
>
> mv: missing destination file operand after `drbd_buildtag.c{.new,}'
> Try `mv --help' for more information.
> make[3]: *** [drbd_buildtag.c] Error 1
> make[3]: Leaving directory `/usr/src/modules/drbd/drbd'
> make[2]: *** [binary-modules] Error 2
> make[2]: Leaving directory `/usr/src/modules/drbd'
> make[1]: *** [kdist_build] Error 2
> make[1]: Leaving directory `/usr/src/modules/drbd'
> Module /usr/src/modules/drbd failed.
> Hit return to Continue
>
>
>
>
> 2007/3/2, Alberto Isaac <albertoi7 en gmail.com>:
> >
> > alguien sabe ya e intentado desde el source y siguiendo guias con
> > apt-get o con el module-assistant automatic-install
> > drbd0.7-module-source pero no logro compilalrlo
> > ya hice el cat /proc/version
> >
> > y me dice gcc version 4.1.2 20060928
> >
> > cuando cheko la version de mi gcc:
> > gcc --version
> > gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
> > Copyright (C) 2006 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is
> > NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> > PURPOSE.
> >
> > Espero alguien me pueda orientar o decir que puede ser el error al
> > compilar
> >
> >
> > 2007/3/1, Alberto Isaac < albertoi7 en gmail.com>:
> > >
> > > Llevo mas de 3 hrs tratando de compilar el drbd en ubuntu 6.10
> > >
> > > cuando me voy al directorio de modules/drbd
> > > y ejecuto el make
> > > me sale:
> > > make -C drbd drbd_buildtag.c
> > > make[1]: Entering directory `/home/???/Desktop/drbd- 8.0.0/drbd'
> > > make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/drbd'
> > > make[1]: Entering directory `/home/???/Desktop/drbd-8.0.0/user'
> > > cp ../drbd/drbd_buildtag.c drbd_buildtag.c
> > > gcc -g -O2 -c -W -Wall -I../drbd   -c -o drbd_buildtag.o
> > > drbd_buildtag.c
> > > drbd_buildtag.c:1: error: expected identifier or '(' before '-' token
> > > make[1]: *** [drbd_buildtag.o] Error 1
> > > make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/user'
> > > make: *** [tools] Error 2
> > >
> > >
> > > --
> > > - http://albertux.fime.uanl.mx
> > > Atte: Alberto Isaac Ayala Esquivias
> >
> >
> >
> >
> > --
> > - http://albertux.fime.uanl.mx
> > Atte: Alberto Isaac Ayala Esquivias
> >
>
>
>
> --
> - http://albertux.fime.uanl.mx
> Atte: Alberto Isaac Ayala Esquivias
>



-- 
- http://albertux.fime.uanl.mx
Atte: Alberto Isaac Ayala Esquivias
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://lists.ubuntu.com/archives/ubuntu-es/attachments/20070302/0021d11c/attachment.htm 


Más información sobre la lista de distribución ubuntu-es