- 论坛徽章:
- 0
|
测试环境redhat5.5
drbd-8.3.2.tar.gz
# vi /usr/local/drbd/etc/drbd.conf
global {
usage-count yes;
}
common {
protocol C;
}
resource r0 {
startup {
degr-wfc-timeout 120;
}
disk {
on-io-error detach;
}
net {
cram-hmac-alg sha1;
shared-secret "FooFunFactory";
}
syncer {
rate 100M;
}
on master{
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.0.1:7788;
meta-disk internal;
}
on slave{
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.0.2:7788;
meta-disk internal;
}
}
[root@server04 ~]# drbdadm create-md r0
'r0' ignored, since this host (server04) is not mentioned with an 'on' keyword. |
|