根据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'如果我评论节点-id之后,它就不能解析连接!!
为什么??:
谢谢你帮我..。
发布于 2022-01-15 21:58:14
您可能已经加载了一个DRBD 8内核模块,然后drbdadm以没有节点id的v8格式解析配置。
希望能帮上忙
https://serverfault.com/questions/1085418
复制相似问题