Shared storage on Linux via Azure Files Preview - Part 1

Sign in to queue

Description

We will setup a highly available master/slave Linux cluster on Azure using shared storage by mounting Azure Files (Preview feature) via NFS on Linux.

Part 1: in this video, we create an Azure Files share and mount it via NFS on Linux on Azure.

 

NOTE: Each virtual machine has a temporary, local resource disk attached. Because data on a resource disk may not be durable across reboots, it is often used by applications and processes running in the virtual machine for transient and temporary storage of data. It is also used to store page or swap files for the operating system. On Linux, the resource disk is typically managed by the Azure Linux Agent and automatically mounted to /mnt/resource (or /mnt on Ubuntu images). Note that the resource disk is a *temporary* disk, and might be emptied when the VM is deprovisioned. On the other hand, on Linux the data disk might be named by the kernel as `/dev/sdc`, and users will need to partition, format and mount that resource.

Embed

Download

Download this episode

The Discussion

  • User profile image
    Krishna Prasad

    Here is the case for me....

    When I tried with in Azure (My VM is on Azure and My Storage account is also on the same region) with SMB 3.0, I have been getting mount errors. But when I changed the SMB Version to 2.1, it got succeed. See Below with Examples

    Eg:

    Failing Command (with SMB 3.0 version) with in Azure

    sudo mount -t cifs //storageaccountname.file.core.windows.net/shared /mnt/mount -o vers=3.0,username=xxxxxxx,password=xxxxxxxx,dir_mode=0777,file_mode=0777

    Result:

    mount error(11): Resource temporarily unavailable Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    Working Command (with SMB 2.1 version) with in Azure

    sudo mount -t cifs //storageaccountname.file.core.windows.net/shared /mnt/mount -o vers=2.1,username=xxxxxxx,password=xxxxxxxx,dir_mode=0777,file_mode=0777

    Result:
    It got mounted successfully

Add Your 2 Cents