mysql 8 high availability with drbd, corosync and pacemaker
Those days I won't recommend you to use these technique to MySQL HA. I love pacemaker but it's not suitable for datbases are those are much more complex.

I would recommend you to use MySQL InnoDB Cluster that handles everything, from orchestration to routing. It provides you everything you need built-in, split-brain prevention, quorum, data consistency, automatic data provisioning, ...

Take a look at : 


https://www.slideshare.net/Grypyrg/mysql-innodb-cluster-new-features-in-80-releases-best-practices
https://www.slideshare.net/Grypyrg/mysql-database-architectures-innodb-replicaset-cluster-220070786
https://www.youtube.com/watch?v=m7pFwxiglHc


Regards,