question

ValerianoVillani-4221 avatar image
0 Votes"
ValerianoVillani-4221 asked deherman-MSFT answered

Shared disk on 2 VMs with live sync

Hallo


I'm really newbye on azure so please excuse me if my question could results trivial.

I've searching a solution where 2 VM in the same resource group could use a shared storage solution.

First VM host a my company's software that generate a huge number of small file (250k hours), and a second VM host a sftp server that can't use a mapped drive like root folder.

For this reason, i can't use a storage account file share. I've tried to implement a solution with a shared managed disk, but i realized that while 2 VMs are running, the jobs executed on the drive by one of them, don't seems to be in sync from what i see on the same shared disk on the other one.

Long story short: if i move 100 files on the shared disk in the first VM, they don't appers in the same shared disk on the socond one.

If i restart the second VM, i can see the file moved on the share disk before.
I need a solution where the disk could be synched between 2 vms


I don't understand if i must set up a cluster, but the VMs are'n in the same domain.

Could you please help my finding a best practice for this situation?

Thanks



Thanks

azure-virtual-machinesazure-filesazure-disk-storageazure-managed-disks
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered

@ValerianoVillani-4221

As noted in the documentation you need to have an application using SCSI Persistent Reservations in order for the VM to be aware of the writes from the other location. You can review a list of possible applications here.

Since your second VM is already a SFTP server have you tried writing directly to the location? We also have an example of an SFTP server backed by Azure Files that you could consider. Alternatively you might consider transitioning this over to an Azure Files share so you eliminate the need for this server.

Hope this helps! Let us know if you have any follow-up questions or issues.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.