LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS + DRBD

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS + DRBD
From: "Dan Brown" <danb@xxxxxx>
Date: Mon, 20 Nov 2006 01:00:45 -0600
I've got a pair of fileservers running DRBD using heartbeat and NFS
(active/passive).  Seeing as how these two NFS servers serve the entire
office, I figured I'd also put Nagios onto this pair (not on the NFS
filesystem) since if they were both down, then everything would be out of
service (so there wouldn't be much point monitoring everything being down ;)
).

The problem I am having seems to be that now that I've got the LVS setup and
running, DRBD will no longer start.  Looking through the /var/log/ha-debug
logs, it appears that none of the DRBD commands ever get a proper start
command.  My haresources file looks like this:

mimir.yggdrasil \
        drbddisk::clients0 \
        Filesystem::/dev/drbd0::/opt/mnt/data::ext3 \
        killnfsd \
        nfs \
        nfslock \
        Delay::3::0 \
        IPaddr2::10.0.0.3/24/eth2/10.0.0.255
mimir.yggdrasil \
        ldirectord \
        LVSSyncDaemonSwap::master \
        IPaddr2::192.168.0.3/24/eth1/192.168.0.255 


After the Delay command,everything in the first section shuts down again. 
Is it not possible to have multiple sections in haresources?  Should
everything be combined into the one section?

 My ha-debug log looks like this:
heartbeat: 2006/11/12_01:21:23 debug: StartNextRemoteRscReq(): child count 1
heartbeat: 2006/11/12_01:21:23 debug: Starting /etc/ha.d/resource.d/drbddisk
clients0 start
heartbeat: 2006/11/12_01:21:23 debug: /etc/ha.d/resource.d/drbddisk clients0
start done. RC=0
heartbeat: 2006/11/12_01:21:23 debug: Starting
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /opt/mnt
/data ext3 start
heartbeat: 2006/11/12_01:21:23 debug: /etc/ha.d/resource.d/Filesystem
/dev/drbd0 /opt/mnt/data ext
3 start done. RC=0
nfsd: no process killed
heartbeat: 2006/11/12_01:21:23 debug: Starting /etc/ha.d/resource.d/killnfsd
start
nfsd: no process killed
heartbeat: 2006/11/12_01:21:23 debug: /etc/ha.d/resource.d/killnfsd  start
done. RC=1
heartbeat: 2006/11/12_01:21:24 debug: Starting /etc/ha.d/resource.d/IPaddr
10.0.0.3/24/eth2 stop
heartbeat: 2006/11/12_01:21:24 debug: /etc/ha.d/resource.d/IPaddr
10.0.0.3/24/eth2 stop done. RC=0
heartbeat: 2006/11/12_01:21:24 debug: Starting /etc/ha.d/resource.d/Delay 3
0 stop
Delay already stopped
heartbeat: 2006/11/12_01:21:24 debug: /etc/ha.d/resource.d/Delay 3 0 stop
done. RC=0
heartbeat: 2006/11/12_01:21:24 debug: Starting /etc/init.d/nfslock  stop
Stopping NFS locking: [FAILED]
Stopping NFS statd: [FAILED]
heartbeat: 2006/11/12_01:21:24 debug: /etc/init.d/nfslock  stop done. RC=0
heartbeat: 2006/11/12_01:21:24 debug: Starting /etc/init.d/nfs  stop
Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: [FAILED]
Shutting down NFS quotas: [FAILED]
Shutting down NFS services:  [  OK  ]
heartbeat: 2006/11/12_01:21:24 debug: /etc/init.d/nfs  stop done. RC=0
heartbeat: 2006/11/12_01:21:24 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:24 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:25 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:25 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:26 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:26 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:27 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:27 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:28 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:28 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:29 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:29 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:30 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:30 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:31 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:31 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:32 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:32 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:33 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:33 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
heartbeat: 2006/11/12_01:21:34 debug: Starting /etc/ha.d/resource.d/killnfsd
stop
nfsd: no process killed
heartbeat: 2006/11/12_01:21:34 debug: /etc/ha.d/resource.d/killnfsd  stop
done. RC=1
nfsd: no process killed
heartbeat: 2006/11/12_01:21:34 debug: Starting
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /opt/mnt/data ext3 stop
heartbeat: 2006/11/12_01:21:35 debug: /etc/ha.d/resource.d/Filesystem
/dev/drbd0 /opt/mnt/data ext3 stop done. RC=0
heartbeat: 2006/11/12_01:21:35 debug: Starting /etc/ha.d/resource.d/drbddisk
clients0 stop
heartbeat: 2006/11/12_01:21:35 debug: /etc/ha.d/resource.d/drbddisk clients0
stop done. RC=0
ldirectord is stopped for /etc/ha.d/ldirectord.cf
heartbeat: 2006/11/12_01:21:35 debug: Starting /etc/init.d/ldirectord  start
Starting ldirectord [  OK  ]
heartbeat: 2006/11/12_01:21:36 debug: /etc/init.d/ldirectord  start done.
RC=0
heartbeat: 2006/11/12_01:21:36 debug: Starting
/etc/ha.d/resource.d/LVSSyncDaemonSwap master start
heartbeat: 2006/11/12_01:21:36 debug: /etc/ha.d/resource.d/LVSSyncDaemonSwap
master start done. RC=0
heartbeat: 2006/11/12_01:21:36 debug: Starting /etc/ha.d/resource.d/IPaddr2
192.168.0.3/24/eth1/192.168.0.255 start
heartbeat: 2006/11/12_01:22:17 debug: Received standby message done from
mimir.yggdrasil in state 0 
heartbeat: 2006/11/12_01:22:17 debug: RscMgmtProc 'go_standby' exited code 0



<Prev in Thread] Current Thread [Next in Thread>