The following steps are supposed to be done on both nodes (identically)
global { usage-count no; } common { syncer { rate 30M; verify-alg md5; } }
resource r0 { protocol C; startup { wfc-timeout 0; # non-zero might be dangerous degr-wfc-timeout 60; become-primary-on both; } net { cram-hmac-alg sha1; shared-secret "oogh2ouch0aitahNBLABLABLA"; allow-two-primaries; after-sb-0pri discard-zero-changes; after-sb-1pri discard-secondary; after-sb-2pri disconnect; } on virt1 { device /dev/drbd0; disk /dev/sdb1; address 10.10.1.1:7788; meta-disk internal; } on virt2 { device /dev/drbd0; disk /dev/sdb1; address 10.10.1.2:7788; meta-disk internal; } }
Following steps are supposed to be done only on ONE node
Following steps are supposed to be done on both nodes (identically)
--- /etc/lvm/lvm.conf.orig 2012-03-09 12:58:48.000000000 +0400 +++ /etc/lvm/lvm.conf 2012-04-06 18:00:32.000000000 +0400 @@ -63,7 +63,8 @@ # By default we accept every block device: - filter = [ "a/.*/" ] + #filter = [ "a/.*/" ] + filter = [ "r|^/dev/sdb1|", "a|^/dev/sd|", "a|^/dev/drbd|" ,"r/.*/" ] # Exclude the cdrom drive # filter = [ "r|/dev/cdrom|" ]
Following steps are supposed to be done on any single node