# # this need not be r#, you may use phony resource names, # like "resource web" or "resource mail", too # resource drbd0 { protocol C; # what should be done in case the cluster starts up in # degraded mode, but knows it has inconsistent data. #incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f"; startup { wfc-timeout 0; degr-wfc-timeout 120; # 2 minutes. } disk { on-io-error detach; } syncer { rate 100M; group 1; # Configures the size of the active set. Each extent is 4M, # 257 Extents ~> 1GB active set size. In case your syncer # runs @ 10MB/sec, all resync after a primary's crash will last # 1GB / ( 10MB/sec ) ~ 102 seconds ~ One Minute and 42 Seconds. # BTW, the hash algorithm works best if the number of al-extents # is prime. (To test the worst case performace use a power of 2) al-extents 257; } on power720-2 { device /dev/drbd0; disk /dev/sda4; address 149.44.174.138:7788; meta-disk internal; } on power720-3 { device /dev/drbd0; disk /dev/sda4; address 149.44.174.139:7788; meta-disk internal; } }