Elastix HA Using DRBD
-
Dears,
i am trying to configure High Availability between two Elastix Servers using DRBD and Heartbeat Services but i have an Error to specify the primary server as the below :
first the below is a copy of the config file /etc/drbd.confglobal { usage-count no; } resource r0 { protocol C; startup { wfc-timeout 10; degr-wfc-timeout 30; } #change timers to your need disk { on-io-error detach; } # or panic, ... net { after-sb-0pri discard-least-changes; after-sb-1pri discard-secondary; after-sb-2pri call-pri-lost-after-sb; cram-hmac-alg "sha1"; #shared-secret "Cent0Sru!3z"; } syncer { rate 5M; } on server1 { device /dev/drbd0; disk /dev/sda1; address 192.168.1.104:7788; meta-disk internal; } on server2 { device /dev/drbd0; disk /dev/sda1; address 192.168.1.102:7788; meta-disk internal; } } ##Note : master server IP is 192.168.1.102 ##Note : slave server IP is 192.168.1.104 ========================================= after thet i run this command on both servers: #drbdadm create-md r0 then restarting the service #service drbd restart but here i have the problem when i want to specify the primary server as the below command: #drbdadm -- --overwrite-data-of-peer primary r0 i have the below Error: 0: State change failed: (-2) Need access to UpToDate dataCommand 'drbdsetup 0 primary --overwrite-data-of-peer' terminated with exit code 17
thanks in advance
-
Did you run the needed command to set one as primary when you start up?
drbdadm -- --overwrite-data-of-peer primary drbd0
-
When i run this command i have this Error :
0: State change failed: (-2) Need access to UpToDate data
Command 'drbdsetup 0 primary --overwrite-data-of-peer' terminated with exit code 17 -
What is the output of...
cat /proc/drbd
-
@scottalanmiller
GIT-hash: 0ce4d235fc02b5c53c1c52c53433d11a694eab8c build by [email protected], 2013-03-27 16:01:26
0: cs:Unconfigured -
@AlyRagab said:
@scottalanmiller
GIT-hash: 0ce4d235fc02b5c53c1c52c53433d11a694eab8c build by [email protected], 2013-03-27 16:01:26
0: cs:UnconfiguredThat's not good, that's not what should be there at all.
-
@scottalanmiller i used these packages " yum install heartbeat drbd83 kmod-drbd83 "
is this right or you can recommend something ?