[DRBD-user] DRBD Fails to Establish Connection

Eric Robinson eric.robinson at psmnv.com
Tue Jul 18 23:48:40 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Anybody know what this means?

ha11b:~ # drbdadm attach ha01_mysql
Device '0' is configured!
Command 'drbdmeta 0 v09 /dev/md2 internal apply-al' terminated with exit code 20

DRBD starts and connects, but does not stay connected.

Here are the relevant log entries when drbd starts...

I'm using drbd 9.0.1 (which is what came with SLE 12 SP2).

2017-07-18T14:39:34.536737-07:00 ha11b kernel: [352331.438176] drbd: initialized. Version: 9.0.1-1 (api:2/proto:86-111)
2017-07-18T14:39:34.536746-07:00 ha11b kernel: [352331.438178] drbd: GIT-hash: 86e443973082570aeb651848db89e0c7b995c306 build by abuild
2017-07-18T14:39:34.536747-07:00 ha11b kernel: [352331.438178] drbd: registered as block device major 147
2017-07-18T14:39:34.541488-07:00 ha11b drbd[31266]: Starting DRBD resources: [
2017-07-18T14:39:34.542640-07:00 ha11b kernel: [352331.443664] drbd ha01_mysql: Starting worker thread (from drbdsetup [31283])
2017-07-18T14:39:34.543248-07:00 ha11b drbd[31266]:      create res: ha01_mysql ha02_mysql
2017-07-18T14:39:34.544119-07:00 ha11b kernel: [352331.444514] drbd ha02_mysql: Starting worker thread (from drbdsetup [31285])
2017-07-18T14:39:34.545566-07:00 ha11b drbd[31266]:    prepare disk: ha01_mysql ha02_mysql
2017-07-18T14:39:34.580074-07:00 ha11b kernel: [352331.481387] drbd ha01_mysql/0 drbd0: disk( Diskless -> Attaching )
2017-07-18T14:39:34.580082-07:00 ha11b kernel: [352331.481407] drbd ha01_mysql/0 drbd0: Maximum number of peer devices = 1
2017-07-18T14:39:34.580083-07:00 ha11b kernel: [352331.481498] drbd ha01_mysql: Method to ensure write ordering: flush
2017-07-18T14:39:34.580083-07:00 ha11b kernel: [352331.481500] drbd ha01_mysql/0 drbd0: peer DRBD too old, does not support TRIM: disabling discards
2017-07-18T14:39:34.580084-07:00 ha11b kernel: [352331.481503] drbd ha01_mysql/0 drbd0: drbd_bm_resize called with capacity == 2348696088
2017-07-18T14:39:34.604146-07:00 ha11b kernel: [352331.502823] drbd ha01_mysql/0 drbd0: resync bitmap: bits=293587011 words=4587298 pages=8960
2017-07-18T14:39:34.632173-07:00 ha11b kernel: [352331.530122] drbd ha01_mysql/0 drbd0: recounting of set bits took additional 12ms
2017-07-18T14:39:34.632180-07:00 ha11b kernel: [352331.530135] drbd ha01_mysql/0 drbd0: disk( Attaching -> Inconsistent )
2017-07-18T14:39:34.632181-07:00 ha11b kernel: [352331.530139] drbd ha01_mysql/0 drbd0: attached to current UUID: 0000000000000004
2017-07-18T14:39:34.648149-07:00 ha11b kernel: [352331.547708] drbd ha02_mysql/0 drbd1: disk( Diskless -> Attaching )
2017-07-18T14:39:34.648167-07:00 ha11b kernel: [352331.547723] drbd ha02_mysql/0 drbd1: Maximum number of peer devices = 1
2017-07-18T14:39:34.648168-07:00 ha11b kernel: [352331.547835] drbd ha02_mysql: Method to ensure write ordering: flush
2017-07-18T14:39:34.648169-07:00 ha11b kernel: [352331.547838] drbd ha02_mysql/0 drbd1: peer DRBD too old, does not support TRIM: disabling discards
2017-07-18T14:39:34.648169-07:00 ha11b kernel: [352331.547842] drbd ha02_mysql/0 drbd1: drbd_bm_resize called with capacity == 2348788240
2017-07-18T14:39:34.668017-07:00 ha11b kernel: [352331.569562] drbd ha02_mysql/0 drbd1: resync bitmap: bits=293598530 words=4587478 pages=8960
2017-07-18T14:39:34.712116-07:00 ha11b kernel: [352331.613044] drbd ha02_mysql/0 drbd1: recounting of set bits took additional 12ms
2017-07-18T14:39:34.712131-07:00 ha11b kernel: [352331.613064] drbd ha02_mysql/0 drbd1: disk( Attaching -> Inconsistent )
2017-07-18T14:39:34.712132-07:00 ha11b kernel: [352331.613069] drbd ha02_mysql/0 drbd1: attached to current UUID: 0000000000000004
2017-07-18T14:39:34.713772-07:00 ha11b drbd[31266]:     adjust disk: ha01_mysql ha02_mysql
2017-07-18T14:39:34.719525-07:00 ha11b drbd[31266]:     prepare net: ha01_mysql ha02_mysql
2017-07-18T14:39:34.720100-07:00 ha11b kernel: [352331.618877] drbd ha01_mysql ha11a: Starting sender thread (from drbdsetup [31324])
2017-07-18T14:39:34.720106-07:00 ha11b kernel: [352331.620205] drbd ha02_mysql ha11a: Starting sender thread (from drbdsetup [31331])
2017-07-18T14:39:34.720107-07:00 ha11b kernel: [352331.621559] drbd ha01_mysql ha11a: conn( StandAlone -> Unconnected )
2017-07-18T14:39:34.720997-07:00 ha11b drbd[31266]: attempt to connect: ha01_mysql ha02_mysql
2017-07-18T14:39:34.721228-07:00 ha11b drbd[31266]: ]
2017-07-18T14:39:34.724015-07:00 ha11b kernel: [352331.622425] drbd ha02_mysql ha11a: conn( StandAlone -> Unconnected )
2017-07-18T14:39:34.724021-07:00 ha11b kernel: [352331.623610] drbd ha01_mysql ha11a: Starting receiver thread (from drbd_w_ha01_mys [31284])
2017-07-18T14:39:34.724022-07:00 ha11b kernel: [352331.623781] drbd ha01_mysql ha11a: conn( Unconnected -> Connecting )
2017-07-18T14:39:34.724023-07:00 ha11b kernel: [352331.625495] drbd ha02_mysql ha11a: Starting receiver thread (from drbd_w_ha02_mys [31286])
2017-07-18T14:39:34.724023-07:00 ha11b kernel: [352331.625568] drbd ha02_mysql ha11a: conn( Unconnected -> Connecting )
2017-07-18T14:39:35.224439-07:00 ha11b kernel: [352332.122298] drbd ha01_mysql ha11a: Handshake successful: Agreed network protocol version 111
2017-07-18T14:39:35.224456-07:00 ha11b kernel: [352332.122302] drbd ha01_mysql ha11a: Feature flags enabled on protocol level: 0x7 TRIM THIN_RESYNC WRITE_SAME.
2017-07-18T14:39:35.224458-07:00 ha11b kernel: [352332.122318] drbd ha01_mysql ha11a: Starting ack_recv thread (from drbd_r_ha01_mys [31337])
2017-07-18T14:39:35.228378-07:00 ha11b kernel: [352332.126320] drbd ha02_mysql ha11a: Handshake successful: Agreed network protocol version 111
2017-07-18T14:39:35.228384-07:00 ha11b kernel: [352332.126325] drbd ha02_mysql ha11a: Feature flags enabled on protocol level: 0x7 TRIM THIN_RESYNC WRITE_SAME.
2017-07-18T14:39:35.228385-07:00 ha11b kernel: [352332.126340] drbd ha02_mysql ha11a: Starting ack_recv thread (from drbd_r_ha02_mys [31342])
2017-07-18T14:39:35.288178-07:00 ha11b kernel: [352332.186384] drbd ha01_mysql ha11a: Preparing remote state change 2511193179 (primary_nodes=0, weak_nodes=0)
2017-07-18T14:39:35.288186-07:00 ha11b kernel: [352332.187104] drbd ha01_mysql ha11a: Committing remote state change 2511193179
2017-07-18T14:39:35.288187-07:00 ha11b kernel: [352332.187125] drbd ha01_mysql ha11a: conn( Connecting -> Connected ) peer( Unknown -> Secondary )
2017-07-18T14:39:35.300174-07:00 ha11b kernel: [352332.198377] drbd ha02_mysql ha11a: Preparing remote state change 2545644491 (primary_nodes=0, weak_nodes=0)
2017-07-18T14:39:35.300184-07:00 ha11b kernel: [352332.199095] drbd ha02_mysql ha11a: Committing remote state change 2545644491
2017-07-18T14:39:35.300186-07:00 ha11b kernel: [352332.199116] drbd ha02_mysql ha11a: conn( Connecting -> Connected ) peer( Unknown -> Secondary )
2017-07-18T14:39:35.304180-07:00 ha11b kernel: [352332.201766] drbd ha01_mysql/0 drbd0: peer DRBD too old, does not support TRIM: disabling discards
2017-07-18T14:39:35.304189-07:00 ha11b kernel: [352332.201779] drbd ha01_mysql/0 drbd0 ha11a: drbd_sync_handshake:
2017-07-18T14:39:35.304191-07:00 ha11b kernel: [352332.201782] drbd ha01_mysql/0 drbd0 ha11a: self 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:0 flags:0
2017-07-18T14:39:35.304192-07:00 ha11b kernel: [352332.201784] drbd ha01_mysql/0 drbd0 ha11a: peer 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:0 flags:124
2017-07-18T14:39:35.304193-07:00 ha11b kernel: [352332.201786] drbd ha01_mysql/0 drbd0 ha11a: uuid_compare()=0 by rule 10
2017-07-18T14:39:35.304194-07:00 ha11b kernel: [352332.201801] drbd ha01_mysql/0 drbd0 ha11a: pdsk( DUnknown -> Inconsistent ) repl( Off -> Established )
2017-07-18T14:39:35.322129-07:00 ha11b drbd[31266]: WARN: stdin/stdout is not a TTY; using /dev/consoledrbdadm: Unknown command 'sh-b-pri'
2017-07-18T14:39:35.322355-07:00 ha11b drbd[31266]: .
2017-07-18T14:39:35.324038-07:00 ha11b kernel: [352332.221724] drbd ha02_mysql/0 drbd1: peer DRBD too old, does not support TRIM: disabling discards
2017-07-18T14:39:35.324045-07:00 ha11b kernel: [352332.221734] drbd ha02_mysql/0 drbd1 ha11a: drbd_sync_handshake:
2017-07-18T14:39:35.324046-07:00 ha11b kernel: [352332.221737] drbd ha02_mysql/0 drbd1 ha11a: self 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:0 flags:0
2017-07-18T14:39:35.324047-07:00 ha11b kernel: [352332.221739] drbd ha02_mysql/0 drbd1 ha11a: peer 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:0 flags:124
2017-07-18T14:39:35.324048-07:00 ha11b kernel: [352332.221741] drbd ha02_mysql/0 drbd1 ha11a: uuid_compare()=0 by rule 10
2017-07-18T14:39:35.324048-07:00 ha11b kernel: [352332.221755] drbd ha02_mysql/0 drbd1 ha11a: pdsk( DUnknown -> Inconsistent ) repl( Off -> Established )


--
Eric Robinson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170718/afa3aa93/attachment.htm>


More information about the drbd-user mailing list