[DRBD-user] Almost there...

Faria digolinopage at yahoo.com.br
Tue Aug 19 15:35:29 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

I have many problems with DRBD+Hearbeat. 
But now, I made a links of resources (samba,sldap,nscd)in /etc/ha.d/resource.d, the nodes are syncronized
with DRBD, one with primary and other secondary:

root at ubuntu-cluster2:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster2, 2008-08-15 11:04:48
 0: cs:SyncSource st:Primary/Secondary ds:UpToDate/Inconsistent C r---
    ns:7716 nr:0 dw:4 dr:7729 al:0 bm:4 lo:0 pe:1 ua:0 ap:0 oos:473516
	[>....................] sync'ed:  2.6%

root at ubuntu-cluster1:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster1, 2008-08-15 11:03:03
 0: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate C r---
    ns:24 nr:556924 dw:556916 dr:51 al:1 bm:37 lo:1 pe:0 ua:1 ap:0 oos:465452
	[>....................] sync'ed:  4.3% (465452/481196)K
	finish: 0:19:23 speed: 352 (320) K/sec

I to place DRBD start before Heartbeat.  
In my rc.local (master): drbdadm primary all
In my rc.local (slave): drbdadm secondary all
 
#/etc/ha.d/haresources
ubuntu-cluster2 IPaddr::192.168.1.155/24/eth0:0/192.168.1.255
ubuntu-cluster2  drbddisk::r0 Filesystem::/dev/drbd0::/home::ext3 192.168.1.155 samba slapd nscd

All services are acquired for slave, but the device /dev/drbd0 is not mount, see the logs below:   

#AFTER HALT THE MASTER LOGS OF SLAVE
Aug 19 10:03:08 ubuntu-cluster1 kernel: [ 1654.329058] drbd0: peer( Secondary -> Primary ) 
Aug 19 10:04:18 ubuntu-cluster1 kernel: [ 1724.099739] drbd0: peer( Primary -> Secondary ) 
Aug 19 10:04:25 ubuntu-cluster1 kernel: [ 1731.445647] eth1: link down
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.733049] drbd0: peer( Secondary -> Unknown ) conn( SyncTarget -> NetworkFailure ) pdsk( UpToDate -> DUnknown ) 
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.733066] drbd0: asender terminated
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.733070] drbd0: Terminating asender thread
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.733695] drbd0: Writing meta data super block now.
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748917] drbd0: tl_clear()
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748924] drbd0: Connection closed
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748935] drbd0: conn( NetworkFailure -> Unconnected ) 
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748940] drbd0: receiver terminated
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748945] drbd0: receiver (re)started
Aug 19 10:04:35 ubuntu-cluster1 kernel: [ 1741.748951] drbd0: conn( Unconnected -> WFConnection ) 

heartbeat: 2008/08/19_10:04:47 info: Running /etc/ha.d/resource.d/drbddisk r0 start
heartbeat: 2008/08/19_10:04:52 ERROR: Return code 1 from /etc/ha.d/resource.d/drbddisk
heartbeat: 2008/08/19_10:04:52 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /home ext3 start
heartbeat: 2008/08/19_10:04:52 ERROR: Couldn't mount filesystem /dev/drbd0 on /home
heartbeat: 2008/08/19_10:04:52 ERROR: Return code 1 from /etc/ha.d/resource.d/Filesystem
heartbeat: 2008/08/19_10:04:52 info: Running /etc/init.d/samba  start
heartbeat: 2008/08/19_10:04:52 info: Running /etc/init.d/slapd  start
heartbeat: 2008/08/19_10:04:54 info: Running /etc/init.d/nscd  start
heartbeat: 2008/08/19_10:04:54 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired
heartbeat: 2008/08/19_10:04:54 info: mach_down takeover complete.
heartbeat: 2008/08/19_10:04:54 info: mach_down takeover complete for node ubuntu-cluster2.

What I can to do ?

Best regards,

Faria


      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses



More information about the drbd-user mailing list