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——安裝篇
- LangChain 安裝篇LangChain
- protobuf安裝-Linux篇Linux
- ffmpeg安裝(python篇)Python
- MySQL-安裝配置篇MySql
- Mongodb安裝篇+視覺化工具篇MongoDB視覺化
- Laravel入門(安裝部署篇)Laravel
- FastDFS安裝及使用(開山篇)AST
- Mysql學習筆記(安裝篇)MySql筆記
- kubernetes實戰篇之helm安裝
- [第十九篇]——Docker 安裝 MySQLDockerMySql
- [第十六篇]——Docker 安裝 CentOSDockerCentOS
- [第三篇]——CentOS Docker 安裝CentOSDocker
- [第四篇]——Windows Docker 安裝WindowsDocker
- 從eclipse遷移到idea(1 安裝篇)EclipseIdea
- puppetter安裝就踩坑-解決篇
- Linux 原始碼安裝Ansible 參考篇Linux原始碼
- Mac安裝開發環境-前端篇Mac開發環境前端
- 開天闢地,環境安裝(cangjie篇)
- 《MySQL 入門教程》第 02 篇 MySQL 安裝MySql
- [第十八篇]——Docker 安裝 Node.jsDockerNode.js
- 想安裝PostgreSQL,看這篇也就夠了SQL
- Docker下安裝Nginx和php(爬坑篇)DockerNginxPHP
- Jenkins 使用指南 之 服務安裝篇Jenkins
- 『高階篇』docker之gitlab和jenkins安裝(42)DockerGitlabJenkins
- Laravel 學習之 Homestead 安裝篇(Windows 環境)LaravelWindows
- 玩轉樹莓派之系統安裝篇樹莓派
- [第二十二篇]——Docker 安裝 MongoDBDockerMongoDB
- Mac安裝開發環境-應用端篇Mac開發環境
- macOS 安裝 Nebula Graph 看這篇就夠了Mac
- 軟體安裝程式第一篇(原理)
- 基礎篇——Pycharm的安裝與使用 初學者此篇夠用PyCharm
- 完全使用 Docker 開發 PHP 專案 (一): 安裝篇DockerPHP
- php環境篇:linux編譯安裝nginx1.13.2PHPLinux編譯Nginx
- 條碼外掛TBarCode Office系列教程六(安裝篇)
- Laravel 之道特別篇一: yum 安裝 LNMP 環境LaravelLNMP
- 條碼外掛TBarCode Office系列教程五(安裝篇)
- 第27篇 sqlserver2022詳細安裝步驟SQLServer
- 第11篇 MySql8.0 安裝配置教程細講MySql