Use the same disk for 2 VMs on Azure

0

I'm with 2 Vs (Ubuntu 15.10) and a load balancer on port 80 to balance and distribute access to them. In these Vms I will use an application in Wordpress, however I would like to know how I share a disk between these two Vms so that both can access the same location of the folder uploads of wordpress ..

I have already created a new disk and attached it to one of the Vm, but when trying to attach to the other the following error is generated

BelowisthediagramoftheimplementationI'mtryingtodo.

    
asked by anonymous 22.03.2016 / 18:45

1 answer

1

You can not do this, at least in this way. Attaching a disk to a VM is like connecting this disk to the machine's SATA input, there is no way to share it.

What you can do is:

  • Create a 3rd VM, attach a second disk, and use Windows file sharing.
  • Use Azure Storage, there is wordpress plug-ins to use Storage
  • So your machines will actually share the same file storage.

        
    23.03.2016 / 13:23