LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make a DRBD node start itself as a primary node automatically? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-drbd-node-start-itself-as-a-primary-node-automatically-785525/)

pyruby 01-28-2010 11:57 PM

How to make a DRBD node start itself as a primary node automatically?
 
Hello. I've set up DRBD on 2 machines, 1 of them is the master, another is the slave.

After each bootup, I need to run the following on the master machine:
Code:

drbdadm -- --overwrite-data-of-peer primary all
Do we need to specify which machine should be the primary node every time? Is there any method to make the machine "know" it's itself the primary node? Thank you for your help.

HasC 01-29-2010 12:41 PM

You should specify in the DRBD configuration file (maybe /etc/drbd.conf for you) which node is the master and which node is the slave.

More info here.


All times are GMT -5. The time now is 09:14 PM.