VMware Communities > VMTN > General > Virtual Machine & Guest OS > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
3 Replies Last post: Jun 19, 2009 7:16 AM by weinstein5
Reply

Shared Disks and disk cache

Jun 19, 2009 5:22 AM

Click to view bluedrake's profile Novice bluedrake 24 posts since
Jan 7, 2008

Hi all

I have followed the steps below to attach a drive to two virtaul machines

vmkfstools -c 500G -d eagerzeroedthick -a lsilogic /vmfs/volumes/*/*/satashare.vmdk


Once that was done, i turned off the vitrual machines and attached the drive:


  • Attached it on a sperate scsi controler
  • Added it as a independent persistent drive
  • Changed the new scsi controler to a virtual device

When i powered on the virtual machines they could all see the disk but they could not share the information on the disk, the machines only saw the information originally put there by themselves.

I have read that i have to edit the following in the config file

scsi1.present = "TRUE" scsi1.sharedBus = "none" scsi1.virtualDev = "lsilogic" scsi1:0.present = "TRUE" scsi1:0.fileName = "D:\Virtual Machines\Shared Disk\SHARED-DISK.vmdk" to the following disk.locking = "FALSE" diskLib.dataCacheMaxSize = "0" #scsi1 data storage scsi1.present = "TRUE" scsi1.virtualDev = "lsilogic" scsi1.sharedbus = "none" scsi1:0.present = "TRUE" scsi1:0.fileName = " D:\Virtual Machines\Shared Disk\SHARED-DISK.vmdk " scsi1:0.mode = "independent-persistent" scsi1:0.shared = "TRUE" scsi1:0.redo = "" Do i have to add the "diskLib.dataCacheMaxSize" line in as we are doing this for sql servers and dont want all the drives to have a 0 cache size. Thanks for the help in advance :)

Reply Re: Shared Disks and disk cache Jun 19, 2009 5:26 AM
Click to view weinstein5's profile Guru weinstein5 6,208 posts since
Nov 19, 2005
VMware
I believe you will need cliustering software to have both O/Ses control the sharing of the disk - an O/S will not do this on its own - if you want to simply share the information I would give the disk to one of the VMs and use either SMB/NFS shares to allow the other VM access -


If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Reply Re: Shared Disks and disk cache Jun 19, 2009 6:12 AM
in response to: weinstein5
Click to view bluedrake's profile Novice bluedrake 24 posts since
Jan 7, 2008

Ahhh that sucks, do you know what clustering application I would have to use to do this?

Dont really want to have to use a shared drive via SMB/NFS as this will use the network card for data copies

Reply Re: Shared Disks and disk cache Jun 19, 2009 7:16 AM
in response to: bluedrake
Click to view weinstein5's profile Guru weinstein5 6,208 posts since
Nov 19, 2005
VMware
The one most frequesntly used is MS Clustering Services -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Actions