Use the same disk for 2 Vms in Azure

Asked

Viewed 51 times

0

I am with 2 Vms (Ubuntu 15.10) and a load Speaker at port 80 to balance and distribute access to them. In these Vms I will use a Wordpress application, but I would like to know how I share a disk between these two Vms so that both can access the same folder location uploads wordpress..

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

inserir a descrição da imagem aqui

Below is the implementation diagram I’m trying to do.

inserir a descrição da imagem aqui

1 answer

1

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

What you can do is:

  1. Create a 3rd VM, attach a second disk and use Windows file sharing.
  2. Using Azure Storage, there is wordpress plugins to use Storage

So your machines will actually share the same file log.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.