.. on Linux
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.
Open 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.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.
# 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
| Print article | This entry was posted by dan on July 2, 2008 at 10:38 am, and is filed under Computers. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
Finally fixed the indentations !
about 2 years ago
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.
about 1 year ago
Nice post u have here
Added to my RSS reader
about 1 year ago
Nice post… have you set any different subnet on Fusion ?
about 1 year ago
Can you elaborate? different subnets for which particular networks?
about 1 year ago
Hello,
Great job. But not enought info. Where can i read more?
Have a nice day
Hobosic
about 1 year ago
can you please provide some installation guide for this process
about 1 year ago
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.
about 8 months ago
Hi Please send the link for sun cluster.
Thanks & Regards
T. Balakrishnan
about 5 months ago
Hi,
Interesting article. I’m interested in simulating a two node cluster but I’m stuck at the shared disks section.
Can this also be achieve using veritas cluster?
Is there a step by step for simulating a clustered scenario in fusion?
Thanks
about 5 months ago
This was done using VMware Fusion on my macbook, I assume Veritas Cluster shouldn’t be a problem either however i’ve not tried it…
I’ll drop you an email too, see if I can help with your cluster build.
–Dan