Solved

Sharing a virtual disk in windows with ESX 3.5

Posted on 2009-05-15
10
1,094 Views
Last Modified: 2012-05-07
Hey everyone I'm trying to see if its possible to share a virtual disk in ESX 3.5. I've setup a little test. So I have two Windows 2003 Enterprise servers each have a 10gb C drive and work. On lets say server 1 I then setup a 2nd disk and edited the VMX file to say the following below.

disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
scsi1.present = "true"
scsi1.sharedBus = "none"
scsi1.virtualDev = "lsilogic"
scsi1:0.present = "true"
scsi1:0.fileName = "Win2k3SB_1.vmdk"
scsi1:0.mode = "independent-persistent"
scsi1:0.shared = "TRUE"
scsi1:0.redo = ""
scsi1:0.deviceType = "scsi-hardDisk"
sched.scsi1:0.shares = "normal"

After powering it off I then added the 2nd disk to server 2. They can both use then disk when the other is not on. However is it possible to set it so multiple machines being on at the same time can see a disk.

The reason I'm trying to do this is I have a couple web servers that need to store lots of data. If they could point to the same virtual disk this would save me having to sync drives and using double hdd space.
0
Comment
Question by:Brandon_V
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24399452
Are you trying to evaluate Clustering ?
0
 
LVL 22

Expert Comment

by:65td
ID: 24400338
I don't think so, Windows will want to own or place locks on the disk.
Even when using fail-over clustering only one machine owns the shared disk, but the other node could own it.
0
 

Author Comment

by:Brandon_V
ID: 24400836
no see thats the thing I'm trying to do load balancing not clustering
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24401456
I think you should take a look at this article
Network Load Balancing: Frequently Asked Questions for Windows 2000 and Windows Server 2003 - http://technet.microsoft.com/en-us/library/cc758834.aspx
0
 
LVL 8

Expert Comment

by:markzz
ID: 24402016
I do see what you are trying to achieve,
The basic answer to this is NO. Even if you could configure ESX to alow it Windows can't do this.
In a cluster both servers see the disk but one server is always in read only or a volume lock state. In the event of one system failing the secondary assumes write access.
If you want to do load balancing you may be able to give 2 servers the same resources, use an altion or another load balancing method to distribule load to the servers but each server would see it's own disk. If the data on disk were a database you could then use active active replication.
Hey I've done quite a bit of clustering, well enough to make the statement that it's too complex and there are too many pitfalls to get by , OH and at the moment you need it most it fails.
My advice is don't go down this path but look at how you can more highly resource a single system ensureing you make it as redundant as possible and in the event of ESX use HA.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 21

Accepted Solution

by:
za_mkh earned 500 total points
ID: 24407426
The only way to get a two VM's to see the 'same' virtual disk is to use RDM (raw device maps)... but that's only for the purposes of clustering ... haven't tried to see if that would work for the 'load' balancing aspects. .. but it's worth a shot!  with the caveat that you will have a probability of 99% that corruption will occur on the volume.
http://communities.vmware.com/message/853209
http://www.boche.net/blog/index.php/2009/04/01/setup-for-microsoft-cluster-service/
 
 
 
0
 

Author Comment

by:Brandon_V
ID: 24420726
hehe why you say it would have a 99% chance of corruption ?
0
 
LVL 8

Expert Comment

by:markzz
ID: 24425046
Brandon
there is a very good chance the disk will corrupt, 2 Windows servers can't have control of the same disk block at the same time , clustering is your only option.
What happens when you open a textfile from 2 PC's and make changes at the same time then save on both.
It's a very simplistic example of why it doesn't work.
The one who writes last wins, if this were a database one server will see this as a corrupt database as the records it expects to be present won't be.
0
 

Author Comment

by:Brandon_V
ID: 24426657
well see thats the thing. I totaly get 2 people can't write to it at the same time. The thing is though its a batch job that processes a ton of jpg's and drops em there.

So its only going to be reading from IIS. I totaly get it if was a dB or something i'd want a cluster but this is just a disk with tons of images. So flat files no changes
0
 

Author Closing Comment

by:Brandon_V
ID: 31582066
wish there was a better solution but I guess its not possible as of yet.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
V2V Hyper-V RODC to ESXi 4 62
Change the root password remotely on esxi 6.0 3 36
Vsphere Replication on Evaluation vpshere mode 4 66
Convert VMWare to Hyper-V 8 61
This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now