lonelysoul011 发表于 2010-09-10 16:37

drbd 无法正常使用! 谢谢高手指点!~

本帖最后由 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
# 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 ro:Primary/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个进程,但不知道怎么少的?
# ps -ef | grep drbd   
root   11576   10 16:15 ?      00:00:00

主机2
# 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

# ps -ef | grep drbd
root      4461   10 16:16 ?      00:00:00

lonelysoul011 发表于 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

问题已经解决
页: [1]
查看完整版本: drbd 无法正常使用! 谢谢高手指点!~