Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th May 2008, 23:00
galphanet galphanet is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default drbd kernel module and ldirectord

Hello,
Before I'm going really crazy, I just need your help...

I've 2 servers with deban etch and drbd installed with apt-get (backports).
Everything is working well with the default kernel (2.6.18) but I've 8 Go ram on the servers.
So I recompiled a new kernel and headers. It works well but I can't load the drbd plugin and I can't compile it with "m-a a-i drbd8-source". The error is "cannot found Makefile_x86.cpu"

So is there any chance to have my 8 Go Ram an drbd ?

the second thing is about ldirectord:
When I start heartbeat, I've this error:
Quote:
unknown error at line 44:

there is my /etc/ha.d/ldirectord.cf:

Code:
# Syntax: http://linux.die.net/man/8/ldirectord


checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=no

# Virtual Server for HTTP
virtual=xxx.yyy.zzz.f67:80
        real=xxx.yyy.zzz.f64:80 masq
        real=xxx.yyy.zzz.f65:80 masq
        fallback=127.0.0.1:80 masq
        service=http
        request="status.php"
        receive="OK"
        scheduler=rr
        protocol=tcp
        checktype=negotiate

# Virtual Service for HTTPS
virtual=xxx.yyy.zzz.f67:443
        real=xxx.yyy.zzz.f64:80 masq
        real=xxx.yyy.zzz.f65:80 masq
        service=https
        request="status.php"
        receive="OK"
        scheduler=rr
        protocol=tcp
        checktype=negotiate

# Virtual Service for IMAP
virtual=xxx.yyy.zzz.f67:143
        real=xxx.yyy.zzz.f64:143 masq
        real=xxx.yyy.zzz.f65:143 masq
        service=imap
 	    #login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        checktype=negotiate
        
# Virtual Service for IMAPs
virtual=xxx.yyy.zzz.f67:995
        real=xxx.yyy.zzz.f64:995 masq
        real=xxx.yyy.zzz.f65:995 masq
        service=imaps
    	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        checktype=negotiate        

# Virtual Service for POP
virtual=xxx.yyy.zzz.f67:110
        real=xxx.yyy.zzz.f64:110 masq
        real=xxx.yyy.zzz.f65:110 masq
        service=pop
 	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        
# Virtual Service for POPs
virtual=xxx.yyy.zzz.f67:993
        real=xxx.yyy.zzz.f64:993 masq
        real=xxx.yyy.zzz.f65:993 masq
        service=pops
	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp        

# Virtual Service for SMTP
virtual=xxx.yyy.zzz.f67:25
        real=xxx.yyy.zzz.f64:25 masq
        real=xxx.yyy.zzz.f65:25 masq
        service=smtp
        scheduler=rr
        #persistent=600
        protocol=tcp
        
# Virtual Service for Secure SMTP
virtual=xxx.yyy.zzz.f67:465
        real=xxx.yyy.zzz.f64:465 masq
        real=xxx.yyy.zzz.f65:465 masq
        service=smtps
        scheduler=rr
        #persistent=600
        protocol=tcp
Where is the problem ?

Many thanks for your help !
Phil.
Reply With Quote
Sponsored Links
  #2  
Old 7th May 2008, 23:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by galphanet
So I recompiled a new kernel and headers. It works well but I can't load the drbd plugin and I can't compile it with "m-a a-i drbd8-source". The error is "cannot found Makefile_x86.cpu"
What's the otput of
Code:
updatedb
locate Makefile_x86.cpu
Quote:
Originally Posted by galphanet

the second thing is about ldirectord:
When I start heartbeat, I've this error:



there is my /etc/ha.d/ldirectord.cf:

Code:
# Syntax: http://linux.die.net/man/8/ldirectord


checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=no

# Virtual Server for HTTP
virtual=xxx.yyy.zzz.f67:80
        real=xxx.yyy.zzz.f64:80 masq
        real=xxx.yyy.zzz.f65:80 masq
        fallback=127.0.0.1:80 masq
        service=http
        request="status.php"
        receive="OK"
        scheduler=rr
        protocol=tcp
        checktype=negotiate

# Virtual Service for HTTPS
virtual=xxx.yyy.zzz.f67:443
        real=xxx.yyy.zzz.f64:80 masq
        real=xxx.yyy.zzz.f65:80 masq
        service=https
        request="status.php"
        receive="OK"
        scheduler=rr
        protocol=tcp
        checktype=negotiate

# Virtual Service for IMAP
virtual=xxx.yyy.zzz.f67:143
        real=xxx.yyy.zzz.f64:143 masq
        real=xxx.yyy.zzz.f65:143 masq
        service=imap
 	    #login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        checktype=negotiate
        
# Virtual Service for IMAPs
virtual=xxx.yyy.zzz.f67:995
        real=xxx.yyy.zzz.f64:995 masq
        real=xxx.yyy.zzz.f65:995 masq
        service=imaps
    	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        checktype=negotiate        

# Virtual Service for POP
virtual=xxx.yyy.zzz.f67:110
        real=xxx.yyy.zzz.f64:110 masq
        real=xxx.yyy.zzz.f65:110 masq
        service=pop
 	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp
        
# Virtual Service for POPs
virtual=xxx.yyy.zzz.f67:993
        real=xxx.yyy.zzz.f64:993 masq
        real=xxx.yyy.zzz.f65:993 masq
        service=pops
	#login="test"
        #passwd="test"
        scheduler=rr
        #persistent=600
        protocol=tcp        

# Virtual Service for SMTP
virtual=xxx.yyy.zzz.f67:25
        real=xxx.yyy.zzz.f64:25 masq
        real=xxx.yyy.zzz.f65:25 masq
        service=smtp
        scheduler=rr
        #persistent=600
        protocol=tcp
        
# Virtual Service for Secure SMTP
virtual=xxx.yyy.zzz.f67:465
        real=xxx.yyy.zzz.f64:465 masq
        real=xxx.yyy.zzz.f65:465 masq
        service=smtps
        scheduler=rr
        #persistent=600
        protocol=tcp
Where is the problem ?

Many thanks for your help !
Phil.
What's the output of
Code:
ls -l /etc/ha.d/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th May 2008, 08:05
galphanet galphanet is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Falko,

Thanks for your reply...

Can't locate the file Makefile_x86.cpu
Maybe there is an option in the kernel compilation menu to create this file ?


Code:
# ls -l /etc/ha.d/
total 29
-rw------- 1 root root   38 2008-05-04 02:03 authkeys
drwxr-xr-x 2 root root   48 2006-11-30 03:21 conf
drwxr-xr-x 2 root root   48 2006-11-30 03:21 cts
-rw-r--r-- 1 root root  280 2008-05-05 21:23 ha.cf
-rwxr-xr-x 1 root root  650 2006-11-30 03:21 harc
-rw-r--r-- 1 root root  229 2008-05-05 21:30 haresources
-rw-r--r-- 1 root root 2237 2008-05-06 17:13 ldirectord.cf
drwxr-xr-x 2 root root  200 2008-04-30 21:30 rc.d
-rw-r--r-- 1 root root  722 2006-11-30 03:21 README.config
drwxr-xr-x 2 root root  648 2008-05-05 21:27 resource.d
-rw-r--r-- 1 root root 3872 2006-11-30 03:21 shellfuncs
If I only put the http section in ldirectord.cf, it starts. But when I add any others lines, won't start.

And I was wondering if I have to choose "masq" or "gate", what is the difference ?

Thanks again !
Phil.
Reply With Quote
  #4  
Old 9th May 2008, 14:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in ha.cf and haresources?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th May 2008, 16:36
galphanet galphanet is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ha.cf:
Code:
logfacility     local0
keepalive 2
#deadtime 30 # USE THIS!!!
deadtime 10
bcast eth1
auto_failback off
node srv1.xxx srv2.xxx
node srv3.xxx
node srv4.xxx
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster
haresources:
Code:
srv1.xxx IPaddr::10.0.200.250/24/eth1 drbddisk::r0 Filesystem::/dev/drbd0::/drbd::xfs nfs-kernel-server
srv1.xxx ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::217.162.2.167/24/eth0/10.0.200.255
thanks
Reply With Quote
  #6  
Old 10th May 2008, 16:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

To be honest, I don't see where the error is...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 10th May 2008, 16:56
galphanet galphanet is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, so forget the error with ldirectord.

Have you any ideas for the drbd module ?
Reply With Quote
  #8  
Old 11th May 2008, 22:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You can try apt-file to find the package that is containing Makefile_x86.cpu: http://www.howtoforge.com/apt_file_debian_ubuntu
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 12th May 2008, 00:56
galphanet galphanet is offline
Junior Member
 
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

You know, sometime nothing works as expected:

Code:
root@srv1:~# apt-file update
root@srv1:~# apt-file search Makefile_x86.cpu
root@srv1:~#
.....
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing NForce4 sound drivers Wraithfire Installation/Configuration 21 16th April 2006 17:30


All times are GMT +2. The time now is 14:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.