免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5520 | 回复: 1

drbd 无法正常使用! 谢谢高手指点!~ [复制链接]

论坛徽章:
0
发表于 2010-09-10 16:37 |显示全部楼层
本帖最后由 lonelysoul011 于 2010-09-10 17:21 编辑

我的drbd装了好几天了。以前可以正常使用。现在无法正常使用。

2台主机的配置文件如下:

global { usage-count yes; }
common { syncer { rate 100M; } }
global { usage-count yes; }
common { syncer { rate 100M; } }
resource r0
{
     protocol C;
     net
{
           cram-hmac-alg sha1;
           shared-secret "coship";
     }
on MAP-Mysql-ZX-81
{
           device    /dev/drbd0;
           disk      /dev/sda2;
           address   172.18.11.81:7898;
           meta-disk internal;
     }
on MAP-Mysql-ZX-82
{
           device    /dev/drbd0;
           disk      /dev/sda2;
           address   172.18.11.82:7898;
           meta-disk internal;
     }
}
主机1
[root@MAP-Mysql-ZX-81 etc]# cat /proc/drbd
version: 8.3.6 (api:88/proto:86-91)
GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@MAP-Mysql-ZX-81, 2010-08-20 11:58:11
0: cs:StandAlone rorimary/Unknown ds:UpToDate/DUnknown   r----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:96

查看进程,发现少了2个进程,但不知道怎么少的?
[root@MAP-Mysql-ZX-81 etc]# ps -ef | grep drbd   
root     11576     1  0 16:15 ?        00:00:00 [drbd0_worker]

主机2
[root@MAP-Mysql-ZX-82 etc]# cat /proc/drbd
version: 8.3.6 (api:88/proto:86-91)
GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@MAP-Mysql-ZX-82, 2010-08-20 11:56:06
0: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:301260

[root@MAP-Mysql-ZX-82 etc]# ps -ef | grep drbd
root      4461     1  0 16:16 ?        00:00:00 [drbd0_worker]

论坛徽章:
0
发表于 2010-09-10 17:45 |显示全部楼层
回复 1# lonelysoul011


    Notes on Split-Brain recovery
In case you manage to get yourself into a split-brain, there still is a way out. On secondary (drbd-2) run this commands:

drbdadm secondary r0
drbdadm -- --discard-my-data connect r0


And on the primary (drbd-1) run this command:

drbdadm connect r0

问题已经解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP