$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented; echo $?
exists -
create resource name:some-resource role:Secondary suspended:no force-io-failures:no may_promote:no promotion_score:0
create device name:some-resource volume:0 minor:1000 backing_dev:none disk:Diskless client:no quorum:yes
create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:StandAlone role:Unknown
create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off peer-disk:DUnknown peer-client:no resync-suspended:no
create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no
change resource name:some-resource may_promote:yes promotion_score:10101
change device name:some-resource volume:0 minor:1000 backing_dev:/dev/sda disk:UpToDate client:no quorum:yes
change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:yes
change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:Connected role:Secondary
change resource name:some-resource may_promote:yes promotion_score:10102
change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Established peer-disk:UpToDate peer-client:no
change resource name:some-resource role:Primary may_promote:no promotion_score:10102
0
$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented --diff; echo $?
exists -
create resource name:some-resource role:UNKNOWN->Secondary suspended:UNKNOWN->no force-io-failures:UNKNOWN->no may_promote:UNKNOWN->no promotion_score:0->0
create device name:some-resource volume:0 minor:1000 backing_dev:UNKNOWN->none disk:UNKNOWN->Diskless client:UNKNOWN->no
create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:UNKNOWN->StandAlone role:UNKNOWN->Unknown
create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:UNKNOWN->Off peer-disk:UNKNOWN->DUnknown peer-client:UNKNOWN->no resync-suspended:UNKNOWN->no
create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:UNKNOWN->no
change resource name:some-resource may_promote:no->yes promotion_score:0->10101
change device name:some-resource volume:0 minor:1000 backing_dev:none->/dev/sda disk:Diskless->UpToDate client:no quorum:yes
change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no->yes
change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:StandAlone->Connected role:Unknown->Secondary
change resource name:some-resource may_promote:yes->yes promotion_score:10101->10102
change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off->Established peer-disk:DUnknown->UpToDate peer-client:no
change resource name:some-resource role:Secondary->Primary may_promote:yes->no promotion_score:10102->10102
0
$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented --statistics; echo $?
exists -
create resource name:some-resource role:Secondary suspended:no force-io-failures:no write-ordering:none may_promote:no promotion_score:0
create device name:some-resource volume:0 minor:1000 backing_dev:none disk:Diskless client:no quorum:yes size:5 read:10 written:15 al-writes:40 bm-writes:50 upper-pending:60 lower-pending:70 al-suspended:no blocked:no
create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:StandAlone role:Unknown congested:no ap-in-flight:10 rs-in-flight:20
create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off peer-disk:DUnknown peer-client:no resync-suspended:no received:5 sent:10 out-of-sync:0 pending:30 unacked:40
create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no
change resource name:some-resource may_promote:yes promotion_score:10101
change device name:some-resource volume:0 minor:1000 backing_dev:/dev/sda disk:UpToDate client:no quorum:yes
change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:yes
change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:Connected role:Secondary
change resource name:some-resource may_promote:yes promotion_score:10102
change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Established peer-disk:UpToDate peer-client:no
change resource name:some-resource role:Primary may_promote:no promotion_score:10102
0
$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented --full; echo $?
exists -
create resource name:some-resource role:Secondary suspended:no force-io-failures:no write-ordering:none may_promote:no promotion_score:0
create device name:some-resource volume:0 minor:1000 backing_dev:none disk:Diskless client:no quorum:yes size:5 read:10 written:15 al-writes:40 bm-writes:50 upper-pending:60 lower-pending:70 al-suspended:no blocked:no
create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:StandAlone role:Unknown congested:no ap-in-flight:10 rs-in-flight:20
create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off peer-disk:DUnknown peer-client:no resync-suspended:no received:5 sent:10 out-of-sync:0 pending:30 unacked:40
create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no
change resource name:some-resource role:Secondary suspended:no force-io-failures:no write-ordering:none may_promote:yes promotion_score:10101
change device name:some-resource volume:0 minor:1000 backing_dev:/dev/sda disk:UpToDate client:no quorum:yes size:5 read:10 written:15 al-writes:40 bm-writes:50 upper-pending:60 lower-pending:70 al-suspended:no
change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:yes
change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:Connected role:Secondary congested:no ap-in-flight:10 rs-in-flight:20
change resource name:some-resource role:Secondary suspended:no force-io-failures:no write-ordering:none may_promote:yes promotion_score:10102
change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Established peer-disk:UpToDate peer-client:no resync-suspended:no received:5 sent:10 out-of-sync:0 pending:30 unacked:40
change resource name:some-resource role:Primary suspended:no force-io-failures:no write-ordering:none may_promote:no promotion_score:10102
0
$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented --color | cat -v; echo $?
exists -
create resource name:some-resource role:Secondary suspended:no force-io-failures:no may_promote:no promotion_score:0
create device name:some-resource volume:0 minor:1000 backing_dev:none disk:^[[1;31mDiskless^[[0m client:no quorum:yes
create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:^[[1;31mStandAlone^[[0m role:Unknown
create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off peer-disk:DUnknown peer-client:no resync-suspended:no
create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no
change resource name:some-resource may_promote:yes promotion_score:10101
change device name:some-resource volume:0 minor:1000 backing_dev:/dev/sda disk:^[[1;32mUpToDate^[[0m client:no quorum:yes
change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:yes
change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:Connected role:Secondary
change resource name:some-resource may_promote:yes promotion_score:10102
change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Established peer-disk:^[[32mUpToDate^[[0m peer-client:no
change resource name:some-resource role:^[[1;36mPrimary^[[0m may_promote:no promotion_score:10102
0
$ cat events2-all-create-change.msgs | drbdsetup_events2_instrumented --timestamps | sed 's/....-..-..T..:..:.........+..:../TIME/'; echo $?
TIME exists -
TIME create resource name:some-resource role:Secondary suspended:no force-io-failures:no may_promote:no promotion_score:0
TIME create device name:some-resource volume:0 minor:1000 backing_dev:none disk:Diskless client:no quorum:yes
TIME create connection name:some-resource peer-node-id:1 conn-name:some-peer connection:StandAlone role:Unknown
TIME create peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Off peer-disk:DUnknown peer-client:no resync-suspended:no
TIME create path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:no
TIME change resource name:some-resource may_promote:yes promotion_score:10101
TIME change device name:some-resource volume:0 minor:1000 backing_dev:/dev/sda disk:UpToDate client:no quorum:yes
TIME change path name:some-resource peer-node-id:1 conn-name:some-peer local:ipv4:1.2.3.4:7789 peer:ipv4:5.6.7.8:7790 established:yes
TIME change connection name:some-resource peer-node-id:1 conn-name:some-peer connection:Connected role:Secondary
TIME change resource name:some-resource may_promote:yes promotion_score:10102
TIME change peer-device name:some-resource peer-node-id:1 conn-name:some-peer volume:0 replication:Established peer-disk:UpToDate peer-client:no
TIME change resource name:some-resource role:Primary may_promote:no promotion_score:10102
0
