添加http://elrepo.org/tiki/tiki-index.php源
drbd.conf
global { usage-count no; }
common { syncer { rate 10M; } }
resource r0 {
protocol C;
startup {
}
disk {
on-io-error detach;
#size 1G;
}
net {
}
on dbserver1 {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.122.130:7888;
meta-disk internal;
}
on dbserver2 {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.122.131:7888;
meta-disk internal;
}
}
hostname dbserver1
关闭防火墙
drbdadm connect all
drbdadm create-md all
第一次
drbdadm -- --overwrite-data-of-peer primary all
本文档详细介绍了如何配置 DRBD (Distributed Replicated Block Device) 的 drbd.conf 文件,并提供了具体的配置示例。此外,还给出了如何在两台服务器上启动并连接 DRBD 服务的具体步骤。
1104

被折叠的 条评论
为什么被折叠?



