根据https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/和http://manpages.ubuntu.com/manpages/bionic/man5/drbd.conf-9.0.5.html 我已经配置了我的 drbd 配置。我的配置:
resource c_ssd1_drbd1 {
device /dev/drbd1;
disk /dev/pool_ssd_1/bd1;
meta-disk internal;
on NODE-1 {
address 172.*.*.120:7701;
node-id 0;
}
on NODE-2 {
address 172.*.*.121:7702;
node-id 1;
}
on NODE-3 {
address 172.*.*.122:7703;
node-id 2;
}
connection {
host NODE-1 port 7701;
host NODE-2 port 7702;
net {
protocol C;
}
}
connection {
host NODE-1 port 7701;
host NODE-3 port 7703;
net {
protocol A;
}
}
connection {
host NODE-2 port 7702;
host NODE-3 port 7703;
net {
protocol A;
}
}
}
当我想要使用命令启动我的资源 c_ssd1_drbd1 时
drbdadm up c_ssd1_drbd1
它显示了这个错误:
drbdadm up drbd.d/c_ssd1_drbd1.res:10: Parse error: 'disk | device | address | meta-disk | flexible-meta-disk' expected,
but got 'node-id'
如果我之后评论node-id它就无法解析连接!!
为什么?? :((
謝謝帮助我...
答案1
您可能已经加载了 DRBD 8 内核模块,然后 drbdadm 会解析没有 node-id 的 v8 格式的配置。
希望有帮助,