global { minor-count 1; } resource mysql { protocol C; # There are A, B and C protocols. Stick with C. on primary.mycompany.com { device /dev/drbd0; # The name of our drbd device. disk /dev/cciss/c0d1p1; # Partition we wish drbd to use. address 192.168.200.210:7788; # Centos5a IP address and port number. meta-disk internal; # Stores meta-data in lower portion of sdb1. } on secondary.mycompany.com { device /dev/drbd0; # Our drbd device, must match node0. disk /dev/cciss/c0d1p1; # Partition drbd should use. address 192.168.200.209:7788; # IP address of Centos5b, and port number. meta-disk internal; #Stores meta-data in lower portion of sdb1. } disk { on-io-error detach; # What to do when the lower level device errors. } net { max-buffers 2048; #datablock buffers used before writing to disk. ko-count 4; # Peer is dead if this count is exceeded. #on-disconnect reconnect; # Peer disconnected, try to reconnect. } syncer { rate 10M; # Synchronization rate, in megebytes. Good for 100Mb network. #group 1; # Used for grouping resources, parallel sync. al-extents 257; # Must be prime, number of active sets. } startup { wfc-timeout 0; # drbd init script will wait infinitely on resources. degr-wfc-timeout 120; # 2 minutes. } } # End of resource mysql