LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2002, 05:58 AM   #1
x2000koh
Member
 
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Rep: Reputation: 15
Lightbulb DRBD installation problems


Hi ! Linux Gurus
I am working on cluster computing by using the DRBD and Heartbeat. I have problems installed DRBD. (Heartbeat is not installed yet !)

I list below all the relevant files (A,B,C and D). and server information for your easy reference.

Errors message appear after I install (untar Zxfv drbd-0.6.1-pre17.tar.gz) the drbd.

A) The error appear as follow after cd/drbd and do make:
-----------------------------------------------------
[root@node_A drbd]# make
make[1]: Entering directory `/usr/local/src/drbd/user'
gcc -c -Wall -DAPI_VERSION=60 -DPRO_VERSION=62 -DREL_VERSION=\"0.6.1-pre17\" drbdsetup.c
gcc -o drbdsetup drbdsetup.o
make[1]: Leaving directory `/usr/local/src/drbd/user'
make[1]: Entering directory `/usr/local/src/drbd/drbd'
gcc -c -D__KERNEL__ -DMODULE -DMODVERSIONS -DCONFIG_MODVERSIONS -include /lib/modules/2.4.7-10/build/include/linux/modversions.h -O2 -Wall -fno-strict-aliasing -mpreferred-stack-boundary=2 -I/lib/modules/2.4.7-10/build/include -DAPI_VERSION=60 -DPRO_VERSION=62 -DREL_VERSION=\"0.6.1-pre17\" drbd_fs.c
gcc -c -D__KERNEL__ -DMODULE -DMODVERSIONS -DCONFIG_MODVERSIONS -include /lib/modules/2.4.7-10/build/include/linux/modversions.h -O2 -Wall -fno-strict-aliasing -mpreferred-stack-boundary=2 -I/lib/modules/2.4.7-10/build/include -DAPI_VERSION=60 -DPRO_VERSION=62 -DREL_VERSION=\"0.6.1-pre17\" drbd_main.c
drbd_main.c:111: unknown field `owner' specified in initializer
drbd_main.c:111: warning: initialization from incompatible pointer type
drbd_main.c:112: field `open' already initialized
drbd_main.c:113: field `release' already initialized
drbd_main.c:113: warning: initialization from incompatible pointer type
drbd_main.c:114: field `ioctl' already initialized
drbd_main.c:115: warning: initialization from incompatible pointer type
make[1]: *** [drbd_main.o] Error 1
make[1]: Leaving directory `/usr/local/src/drbd/drbd'
make: *** [all] Error 2

B) drbd_main.c:111 (the line 111,112,113,114)
----------------
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,40)
STATIC struct block_device_operations drbd_ops =
{
.owner = THIS_MODULE, #line 111
.open = drbd_open, #line 112
.release = drbd_close, #line 113
.ioctl = drbd_ioctl #line 114
};
#else
STATIC struct file_operations drbd_ops =
{
.read = block_read,
.write = block_write,
.ioctl = drbd_ioctl,
.open = drbd_open,
.release = drbd_close,
.fsync = block_fsync
};
#endif

c) Makefile.var
----------------
LINUX = $(shell for S in /lib/modules/$(KERNVER)/build /usr/src/linux /usr/src/$INCLUDE := -I$(LINUX)/include
#INCLUDE := -I$(LINUX)/include -I/usr/src/linux-2.4/arch/um/include/
VERSIONFLAGS := -DAPI_VERSION=$(API_VERSION) -DPRO_VERSION=$(PRO_VERSION)
VERSIONFLAGS += -DREL_VERSION=\"$(REL_VERSION)\"
KERNFLAGS := -D__KERNEL__ -DMODULE
KERNFLAGS += $(shell [ -f $(LINUX)/include/linux/modversions.h ] && echo $KERNFLAGS += -O2 -Wall $(DEBUGFLAGS) $(KAF_$(ARCH)) $(INCLUDE) $(SMPFLAG)

SUBDIRS = user drbd scripts benchmark documentation #testing

D) Informations about my server setting:
----------------------------------------
Red Hat 7.2
kernel-2.4.7-10
drbd-0.6.1-pre17.tar.gz
gcc-2.96-98

Anyone can point out what wrong with it.
You assistant is highly appreciated.

Regards,
x2000koh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
drbd heartbeat saavik Linux - Networking 0 11-29-2005 09:56 AM
DRBD on already installed machine TryingHard Linux - Software 4 04-15-2004 09:13 AM
DRBD + heartbeat kridkom Linux - Software 2 04-13-2004 11:01 AM
drbd + heartbeat kridkom Linux - Networking 1 03-18-2004 01:12 AM
DRBD on Fedora? Phaethar Linux - Software 1 03-13-2004 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration