ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Elastix HA Using DRBD

    IT Discussion
    2
    7
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AlyRagabA
      AlyRagab
      last edited by scottalanmiller

      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.conf

      global { 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 🙂

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Did you run the needed command to set one as primary when you start up?

        drbdadm -- --overwrite-data-of-peer primary drbd0
        
        1 Reply Last reply Reply Quote 0
        • AlyRagabA
          AlyRagab
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            What is the output of...

            cat /proc/drbd
            
            AlyRagabA 1 Reply Last reply Reply Quote 0
            • AlyRagabA
              AlyRagab @scottalanmiller
              last edited by

              @scottalanmiller
              GIT-hash: 0ce4d235fc02b5c53c1c52c53433d11a694eab8c build by [email protected], 2013-03-27 16:01:26
              0: cs:Unconfigured

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @AlyRagab
                last edited by

                @AlyRagab said:

                @scottalanmiller
                GIT-hash: 0ce4d235fc02b5c53c1c52c53433d11a694eab8c build by [email protected], 2013-03-27 16:01:26
                0: cs:Unconfigured

                That's not good, that's not what should be there at all.

                AlyRagabA 1 Reply Last reply Reply Quote 0
                • AlyRagabA
                  AlyRagab @scottalanmiller
                  last edited by

                  @scottalanmiller i used these packages " yum install heartbeat drbd83 kmod-drbd83 "
                  is this right or you can recommend something ?

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post