DRBD-安裝篇
作者: 絃樂之花 | 可以轉載, 但必須以超連結形式標明文章原始出處和作者資訊及
網址http://shiri512003.itpub.net/post/37713/496812
[@more@]The Distributed Replicated Block Device (DRBD) is a software-based, shared-nothing, replicated storage solution mirroring the content of block devices (hard disks, partitions, logical volumes etc.) between servers.
DRBD mirrors data
- In real time. Replication occurs continuously, while applications modify the data on the device.
- Transparently. The applications that store their data on the mirrored device are oblivious of the fact that the data is in fact stored on several computers.
- Synchronously or asynchronously. With synchronous mirroring, a writing application is notified of write completion only after the write has been carried out on both computer systems. Asynchronous mirroring means the writing application is notified of write completion when the write has completed locally, but before the write has propagated to the peer system.
INSTALL
1.下載drbd源包,這裡我們下載目前最新版本8.3.6
2.將下載到的源包傳輸到伺服器,這裡放在root使用者根目錄下
# ls /root/drbd-8.3.6.tar.gz
-rw-r--r-- 1 root root 457469 Nov 23 19:15 /root/drbd-8.3.6.tar.gz
3.解壓源包
#tar xzf drbd-8.3.6.tar.gz
4.編譯安裝
# cd /root/drbd-8.3.6
#mkdir /usr/local/drbd
# ./configure --prefix=/usr/local/drbd/ --with-km
# make clean all install
# depmod –a
# modprobe drbd
# lsmod|grep drbd
drbd 270184 0
# cd /usr/local/drbd/
#ls
etc lib sbin share var
UNINSTALL
1.# modprobe -r drbd
2. # lsmod|grep drbd
3. # cd /root/drbd-8.3.6
4. # make uninstall
5. # cd /usr/local/drbd/
6.#rm –rf *
7.# vi /lib/modules/2.6.9-89.ELsmp/modules.dep
刪除下面內容
/lib/modules/2.6.9-89.ELsmp/kernel/drivers/block/drbd.ko:
8.#刪除/lib/modules/2.6.9-89.ELsmp/kernel/drivers/block/drbd.ko
說明:
1.8.3.6開始DRBD安裝方式發生變化,目前官方文件未更新8.3.6安裝文件,另uninstall指令碼存在問題,無法清除安裝內容。
2.8.3.6之前版本只需要make即可,無需configure操作。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7591490/viewspace-1031276/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- saltstack——安裝篇
- MySQL 5.6.21下載安裝之安裝篇(二)MySql
- Mongodb安裝篇+視覺化工具篇MongoDB視覺化
- MySQL-安裝配置篇MySql
- ffmpeg安裝(python篇)Python
- OpenGrok安裝配置-MAC篇Mac
- protobuf安裝-Linux篇Linux
- Laravel入門(安裝部署篇)Laravel
- goldengate學習-安裝篇Go
- ☆ 安裝配置篇3 - WebSphere ☆ (轉)Web
- Mysql學習筆記(安裝篇)MySql筆記
- FastDFS安裝及使用(開山篇)AST
- [第四篇]——Windows Docker 安裝WindowsDocker
- [第三篇]——CentOS Docker 安裝CentOSDocker
- [第十九篇]——Docker 安裝 MySQLDockerMySql
- [第十六篇]——Docker 安裝 CentOSDockerCentOS
- 【Redis篇】初始Redis與Redis安裝Redis
- Mysql篇--Linux中安裝MysqlMySqlLinux
- oracle10.2.0.4 dbvault 安裝篇Oracle
- Flask學習筆記(安裝篇)Flask筆記
- 安裝配置篇--apache+resin(轉)Apache
- puppetter安裝就踩坑-解決篇
- Mac安裝開發環境-前端篇Mac開發環境前端
- DC/OS專題之安裝部署篇
- 安裝配置篇2 - IIS+resin(轉)
- Nagios Plugin for Cacti 安裝使用篇(zt)iOSPlugin
- 安裝PostgreSQL資料庫(Linux篇)SQL資料庫Linux
- kubernetes實戰篇之helm安裝
- 《MySQL 入門教程》第 02 篇 MySQL 安裝MySql
- 想安裝PostgreSQL,看這篇也就夠了SQL
- Docker下安裝Nginx和php(爬坑篇)DockerNginxPHP
- [第十八篇]——Docker 安裝 Node.jsDockerNode.js
- Centos 從安裝到部署之 Docker篇(二)CentOSDocker
- Flume篇---Flume安裝配置與相關使用
- 【Impala篇】---Hue從初始到安裝應用
- MySQL 5.6.21下載安裝之下載篇(一)MySql
- 【Linux】LNMP 環境搭建(上):安裝篇LinuxLNMP
- [Linux] LNMP 環境搭建(上):安裝篇LinuxLNMP