linux Redhat 6环境上通过源码包安装DRBD 8
环境描述:
- 操作系统版本:Red Hat Enterprise Linux Server release 6.6 (Santiago)
- 系统内核版本:2.6.32-504.el6.x86_64
- DRBD版本:drbd-8.4.11-
- DRBD工具版本:drbd-utils-8.9.
需求描述:
在linux环境(redhat 6.6)上安装DRBD,记录下此过程及安装过程中的错误.
安装过程:
1.下载DRBD源码包
下载地址:https://www.linbit.com/en/drbd-community/drbd-download/
下载的软件包:
drbd-8.4.11-1.tar.gz
drbd-utils-8.9.9.tar.gz
2.将drbd的软件包上传到服务器上
[root@hadoop3 softwares]# ls -l drbd-*
-rw-r--r-- root root May : drbd-8.4.-.tar.gz
-rw-r--r-- root root May : drbd-utils-8.9..tar.gz
3.安装drbd软件编译,安装时需要的依赖包
yum -y install gcc make automake autoconf libxslt libxslt-devel flex rpm-build kernel-devel docbook-xsl
安装过程:
[root@hadoop3 softwares]# yum -y install gcc make automake autoconf libxslt libxslt-devel flex rpm-build kernel-devel docbook-xsl
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
rhel-source | 4.1 kB 00:00 ...
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package libxslt-1.1.26-2.el6_3.1.x86_64 already installed and latest version
Package flex-2.5.35-9.el6.x86_64 already installed and latest version
Package rpm-build-4.8.0-37.el6.x86_64 already installed and latest version
Package kernel-devel-2.6.32-504.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package docbook-style-xsl.noarch 0:1.75.2-6.el6 will be installed
--> Processing Dependency: xml-common >= 0.6.3-8 for package: docbook-style-xsl-1.75.2-6.el6.noarch
--> Processing Dependency: docbook-dtd-xml for package: docbook-style-xsl-1.75.2-6.el6.noarch
---> Package libxslt-devel.x86_64 0:1.1.26-2.el6_3.1 will be installed
--> Processing Dependency: libxml2-devel >= 2.6.27 for package: libxslt-devel-1.1.26-2.el6_3.1.x86_64
--> Processing Dependency: libgcrypt-devel for package: libxslt-devel-1.1.26-2.el6_3.1.x86_64
--> Processing Dependency: pkgconfig(libxml-2.0) for package: libxslt-devel-1.1.26-2.el6_3.1.x86_64
--> Running transaction check
---> Package docbook-dtds.noarch 0:1.0-51.el6 will be installed
--> Processing Dependency: sgml-common >= 0.6.3-4 for package: docbook-dtds-1.0-51.el6.noarch
---> Package libgcrypt-devel.x86_64 0:1.4.5-11.el6_4 will be installed
--> Processing Dependency: libgpg-error-devel for package: libgcrypt-devel-1.4.5-11.el6_4.x86_64
---> Package libxml2-devel.x86_64 0:2.7.6-14.el6_5.2 will be installed
---> Package xml-common.noarch 0:0.6.3-33.el6 will be installed
--> Running transaction check
---> Package libgpg-error-devel.x86_64 0:1.7-4.el6 will be installed
---> Package sgml-common.noarch 0:0.6.3-33.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
docbook-style-xsl noarch 1.75.2-6.el6 rhel-source 2.6 M
libxslt-devel x86_64 1.1.26-2.el6_3.1 rhel-source 561 k
Installing for dependencies:
docbook-dtds noarch 1.0-51.el6 rhel-source 274 k
libgcrypt-devel x86_64 1.4.5-11.el6_4 rhel-source 118 k
libgpg-error-devel x86_64 1.7-4.el6 rhel-source 14 k
libxml2-devel x86_64 2.7.6-14.el6_5.2 rhel-source 1.1 M
sgml-common noarch 0.6.3-33.el6 rhel-source 43 k
xml-common noarch 0.6.3-33.el6 rhel-source 18 k Transaction Summary
===============================================================================================================================================================================================
Install 8 Package(s) Total download size: 4.6 M
Installed size: 32 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 44 MB/s | 4.6 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xml-common-0.6.3-33.el6.noarch 1/8
Installing : libxml2-devel-2.7.6-14.el6_5.2.x86_64 2/8
Installing : sgml-common-0.6.3-33.el6.noarch 3/8
Installing : docbook-dtds-1.0-51.el6.noarch 4/8
Installing : libgpg-error-devel-1.7-4.el6.x86_64 5/8
Installing : libgcrypt-devel-1.4.5-11.el6_4.x86_64 6/8
Installing : libxslt-devel-1.1.26-2.el6_3.1.x86_64 7/8
Installing : docbook-style-xsl-1.75.2-6.el6.noarch 8/8
Verifying : libgcrypt-devel-1.4.5-11.el6_4.x86_64 1/8
Verifying : libgpg-error-devel-1.7-4.el6.x86_64 2/8
Verifying : sgml-common-0.6.3-33.el6.noarch 3/8
Verifying : docbook-dtds-1.0-51.el6.noarch 4/8
Verifying : libxml2-devel-2.7.6-14.el6_5.2.x86_64 5/8
Verifying : libxslt-devel-1.1.26-2.el6_3.1.x86_64 6/8
Verifying : xml-common-0.6.3-33.el6.noarch 7/8
Verifying : docbook-style-xsl-1.75.2-6.el6.noarch 8/8 Installed:
docbook-style-xsl.noarch 0:1.75.2-6.el6 libxslt-devel.x86_64 0:1.1.26-2.el6_3.1 Dependency Installed:
docbook-dtds.noarch 0:1.0-51.el6 libgcrypt-devel.x86_64 0:1.4.5-11.el6_4 libgpg-error-devel.x86_64 0:1.7-4.el6 libxml2-devel.x86_64 0:2.7.6-14.el6_5.2 sgml-common.noarch 0:0.6.3-33.el6
xml-common.noarch 0:0.6.3-33.el6 Complete!
4.安装drbd内核驱动程序
tar -zxf drbd-8.4.11-1.tar.gz
cd drbd-8.4.11-1
make
make install
5.加载drbd模块到内核中
[root@hadoop3 drbd-8.4.11-1]# modprobe drbd
[root@hadoop3 drbd-8.4.11-1]# lsmod | grep drbd
drbd 378735 0
libcrc32c 1246 1 drbd
备注:通过以上的查询结果可以知道drbd模块已经加载内核中了.
6.安装drbd工具
tar -zxf drbd-utils-8.9.9.tar.gz
cd drbd-utils-8.9.9
配置drbd工具的安装路径,配置文件路径
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
make
make install
7.查看drbd的配置文件,命令是否已经生成
[root@hadoop3 etc]# ls /etc/drbd*
/etc/drbd.conf /etc/drbd.d:
global_common.conf
备注:drbd的配置文件已经生成了.
[root@hadoop3 etc]# drbd
drbdadm drbdmeta drbd-overview drbdsetup
[root@hadoop3 etc]# drbd
备注:drbd的命令已经生成了.
安装过程中遇到的错误及解决方式:
1.安装drbd-utils时报错:
/usr/bin/xsltproc \
--xinclude --stringparam variablelist.term.break.after 1 \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl drbdsetup.xml
error : Operation in progress
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[1]: *** [drbdsetup.8] Error 4
make[1]: Leaving directory `/opt/softwares/drbd-utils-8.9.9/documentation/v9'
make: *** [doc] Error 2
解决方法:
yum install -y docbook-xsl
备注:安装需要的软件包就可以解决该问题.
文档创建时间:2018年5月9日13:30:03
linux Redhat 6环境上通过源码包安装DRBD 8的更多相关文章
- 如何通过源码包的方式在linux安装python36
背景: python34的安装非常简单,直接用yum就可以安装,但是安装最新版的python36通过yum方式是不行的,需要通过源码包进行安装 具体步骤如下: 1.安装openssl静态库[pip3安 ...
- 通过源码编译安装VIM
开发中使用的是Ubuntu 12.04 LTS,通过sudo apt-get install vim安装的版本较低,不支持YCM,所以,用源码编译并安装最新的Vim. 卸载旧版本的Vim: sudo ...
- Linux下通过源码编译安装程序
本文简单的记录了下,在linux下如何通过源码安装程序,以及相关的知识.(大神勿喷^_^) 一.程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件: ...
- Linux下通过源码编译安装程序(configure/make/make install的作用,然后在/etc/profile文件里修改PATH环境变量)
一.程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件:就是通常我们见到的lib目录下的文件 配置文件:这个不必多说,都知道 帮助文档:通常是我们在 ...
- 在linux通过源码编译安装redis详细步骤
1.下载源码包 [root@localhost opt]# wget http://download.redis.io/releases/redis-4.0.10.tar.gz 2.解压缩redis ...
- ubuntu 16.04通过源码方式安装nginx
1.下载nginx源码包 wget http://nginx.org/download/nginx-1.11.12.tar.gz 2.解压该tar包 tar zxvf nginx-1.11.12.t ...
- 详解如何在linuxmint上用源码包安装nodejs
第一步:安装依赖包 因为Linuxmint 和 Ubuntu 同属 Debian系的Linux,而且Linuxmint是建立在Ubuntu的基础上的,所以Ubuntu下的命令和包,Linuxmin ...
- 在 Ubuntu 12.04 上通过源码安装 Open vSwitch (OVS)
安装 Ubuntu 12.04, 而且更新系统 apt-getupdate; apt-getupgrade; 安装所需的package apt-get install automake autocon ...
- 『学了就忘』Linux服务管理 — 79、源码包安装的服务管理
目录 1.源码包服务的启动管理 2.源码包服务的自启动管理 3.让源码包服务被服务管理命令识别 1.源码包服务的启动管理 # 通过源码包的安装路径,找到该服务的启动脚本, # 也就是获得该服务的启动脚 ...
随机推荐
- oop klass
https://www.infoq.com/articles/Introduction-to-HotSpot 借助HotSpot SA来一窥PermGen上的对象 找出栈上的指针/引用 虚拟机随谈(一 ...
- Angular External js library calling Document.Ready
https://stackoverflow.com/questions/51094841/angular-external-js-library-calling-document-ready Step ...
- linux命令(30):tail
linux ---tail命令 linux中tail命令---用于查看文件内容 最基本的是cat.more和less. 1. 如果你只想看文件的前5行,可以使用head命令,如: head -5 /e ...
- Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.”
今天在项目中集成了极光推送,一切都配置完毕,把程序运行起来的时候,报了下面的错误: Not get deviceToken yet. Maybe: your certificate not confi ...
- MySQL - 1093异常 - You can't specify target table 't' for update in FROM clause
有一个表示地区的表,表结构与数据大概如下表. ID NAME PARENT_ID 1 中国 2 广东省 1 3 广州市 2 4 荔湾区 3 5 越秀区 3 6 番禺区 3 7 小谷围街道 6 现为了查 ...
- 对JAVASCRIPT匿名函数的理解
网上很多解释,我无法理解,我想知道原理...这篇文章应该可以透彻一点 Query片段: (function(){ //这里忽略jQuery所有实现 })(); 要说匿名函数,我们首先要由函数本身说起. ...
- Alluxio 内存存储系统部署
一.文件下载和解压 1)下载地址:http://www.alluxio.org/download 2) 解压命令如下: $ wget http://alluxio.org/downloads/file ...
- Zookeeper的Quorum机制-谈谈怎样解决脑裂(split-brain)
在使用zookeeper的过程中,我们经常会看到这样一些说法: 1.zookeeper cluster的节点数目必须是奇数. 2.zookeeper 集群中必须超过半数节点(Majority)可用,整 ...
- JDK1.6.0+Tomcat6.0的安装配置
JDK1.6.0+Tomcat6.0的安装配置是如何进行的呢?我们按照下面几个步骤来: 1.安装JDK 这是进行JSP开发的重要一步,也是安装JSP引擎(Tomcat.Resin.Weblogic等) ...
- 【WPF】ListBox无法滚动
问题:ListBox显示多个条目时,无法滚动,也不显示滚动条. 办法: 给ListBox控件加上ScrollViewer.VerticalScrollBarVisibility和ScrollViewe ...