MySQL / DRBD / Pacemaker on EC2 I am trying to setup DRBD/MySQL/Corosync/Pacemaker on AWS EC2 instances, though I am not sure if it will work since how to integrate VIP is a problem for me. 

Anyone have any thoughts on what to do ?
For amazon AWS you have two options:


Secondary Private IPs
Elastic IPs


Then you'll need to edit your IP2addr resource agent (under /usr/lib/ocf/resource.d/heartbeat/IPaddr2) to manage the IP failover in-front of amazon.


For Elastic IPs I found this solution.
For secondary IPs I guess you'll just need to include the AWS CLI
commands: ec2-assign-private-ip-addresses when promoting and
ec2-unassign-private-addresses when demoting.