- 论坛徽章:
- 0
|
谢谢热心的mdjhaitao ! 我是参考以下网址的文档配置的。不过drbd的版本不是0.7 而是8.2.1 ,也曾用过8.0.6,和8.2.1遇到的问题是一样的。
http://www.linux-ha.org/DRBD/HowTov2
我的问题其实也很简单,就是DRBD正常工作之后(一个为primary,一个为secondary),heartbeat如何将Filesystem挂载到Primary的节点上? 并不是配置了Filesystem和挂载点就可以的,从上面文档的一段话中可以看出:
Now the interesting bits. Obviously, this should only be mounted on the same node where drbd0 is in primary state, and only after drbd0 has been promoted, which is easily expressed in two constraints:
<rsc_order id="drbd0_before_fs0" from="fs0" action="start" to="ms-drbd0" to_action="promote"/>
<rsc_colocation id="fs0_on_drbd0" to="ms-drbd0" to_role="master" from="fs0" score="infinity"/>
Et voila! You now can activate the filesystem resource and it'll be mounted at the proper time in the proper place.
但是现在的问题是GUI界面中的constriants中不能配置 action to_action to_role等参数。命令行的方式也遇到麻烦,上述配置不能被系统接受。 |
|