DRBD-安裝篇

shiri512003發表於2010-02-17

作者: 絃樂之花 | 可以轉載, 但必須以超連結形式標明文章原始出處和作者資訊及

網址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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章