Rapid installation and deployment of DRBD

Source: Internet
Author: User

Rapid installation and deployment of DRBD

DRBD is favored by O & M personnel for its open source, simple, efficient, and outstanding performance. The main function is to synchronize Images Between Two device blocks of the same size on different nodes. Drbd is composed of kernel modules and related scripts to build highly available clusters. This article describes the installation method for your reference.

For details about the features, functions, and basic knowledge of DRBD, refer to DRBD principles and features.

I. Demo Environment
OS Version: CentOS release 6.5 (Final)
Orasrv1: 192.168.21.10
Orasrv2: 192.168.21.13
DRBD Version: 8.3.15 (api: 88)

Ii. Install drbd in yum mode (two nodes)
1. Use yum to install
Configure the epel source, which can be downloaded from here or obtained directly using wget.
Http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Rpm-Uvh epel-release-6-8.noarch.rpm
# Yum-y install drbd83 kmod-drbd83
# Modprobe drbd
# Lsmod | grep drbd
Drbd 345363 0
2. For the configuration section, refer to the third point of compiling method to install drbd 4th.
### Note: the directory of the drbd configuration file varies with the yum method.
### Place the drbd. conf file in the/etc directory, and store the remaining two configuration files in the/etc/drbd. d directory 1
Iii. Install drbd by compiling
1. Install the user space tool (two points)
# Yum-y install kernel-devel kernel-headers flex gcc
# Pwd
Usr/local/src ### storage location of drbd compressed files
# Tar-xvf drbd-8.3.15.tar.gz
# Cd drbd-8.3.15
#./Configure -- prefix =/usr/local/drbd -- with-km
# Make KDIR =/usr/src/kernels/2.6.32-431. el6.x86 _ 64/
# Make install
# Ls/usr/local/drbd/# view the installed file
Etc lib sbin share var

# Cp/usr/local/drbd/etc/rc. d/init. d/drbd/etc/init. d/drbd
# Chkconfig -- add drbd
# Chkconfig drbd on1
2. Install the drbd module (two nodes)
# Cd/usr/local/src/drbd-8.3.15/drbd
# Make clean
# Make KDIR =/usr/src/kernels/2.6.32-431. el6.x86 _ 64/
# Cp drbd. ko/lib/modules/'uname-R'/kernel/lib/
# Depmod
# Modprobe drbd ### load the drbd module to the Linux Kernel
Note:/usr/src/kernels/2.6.18-274.18.1.el5-i686/the kernel source code tree path needs to be modified according to your system.
3. Verify that the drbd kernel is loaded (two nodes)
# Lsmod | grep drbd
Drbd 345363 0

4. Configure the system disk (two nodes)
### Author: Leshami
### Blog:

DRBD Chinese application guide PDF

Installation and configuration notes for DRBD in CentOS 6.3

High-availability MySQL based on DRBD + Corosync

Install and configure DRBD in CentOS 6.4

DRBD details: click here
DRBD: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.