drbd kernel module and ldirectord

Discussion in 'Installation/Configuration' started by galphanet, May 6, 2008.

  1. galphanet

    galphanet New Member

    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:

    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.
     
  2. falko

    falko Super Moderator

    What's the otput of
    Code:
    updatedb
    locate Makefile_x86.cpu
    What's the output of
    Code:
    ls -l /etc/ha.d/
    ?
     
  3. galphanet

    galphanet New Member

    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.
     
  4. falko

    falko Super Moderator

    What's in ha.cf and haresources?
     
  5. galphanet

    galphanet New Member

    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
     
  6. falko

    falko Super Moderator

    To be honest, I don't see where the error is...
     
  7. galphanet

    galphanet New Member

    Ok, so forget the error with ldirectord.

    Have you any ideas for the drbd module ?
     
  8. falko

    falko Super Moderator

  9. galphanet

    galphanet New Member

    You know, sometime nothing works as expected:

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

Share This Page