none
Requirement of File Sharing across multiple VMs in Azure

    Question

  • Hi All, 

    we have requirement for smooth functioning of our service , that in case of failure on our primary VM we are able to switch to secondary , plus all the client files which have been stored in primary VM , will be available on secondary i.e. no impact to client side.

    Currently we are evaluating various approaches to do achieve this:

    1.Create a VNet-Vnet communication between VMs so that we can access file stored on primary Vm.

    2.Use windows Azure File service offering , but are unclear about how angular apps are going to access it ??

    Kindly provide your inputs on which approach will make the architecture more scalable and future proof.

    Thanks

    Tuesday, July 19, 2016 12:26 PM

All replies

  • Hi Dev,

    Thank you for posting here! We are happy to assist you.

    This article will walk you through the steps to create a connection between virtual networks.Configure a VNet-to-VNet connection by using Azure Resource Manager and Classic Portal
    For more on information
    VNet-to-VNet see here: How to Connecting Virtual Networks in Azure across Different Regions

    The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between VMs using standard and familiar file system APIs like ReadFile and WriteFile.

    For more information, on Microsoft Azure File Service. Click here 

    For complete information on Azure storage; Refer to the below mentioned link:

    https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/

    Regards,
    Sumanth BM


    Wednesday, July 20, 2016 8:04 AM
    Moderator
  • Hi All, 

    we have requirement for smooth functioning of our service , that in case of failure on our primary VM we are able to switch to secondary , plus all the client files which have been stored in primary VM , will be available on secondary i.e. no impact to client side.

    Currently we are evaluating various approaches to do achieve this:

    1.Create a VNet-Vnet communication between VMs so that we can access file stored on primary Vm.

    2.Use windows Azure File service offering , but are unclear about how angular apps are going to access it ??

    Kindly provide your inputs on which approach will make the architecture more scalable and future proof.

    Thanks

    Hi Dev2910, 

    If your application requires really smooth service you may need to use a virtual shared storage solution.

    Vnet-Vnet communication is not going to work unless there's something constantly replicating the data.

    SMB 2.1 may be ok, but here's another viable option:

    If your application is cluster-aware you'll get best results by building a cluster of 2 nodes and configuring storage replication between them.

    Cluster part is easy, you get 2 machines into the same domain, install failover clustering feature and join them into a failover cluster. 

    Shared-nothing storage is configured using StarWind Virtual SAN. You can either install it in the VM or get a pre-built VM right from Azure Portal. StarWind will synchronously replicate the storage between 2 VMs allowing your application a smooth failover between them.

    Azure Failover Cluster Storage StarWind 

    Hope this helps

    Wednesday, July 20, 2016 3:37 PM