Saturday, November 17, 2012

'main' not defined in your config (for this host).

This is the error you will see when configuring drbd(Distributed Replicated Block Device). This is caused when the main resource in not defined in any or .res files in /etc/drbd.d folder. So check you defined main as resource in the .res files or not. If its defined and you feel there is no config error, check if the host name is matching in the res file to the uname -n command

uname -n

if you see the difference between the names then change the config files according to the uname -n command output.