|
最近在学习使用drbd磁盘镜像软件时,当配置好了主机地址时,启动drbd是出现了下面的错误信息;
- [root@localhost linux]# service drbd start
- drbd: pre-parsed needs update, parsing /etc/drbd.conf
- ............................................................
- .................
-
- last token read from </etc/drbd.conf> was
- 77: }
- ^
- resource 'drbd0': This host (localhost) not mentioned.
- stopped at /etc/init.d/drbd (parse_resource_section) line 788.
-
- CVSID Id: drbd,v 1.44 2003/09/30 11:37:50 phil Exp
- BASH_VERSINFO (2 05b 0 1 release i386-redhat-linux-gnu)
-
- If you feel this script is buggy, please report to
- Lars Ellenberg <l.g.e@web.de>, drbd-devel@lists.sourceforge.net
复制代码
/**************************************************************/
drbd.conf的源代码如下:参考了文件是:http://blog.chinaunix.com/article.php?
- resource drbd0 {
- protocol=B
- fsck-cmd=fsck.ext2 -p -y
- on thost1 {
- device=/dev/nb0
- disk=/dev/hda7
- address=10.1.1.31
- port=7789
- }
- on thost2 {
- device=/dev/nb0
- disk=/dev/hda7
- address=10.1.1.32
- port=7789
- }
- }
复制代码
不知道是什么原因?我用的DRBD是0.6.8版,linux是red hat 9,核心版本2.4.20 希望哪位兄弟帮我一下。多谢了。 |
|