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

http://oss.linbit.com/drbd/

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操作。

http://www.howtoforge.com/linux_resizing_ext3_partitions

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7591490/viewspace-1031276/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7591490/viewspace-1031276/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值