This is very old news, but one of the neat things about ESX is that you can build clusters for testing and don’t have to shell out for a split-bus DAS or SAN space. My colleague, who’s been using ESX for good and evil (testing Veritas Cluster Server) needed to build one in our dev environment the other day. Last time I did this was to cluster VirtualCenter 2.0.2 and I was a bit rusty on the process.
So, for my reference, do this:
Create a shared vmdk to act as the quorum disk using vmkfstools (it needs to be in thick format)
vmkfstools -c 512m -a lsilogic -d thick /vmfs/volumes/datastore/quorum.vmdk
-c to create a vmdk and what size it should be
-a to specify the adapter type (lsilogic or buslogic)
-d can specify some neat things, like RDM settings, etc
Make another vmdk if you’d like to, well, share some data between the nodes.
Add the disk to the guest as an existing device and change the SCSI ID of the card to something like SCSI (1:0). This adds another SCSI adapter to the guest. Set the sharing mode on the adapter virtual or physical, depending on whether you want the cluster in the box or sharing with another physical / virtual host outside of the ESX host. If you don’t specify the -a option when you create the vmdk, it defaults to buslogic. Obviously if you want to share the disk with another physical host you can’t use a vmdk.
Do the same on the other guest / physical host / etc. Install MSCS or VCS or whatever passes as a clustering solution in your life. Enjoy. I also recommend the man page for vmkfstools – it’s an invaluable reference.