Hi all !
I have installed drbd-0.5.7 and heartbeat in a RH 6.2 system with 2.2.16-3
kernel . I have added the datadisk script to the heartbeat control file
(haresources) and it works fine when the primary server (pollux) fails (the
secondary server, castor, gets configured as primary and the /dev/nb0 is
mounted correctly).
When the first machine (pollux, the original primary server) is started
again, heartbeat is executed in both servers and the original secondary
node (configured as primary when the original primary server failed) is
configured as secondary again, but the primary machine remains as secondary.
Here is the log file for the primary server :
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux kernel: attempt to access beyond end of device
Sep 26 08:45:27 pollux kernel: 2b:00: rw=0, want=2, limit=0
Sep 26 08:45:27 pollux kernel: dev 2b:00 blksize=1024 blocknr=1 sector=2
size=1024 count=1
Sep 26 08:45:27 pollux kernel: EXT2-fs: unable to read superblock
Sep 26 08:45:27 pollux datadisk: failed
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux heartbeat: info: Running /etc/rc.d/init.d/httpd start
Sep 26 08:45:28 pollux httpd: httpd startup succeeded
Sep 26 08:45:44 pollux kernel: drbd : vmallocing 131281 B for bitmap. @c886401c
Sep 26 08:45:44 pollux kernel: drbd0: Connection established.
Sep 26 08:45:44 pollux kernel: drbd0: size=4200997 KB / blksize=4096 B
Here is the output of the /proc/drbd in pollux:
version : 57
0: cs:Connected st:Secondary/Secondary ns:0 nr:0 dw:0 dr:0 of:0
If I execute manually the /etc/rc.d/init.d/datadisk start , the primary
node gets configured ok.
Sep 26 08:47:20 pollux datadisk: succeeded
Sep 26 08:47:20 pollux datadisk: succeeded
Sep 26 08:47:20 pollux kernel: drbd0: blksize=1024 B
Sep 26 08:47:20 pollux kernel: drbd0: blksize=4096 B
Sep 26 08:47:21 pollux datadisk: succeeded
But after this, the /dev/nd0 contents are the existing in the primary
machine before the shutdown. All the modifications in the contents done in
the secondary machine when it is promoted to primary are missing :-/
How can I avoid the first error ? How can I syncronize again the contents
of both servers ?
Best regards,
Antonio Navarro Navarro
BemarNet Management
http://www.bemarnet.es
hostmaster@example.com
Tlf. +34-96-1656644
Fax. +34-96-1656514
I have installed drbd-0.5.7 and heartbeat in a RH 6.2 system with 2.2.16-3
kernel . I have added the datadisk script to the heartbeat control file
(haresources) and it works fine when the primary server (pollux) fails (the
secondary server, castor, gets configured as primary and the /dev/nb0 is
mounted correctly).
When the first machine (pollux, the original primary server) is started
again, heartbeat is executed in both servers and the original secondary
node (configured as primary when the original primary server failed) is
configured as secondary again, but the primary machine remains as secondary.
Here is the log file for the primary server :
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux kernel: attempt to access beyond end of device
Sep 26 08:45:27 pollux kernel: 2b:00: rw=0, want=2, limit=0
Sep 26 08:45:27 pollux kernel: dev 2b:00 blksize=1024 blocknr=1 sector=2
size=1024 count=1
Sep 26 08:45:27 pollux kernel: EXT2-fs: unable to read superblock
Sep 26 08:45:27 pollux datadisk: failed
Sep 26 08:45:27 pollux datadisk: succeeded
Sep 26 08:45:27 pollux heartbeat: info: Running /etc/rc.d/init.d/httpd start
Sep 26 08:45:28 pollux httpd: httpd startup succeeded
Sep 26 08:45:44 pollux kernel: drbd : vmallocing 131281 B for bitmap. @c886401c
Sep 26 08:45:44 pollux kernel: drbd0: Connection established.
Sep 26 08:45:44 pollux kernel: drbd0: size=4200997 KB / blksize=4096 B
Here is the output of the /proc/drbd in pollux:
version : 57
0: cs:Connected st:Secondary/Secondary ns:0 nr:0 dw:0 dr:0 of:0
If I execute manually the /etc/rc.d/init.d/datadisk start , the primary
node gets configured ok.
Sep 26 08:47:20 pollux datadisk: succeeded
Sep 26 08:47:20 pollux datadisk: succeeded
Sep 26 08:47:20 pollux kernel: drbd0: blksize=1024 B
Sep 26 08:47:20 pollux kernel: drbd0: blksize=4096 B
Sep 26 08:47:21 pollux datadisk: succeeded
But after this, the /dev/nd0 contents are the existing in the primary
machine before the shutdown. All the modifications in the contents done in
the secondary machine when it is promoted to primary are missing :-/
How can I avoid the first error ? How can I syncronize again the contents
of both servers ?
Best regards,
Antonio Navarro Navarro
BemarNet Management
http://www.bemarnet.es
hostmaster@example.com
Tlf. +34-96-1656644
Fax. +34-96-1656514