Hi,
Can you share your drbd global.conf file, please? I set it like this. I get an error when restarting drbd service. I think the problem is with my configuration settings.
global {
usage-count no;
# minor-count dialog-refresh disable-ip-verification
}
common {
protocol C:
startup {
wfc-timeout 0;
degr-wfc-timeout 68;
become-primary-on both;
# wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb
}
net {
cram-hmac-alg sha1;
shared-secred "my-secret";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
syncer {
rate 20M;
verify-alg md5;
}
By the way, The situation that we encountered when we restarted the service.
systemctl start drbd.service
Job for drbd.service failed. See 'systemctl status drbd.service' and 'journalctl -xn' for details.
root@server1:~# systemctl status drbd.service
â drbd.service - Distributed Replicated Block Device
Loaded: loaded (/lib/systemd/system/drbd.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-12-28 08:34:21 GMT-3; 22s ago
Process: 19114 ExecStartPre=/sbin/drbdadm sh-nop (code=exited, status=10)
Dec 28 08:34:21 server1 drbdadm[19114]: drbd.d/global_common.conf:11: Parse error: ';' expected,
Dec 28 08:34:21 server1 drbdadm[19114]: but got ':' (TK 58)
Dec 28 08:34:21 server1 systemd[1]: drbd.service: control process exited, code=exited status=10
Dec 28 08:34:21 server1 systemd[1]: Failed to start Distributed Replicated Block Device.
Dec 28 08:34:21 server1 systemd[1]: Unit drbd.service entered failed state.
Can you share your drbd global.conf file, please? I set it like this. I get an error when restarting drbd service. I think the problem is with my configuration settings.
global {
usage-count no;
# minor-count dialog-refresh disable-ip-verification
}
common {
protocol C:
startup {
wfc-timeout 0;
degr-wfc-timeout 68;
become-primary-on both;
# wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb
}
net {
cram-hmac-alg sha1;
shared-secred "my-secret";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
syncer {
rate 20M;
verify-alg md5;
}
By the way, The situation that we encountered when we restarted the service.
systemctl start drbd.service
Job for drbd.service failed. See 'systemctl status drbd.service' and 'journalctl -xn' for details.
root@server1:~# systemctl status drbd.service
â drbd.service - Distributed Replicated Block Device
Loaded: loaded (/lib/systemd/system/drbd.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-12-28 08:34:21 GMT-3; 22s ago
Process: 19114 ExecStartPre=/sbin/drbdadm sh-nop (code=exited, status=10)
Dec 28 08:34:21 server1 drbdadm[19114]: drbd.d/global_common.conf:11: Parse error: ';' expected,
Dec 28 08:34:21 server1 drbdadm[19114]: but got ':' (TK 58)
Dec 28 08:34:21 server1 systemd[1]: drbd.service: control process exited, code=exited status=10
Dec 28 08:34:21 server1 systemd[1]: Failed to start Distributed Replicated Block Device.
Dec 28 08:34:21 server1 systemd[1]: Unit drbd.service entered failed state.