Kenjun

April 2, 2008

How Does DRBD work?

Filed under: Linux, MySQL, Systems Administration, Unix — kenjun @ 3:21 pm

How Does DRBD work?

Each device (DRBD provides more than one of these devices) has a state, which can be ‘primary’ or ’secondary’. On the node with the primary device the application is supposed to run and to access the device (/dev/drbdX). Every write is sent to the local ‘lower level block device’ and to the node with the device in ’secondary’ state. The secondary device simply writes the data to its lower level block device. Reads are always carried out locally.

What is DRBD

Filed under: Linux, MySQL, Systems Administration — kenjun @ 3:17 pm

What is DRBD

DRBD is a block device which is designed to build high availability clusters. This is done by mirroring a whole block device via (a dedicated) network. You could see it as a network raid-1.

 

Blog at WordPress.com.