global { usage-count no; } common { protocol C; startup { wfc-timeout 15; degr-wfc-timeout 15; outdated-wfc-timeout 15; } disk { on-io-error detach; fencing resource-only; } net { cram-hmac-alg sha1; shared-secret "123456"; } syncer { rate 100M; } }创建一个xserver.res文件内容如下:
resource xserver { meta-disk internal; device /dev/drbd0; #device指定的参数最后必须有一个数字,用于global的minor-count, #否则会报错。device指定drbd应用层设备。 on srv5.localdomain{ #注意:drbd配置文件中,机器名大小写敏感! address 192.168.8.5:7789; disk /dev/sdb5; } on srv6.localdomain { address 192.168.8.6:7789; disk /dev/sdb5; } }
原文地址:http://blog.csdn.net/kkdelta/article/details/39737011