2 vms that can't connect to the same sharing disk

SABATIER Brice 1 Reputation point
2021-01-13T15:04:25.833+00:00

i created a storage disk and then created 2 vms that are connected to that disk. When i connect to the vms i see the disk (same size, name etc) but when i put a file on it from a vm, the other one doesn't see it, and i don't know why

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,480 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
590 questions
{count} votes

3 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,016 Reputation points MVP
    2021-01-13T15:14:48.423+00:00

    @SABATIER Brice

    There is a limitations on the shared disks, Please refer to the below url to confirm your on the same page.
    Enable shared disk
    Enabling shared disks is only available to a subset of disk types. Currently only ultra disks and premium SSDs can enable shared disks.

    Share an Azure managed disk

    Let me know if any help required.

    ----------

    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.

    0 comments No comments

  2. deherman-MSFT 35,011 Reputation points Microsoft Employee
    2021-01-13T17:25:09.04+00:00

    @SABATIER Brice
    Shared managed disks do not natively offer a fully managed file system that can be accessed using SMB/NFS. You need to use a cluster manager, like Windows Server Failover Cluster (WSFC) or Pacemaker, that handles cluster node communication and write locking. So while it is possible to mount like you have you will need some cluster specific software for this to work. Please refer to the Sample Workloads section for some examples.

    You might consider using Azure Files. This will allow you to read and write to the same location without extra software. Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol or Network File System (NFS) protocol. Azure file shares can be mounted concurrently by cloud or on-premises deployments.

    -------------------------------

    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.

    0 comments No comments

  3. Alex Bykovskyi 1,841 Reputation points
    2021-01-15T22:39:29.867+00:00

    Hey,

    As mentioned, in order to get simultaneous access to the shared drive you will need clustered file system on top. You can deploy Failover Cluster on top of your VMs and add the drive as CSVFS. Depending on your goals, you can work with CSVFS directly or create HA File Server on top to get SMB/NFS access to share. Might help:
    https://www.starwindsoftware.com/resource-library/starwind-virtual-san-for-hyper-v-2-node-hyperconverged-scenario-with-windows-server-2016/#ba089b70927b84af91ccc33c1e84945d9fca17c7

    Cheers,

    Alex Bykovskyi

    StarWind Software

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    0 comments No comments