[DRBD-user] Clarification on How-To

Alan Robertson alanr at unix.sh
Thu Sep 16 19:32:02 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


John Lange wrote:
> In the DRBD How-To, it gives the following instructions on how to setup
> your drbd device.
> 
> In section 4.x, it says:
> ----snip----
> drbd also allows you to setup everything in a drbd.conf file
> 
> [...]
> 
> After you create the drbd.conf file, go to thost1, and run the following
> command:
> 
> $ /etc/rc.d/init.d/drbd start
> 
> Do the same thing on thost2
> 
> $ /etc/rc.d/init.d/drbd start
> 
> At this point, you should have a mirror between the 2 devices. You can
> verify this by looking at /proc/drbd
> 
> $ cat /proc/drbd
> 
> Now you can make a filesystem on the device, and mount it on machine
> thost1.
> ----snip----
> 
> Since the config files is not designed to indicate a primary node, how
> does drbd know which node should be the primary?

It is told by some outside influence.

For example, by a human being via drbdsetup, or by your cluster manager 
(e.g. heartbeat).

-- 
     Alan Robertson <alanr at unix.sh>

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce



More information about the drbd-user mailing list