--- inputs/ISS/wwwnext.cf (revision 742)
+++ inputs/ISS/wwwnext.cf (revision 743)
group=root
mode=0600
server=${cfmaster}
+ ${mastersrc}/apps/wwwnext/drbd.conf
+ dest=/etc/drbd.conf
+ owner=root
+ group=root
+ mode=0644
+ server=${cfmaster}
wwwnext_sb12::
${mastersrc}/apps/wwwnext/ha.cf-wwwnext-sb12
dest=/etc/ha.d/ha.cf
--- apps/wwwnext/drbd.conf (revision 0)
+++ apps/wwwnext/drbd.conf (revision 743)
+#
+# please have a a look at the example configuration file in
+# /usr/share/doc/drbd83/drbd.conf
+#
+global {
+minor-count 1;
+}
+
+resource pgdata {
+protocol C; # There are A, B and C protocols. Stick with C.
+# incon-degr-cmd "echo 'DRBD Degraded!' | wall; sleep 60 ; halt -f";
+# If a cluster starts up in degraded mode, it will echo a message to all
+# users. It'll wait 60 seconds then halt the system.
+
+on wwwnext-sb12 {
+device /dev/drbd0; # The name of our drbd device
+disk /dev/xvdb; # Partition we wish drbd to use
+address 10.8.232.170:7788; # for testing, just use normal iface
+meta-disk internal; # Stores meta-data in lower portion of c0d1p1
+}
+
+on wwwnext-dbx {
+device /dev/drbd0; # The name of our drbd device - must match ut1
+disk /dev/xvdb; # Partition we wish drbd to use
+address 10.8.232.157:7788;
+meta-disk internal; # Stores meta-data in lower portion of c0d1p1
+}
+
+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 30M; # 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 pgdata