Let us assume your servers are named like this: server1 = primary server2 = secondary You want to make server2 the default primary and it should carry the load.
1.) On server1 execute the following commands: /etc/init.d/heartbeat stop /sbin/drbdadm secondary vz 2.) On server2 execute the following commands: /sbin/drbdadm primary vz 3.) On server1 execute the following commands: /etc/init.d/heartbeat start 4.) On server2 execute the following commands: /etc/init.d/heartbeat reload Give it like 60-90 seconds to kick in. Then check with this commands on both nodes: cat /proc/drbd vzlist -a "cat /proc/drbd" should now report "Primary/Secondary" on server2 and "Secondary/Primary" on server1.
Additionally "vzlist -a" should show the VPS either starting or running on server2.
|