Sun Cluster 3.2 in Vmware (Fusion)

Some quick notes regarding getting a cluster working in vmware on the mac
Each VM will require:
3 or more Nics
1 or more root disks
512MB or more ram 

On the first virtual machine also add a load of extra scsi disks these I created in the parent directory so that I could see them. The next step is to then right click on the Solaris Cluster Node A and “Show Package Contents”. Inside the Node ‘Package’ will be a .vmx file, this is a text file that contains the configuration information for this particular Virtual machine. Cluster File systemOpen the vmx file and look for the scsi information (specifically that relating to the extra scsi disks we added) this will need copying. Then open Node B and add this scsi information to it’s vmx file (sometimes absolute paths are required) 

scsi0:2.present = "TRUE"
scsi0:2.fileName = "../SCSI_Disk1.vmdk"
scsi0:3.present = "TRUE"
scsi0:3.fileName = "../SCSI_Disk2.vmdk"
scsi0:4.present = "TRUE"
scsi0:4.fileName = "../SCSI_Disk3.vmdk"
scsi0:5.present = "TRUE"
scsi0:5.fileName = "../SCSI_Disk4.vmdk

This will have both nodes pointing to the same scsi disks, in essence this would be shared scsi storage. When one of these nodes is starts it will create a bunch of .lck files that will mean that the scsi devices are locked to one particular virtual machine. Either manually delete these lck files or script something to remove them.

#!/bin/bash

# Script to remove locks on Disk Images
# Dan – 27/3/08
# ——————–

SCSI_LOCKS=( SCSI_Disk1.vmdk.lck SCSI_Disk2.vmdk.lck SCSI_Disk3.vmdk.lck SCSI_Disk4.vmdk.lck )

for (( i = 0 ; i < ${#SCSI_LOCKS[@]} ; i++ ))
do
    echo "Checking for" ${SCSI_LOCKS[$i]}
    if test -s ${SCSI_LOCKS[$i]}
    then
        echo "found " ${SCSI_LOCKS[$i]}
        rm -R ${SCSI_LOCKS[$i]}
    else
        echo "" $i
    fi
done

  1. Finally fixed the indentations !

  2. Ta for this! I found a handy option though which means you don’t have to dick about with removing lockfiles:

    disk.locking = “false”

    Add that to your .vmx file for each node.

  3. Nice post u have here :D Added to my RSS reader

    • Lne
    • July 2nd, 2008

    Nice post… have you set any different subnet on Fusion ?

    • dan
    • July 2nd, 2008

    Can you elaborate? different subnets for which particular networks?

  4. Hello,
    Great job. But not enought info. Where can i read more?

    Have a nice day
    Hobosic

    • karam abuataya
    • July 2nd, 2008

    can you please provide some installation guide for this process

    • dan
    • July 2nd, 2008

    Hi Karam, are you asking for a how-to of installing cluster? As this post was a quick guide to building a virtualized infrastructure as close to the requirements of Solaris Cluster. Most of Suns install guides can be applied to the virtualized infrastructure, so installing is pretty much the same as normal.

    • Bala
    • July 2nd, 2008

    Hi Please send the link for sun cluster.

    Thanks & Regards
    T. Balakrishnan

  1. July 2nd, 2008