drbd 要配置又机的时候,老是出现错误

刘理志 发布于 2010/05/17 21:23
阅读 685
收藏 0

global {usage-count no;}
common { syncer { rate 100M; } }
resource r0 {
        protocol C;
        startup {
                wfc-timeout  15;
                degr-wfc-timeout 60;
        }
        net {
                cram-hmac-alg sha1;
                shared-secret "secret";
                allow-two-primaries;
        }
        on drbd01 {
                device /dev/drbd0;
                disk /dev/sdb1;
                address 192.168.1.2:7788;
                meta-disk internal;
        }
        on drbd02 {
                device /dev/drbd0;
                disk /dev/sdb1;
                address 192.168.1.3:7788;
                meta-disk internal;
        }
}

 

我通过df 命令查看只能查看到 /dev/sda1

 

他所提示的错误大概有以下:

Command '/sbin/drbdsetup /dev/sda disk /dev/sda1 /dev/sda1 internal --set-defaults --create-device' terminated with exit code 10

Failure: (114) Lower device is already claimed. This usually means it is mounted

 

我是按照 https://help.ubuntu.com/9.04/serverguide/C/drbd.html 来进行配置的

 

请指点!

加载中
返回顶部
顶部