zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

DRBD master/slave setup

July 7, 2011 by Igor Drobot 8 Comments

In the last time I get a lot questions and feedback to some older posts (Active/Passive Cluster) where I used DRBD. And actually I never wrote how to setup DRBD and I try to fill this gap now. Also this post will be a new ground for some new ideas and posts related to Active/Passive Clustering with KVM.

DRBD (Distributed Replicated Block Device) is a really cool cluster solution to have radundant data on two or more nodes. Everybody know RAID, DRBD is like RAID 1 over network.
[Read more…]

Filed Under: Debian, Linux, Networking Tagged With: Cluster, Debian, DRBD, drbd syncer, HA, KVM, LVM, Ubuntu

DRBD set sync speed

March 15, 2011 by Igor Drobot 1 Comment

The default sync rate is normally defined in your drbd configuration (mostly /etc/drbd.conf)

1
2
3
syncer {
    rate 100M; 
}

syncer { rate 100M; }

If you are setting up a virtual machine on drbd cluster you need to produce more I/O and your physical machines are under heavy load. You can stop some services or you can reduce the sync rate.

Set temporary sync rate:
You need to issue this command only on one of your nodes!

1
root@drbd-node1:~# drbdsetup /dev/drbd0 syncer -r 10M

root@drbd-node1:~# drbdsetup /dev/drbd0 syncer -r 10M

Enjoy the easy solution;)

Filed Under: Debian, Linux Tagged With: DRBD, drbd speed, drbd syncer

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok