Hi,

I have two Centos 7 virtual machines running in OpenStack pike, and I
would like to setup the drbd between them. My configuration is like
this on both of them:

[root@drbd1 ~]# drbdadm dump
# /etc/drbd.conf
global {
    usage-count no;
}

common {
    net {
        protocol           C;
    }
}

# resource drbd0 on drbd1.novalocal: not ignored, not stacked
# defined at /etc/drbd.d/drbd0.res:1
resource drbd0 {
    device               /dev/drbd0 minor 0;
    disk                 /dev/vdb;
    meta-disk            internal;
    on drbd1 {
        node-id 0;
        address          ipv4 192.168.1.251:7789;
    }
    on drbd2 {
        node-id 1;
        address          ipv4 192.168.1.252:7789;
    }
}

The drbd version is this one:

[root@drbd1 ~]# rpm -qa | grep drbd
drbd90-utils-9.3.1-1.el7.elrepo.x86_64
kmod-drbd90-9.0.14-1.el7_5.elrepo.x86_64

>From each node, I can ping both IP addresses and the firewall is
disabled. However, after starting the drbd, the status is stuck in
Connecting, and on the logs I can see the following: "prepare net:
drbd0:failed(new-peer:10)"

[root@drbd1 ~]# drbdadm status
drbd0 role:Secondary
  disk:Inconsistent
  drbd2 connection:Connecting

[root@drbd1 ~]# journalctl -u drbd
-- Logs begin at Wed 2018-08-15 20:37:05 UTC, end at Wed 2018-08-15
21:01:01 UTC. --
Aug 15 20:37:15 drbd1.novalocal systemd[1]: Starting DRBD -- please
disable. Unless you are NOT using a cluster manager....
Aug 15 20:37:16 drbd1.novalocal drbd[969]: Starting DRBD resources: [
Aug 15 20:37:16 drbd1.novalocal drbd[969]: create res: drbd0
Aug 15 20:37:16 drbd1.novalocal drbd[969]: prepare disk: drbd0
Aug 15 20:37:16 drbd1.novalocal drbd[969]: prepare net:
drbd0:failed(new-peer:10)
Aug 15 20:37:16 drbd1.novalocal drbd[969]: (null): [skipped:drbd0]
Aug 15 20:37:16 drbd1.novalocal drbd[969]: adjust disk: [skipped:drbd0]
Aug 15 20:37:16 drbd1.novalocal drbd[969]: attempt to connect: [skipped:drbd0]
Aug 15 20:37:16 drbd1.novalocal drbd[969]: ]
Aug 15 20:37:16 drbd1.novalocal drbd[969]: WARN: stdin/stdout is not a
TTY; using /dev/consoleopen('/dev/console, O_RDONLY): Permission
Aug 15 20:37:16 drbd1.novalocal drbd[969]: WARN: stdin/stdout is not a
TTY; using /dev/consoledrbdadm: Unknown command 'sh-b-pri'
Aug 15 20:37:16 drbd1.novalocal drbd[969]: .
Aug 15 20:37:16 drbd1.novalocal systemd[1]: Started DRBD -- please
disable. Unless you are NOT using a cluster manager..

Any clue what I am doing wrong?

Thanks and best regards,
Adrian
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to