[DRBD-user] allow-two-primaries problem

Sinisa sinisa at 4net.rs
Mon May 27 10:44:38 CEST 2019


On 5/27/19 10:33 AM, Robert Altnoeder wrote:
> On 5/24/19 7:10 PM, Siniša Bandin wrote:
>> I am still able to promote more than one node to primary, although I
>> have no such thing configured.
> Please send the output of the following commands:
> drbdsetup show all
> cat /proc/drbd
> drbdadm --version
>
> br,
> Robert
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user

node0:~ # drbdsetup show all
resource md8 {
     options {
         auto-promote            no;
     }
     _this_host {
         node-id                 0;
         volume 0 {
             device                      minor 8;
             disk                        "/dev/md8";
             meta-disk                   internal;
             disk {
                 resync-after            7;
                 al-extents              6433;
                 read-balancing          1M-striping;
             }
         }
     }
     connection {
         _peer_node_id 1;
         path {
             _this_host ipv4 192.168.12.3:7888;
             _remote_host ipv4 192.168.12.8:7888;
         }
         net {
             sndbuf-size         2097152; # bytes
             rcvbuf-size         4194304; # bytes
             cram-hmac-alg       "sha1";
             shared-secret       "FooFunFactory";
             after-sb-0pri       discard-zero-changes;
             after-sb-1pri       discard-secondary;
             tcp-cork            no;
             congestion-fill     8388608s; # bytes
             csums-alg           "crc32c";
             verify-alg          "crc32c";
             max-buffers         131072;
             _name               "node1";
         }
         volume 0 {
             disk {
                 resync-rate             81920k; # bytes/second
                 c-plan-ahead            0; # 1/10 seconds
                 c-fill-target           409600s; # bytes
                 c-max-rate              1024000k; # bytes/second
             }
         }
     }
     connection {
         _peer_node_id 2;
         path {
             _this_host ipv4 192.168.12.3:7888;
             _remote_host ipv4 192.168.12.9:7888;
         }
         net {
             sndbuf-size         2097152; # bytes
             rcvbuf-size         4194304; # bytes
             cram-hmac-alg       "sha1";
             shared-secret       "FooFunFactory";
             after-sb-0pri       discard-zero-changes;
             after-sb-1pri       discard-secondary;
             tcp-cork            no;
             congestion-fill     8388608s; # bytes
             csums-alg           "crc32c";
             verify-alg          "crc32c";
             max-buffers         131072;
             _name               "node2";
         }
         volume 0 {
             disk {
                 resync-rate             81920k; # bytes/second
                 c-plan-ahead            0; # 1/10 seconds
                 c-fill-target           409600s; # bytes
                 c-max-rate              1024000k; # bytes/second
             }
         }
     }
}

node0:~ # cat /proc/drbd
version: 9.0.17-1 (api:2/proto:86-114)
GIT-hash: b9abab2dd27313922797d026542b399870bfd13e reproducible build, 
2019-03-22 12:00:00
Transports (api:16): tcp (9.0.17-1)

node0:~ # drbdadm --version
DRBDADM_BUILDTAG=GIT-hash:\ c30216b49330216bf8a567b7727da6e24f099f08\ 
reproducible\ build\,\ 2019-01-17\ 12:00:00
DRBDADM_API_VERSION=2
DRBD_KERNEL_VERSION_CODE=0x090011
DRBD_KERNEL_VERSION=9.0.17
DRBDADM_VERSION_CODE=0x090800
DRBDADM_VERSION=9.8.0


Srdačan pozdrav / Best regards / Freundliche Grüße / Cordialement,
Siniša Bandin



More information about the drbd-user mailing list