- 论坛徽章:
- 2
|
系统:rhel6.7
内核:[root@master drbd.d]# uname -r
2.6.35
软件版本Version: 8.9.6 (api:8
GIT-hash: c6e62702d5e4fb2cf6b3fa27e67cb0d4b399a30b build by root@master, 2016-07-09 07:55:05
配置global_common.conf
global {
usage-count no;
}
common {
handlers {
pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";
pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";
local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";
}
startup {
wfc-timeout 30;
degr-wfc-timeout 30;
}
disk {
on-io-error detach;
}
net {
protocol C;
cram-hmac-alg "sha1";
shared-secret "12321";
}
syncer {
rate 100M;
}
}
资源配置xx.res
resource web {
on master {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.137.10:7789;
meta-disk internal;
}
on master2 {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.137.11:7789;
meta-disk internal;
}
}
错误如下、求助
[root@master drbd.d]# drbdadm create-md web
drbd.d/global_common.conf:34: Parse error: 'protocol | on | disk | net | syncer | startup | handlers | ignore-on | stacked-on-top-of' expected,
but got 'options' (TK 281) |
|