none
Mounting file share on VMs

    Question

  • There is no limit on mounting the file shares, but I want to ask that if I mount a file share on the azure batch vm, then what will happen in the following scenarios:

    1. The vm goes down and another vm come up for it.

    2. The vm restarts.

    3. Batch pool gets deleted.

    Is it mandatory to un-mount the share always?

    Thursday, December 22, 2016 7:01 AM

Answers

  • Hi

    1. The vm goes down and another vm come up for it.

    Azure File Shares could mount on multiple VMs, you don't need to un-mount.

    2. The vm restarts.

    For a Windows VM, the VM would mount the File Shares automatic when VM is started. For a Linux VM, you should configure /etc/fstab file, then the VM would mount automatic.

    3. Batch pool gets deleted.

    Do you mean your VMs are deleted? You need to un-mount the share.

    Regards,

    Walter


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Thursday, December 22, 2016 8:11 AM
  • Hi

    When the VM is deleteing, the VM would release the link between the VMs and shares. So, even you don't un-mount the share, you could delete your VMs and the links have been released.

    Regards,

    Walter


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by KushalMS Thursday, December 22, 2016 9:15 AM
    Thursday, December 22, 2016 9:14 AM

All replies

  • Hi

    1. The vm goes down and another vm come up for it.

    Azure File Shares could mount on multiple VMs, you don't need to un-mount.

    2. The vm restarts.

    For a Windows VM, the VM would mount the File Shares automatic when VM is started. For a Linux VM, you should configure /etc/fstab file, then the VM would mount automatic.

    3. Batch pool gets deleted.

    Do you mean your VMs are deleted? You need to un-mount the share.

    Regards,

    Walter


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Thursday, December 22, 2016 8:11 AM
  • Thanks for the answers, but I have one more doubt.

    3. Batch pool gets deleted.

    Do you mean your VMs are deleted? You need to un-mount the share.

    Yes I meant if the VMs got deleted, so what will happen in this case if the un-mount doesn't happen for some reason. Like in the case where the vm goes down and a new vm comes up on its place, so un-mount for the old VM didn't happened.

    Thursday, December 22, 2016 9:08 AM
  • Hi

    When the VM is deleteing, the VM would release the link between the VMs and shares. So, even you don't un-mount the share, you could delete your VMs and the links have been released.

    Regards,

    Walter


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by KushalMS Thursday, December 22, 2016 9:15 AM
    Thursday, December 22, 2016 9:14 AM