ubuntu下安装配置完drbd后启动报错, 查看版本信息:

root@drbd2:~# drbdadm --version
DRBD module version: 8.4.5
   userland version: 8.4.4
you should upgrade your drbd tools!
DRBDADM_BUILDTAG=GIT-hash:\ 599f286440bd633d15d5ff985204aff4bccffadd\ build\ by\ phil@fat-tyre\,\ 2013-10-11\ 16:42:48
DRBDADM_API_VERSION=1
DRBD_KERNEL_VERSION_CODE=0x080405
DRBDADM_VERSION_CODE=0x080404
DRBDADM_VERSION=8.4.4

ubuntu14.4.04 kernel中编译的 drbd module 版本是 8.4.5, 而官方trusty所提供的drbd8-utils的版本只到8.4.4, 只能手动编译了

解决依赖:

apt-get install flex

官方下载drbd-utils: http://oss.linbit.com/drbd/

编译:

root@ubuntu:~# tar -xf drbd-utils-latest.tar.gz -C /usr/src/
root@ubuntu:~# cd /usr/src/drbd-utils-8.9.6/
root@ubuntu:/usr/src/drbd-utils-8.9.6# ls
autogen.sh configure COPYING drbd-headers Makefile.in scripts
ChangeLog configure.ac documentation drbd.spec.in README user
root@ubuntu:/usr/src/drbd-utils-8.9.6# ./configure --prefix=/usr/local/drbd-utils --sysconfdir=/etc/
root@ubuntu:/usr/src/drbd-utils-8.9.6# make
root@ubuntu:/usr/src/drbd-utils-8.9.6# make install
root@ubuntu:~# mkdir /usr/local/drbd-utils/var/run/drbd
关于再次报错:

make 后会报以下错误:

Userland tools build was successful.
make -C documentation/v9 doc
make[1]: Entering directory `/usr/src/drbd-utils-8.9.6/documentation/v9'
xsltproc -o drbdsetup.xml drbdsetup.xsl drbdsetup.xml.in
make[1]: xsltproc: Command not found
make[1]: *** [drbdsetup.xml] Error 127
make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'
make: *** [doc] Error 2

此错误对drbd运行没有影响, 提示安装xsltproc可解决, 然而实际上又报了别的错, 如下:

http://docbook.sourceforge.net/release/xsl/current/html/param.xsl:445: parser error : Premature end of data in tag stylesheet line 3
compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 24 element include
xsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/html/param.xsl
make[1]: *** [drbdsetup.8] Error 5
make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'
make: *** [doc] Error 2

此处的报错貌似影响的是文档, 文档要在线下载却又爬不动墙, 不影响软件使用

make install 后同样报错(如下):

Userland tools build was successful.
make -C documentation/v9 doc
make[1]: Entering directory `/usr/src/drbd-utils-8.9.6/documentation/v9'
make -C ../../user/v9 drbdsetup
make[2]: Entering directory `/usr/src/drbd-utils-8.9.6/user/v9'
make[2]: `drbdsetup' is up to date.
make[2]: Leaving directory `/usr/src/drbd-utils-8.9.6/user/v9'
../../user/v9/drbdsetup xml-help new-resource > drbdsetup_xml-help_new-resource.xml
xsltproc -o drbdsetup_new-resource.xml xml-usage-to-docbook.xsl drbdsetup_xml-help_new-resource.xml
make[1]: xsltproc: Command not found
make[1]: *** [drbdsetup_new-resource.xml] Error 127
make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'
make: *** [doc] Error 2

无影响, 可忽略


shiina
146 声望3 粉丝

初出茅庐大学生/中二晚期已弃疗/社交低能单身狗/七言绝句装逼王


引用和评论

0 条评论