How to mount the existing shared disk to Linux VM

Lin Hua 0 Reputation points

I created a shared disk and shared it to 2 Linux VMs.

According to the following page's instruction, I prepare a new empty disk with partprobe command on 1st VM, but when I tried to mount it to the 2nd vm, I don't want to format the disk again, but it seems like I can't retrieve the disk partition information.

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
600 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 35,556 Reputation points Microsoft Employee

    @Lin Hua

    The above information provided is not correct. Shared disks cannot be mounted and managed like regular disks. You need to use a cluster manager, like Windows Server Failover Cluster (WSFC), or Pacemaker, that handles cluster node communication and write locking. This is because traditional file systems aren't designed for simultaneous access and can result in data corruption if two systems try to write to the same area of the disk at the same time. You can find examples of Supported OS and the cluster manager here.

    If you don't want to setup a cluster manager but want to access the same directory from multiple VMs then I would suggest using either Azure Files NFS or Azure Blob Storage with Blobfuse.

    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments