Using the Azure File Service on Linux

The Microsoft Azure File Service is a new SMB shared-storage service offered on the Microsoft Azure public cloud.
The service allows for the instant provisioning of file shares for private access by cloud provisioned VMs using the SMB 2.1 protocol, and additionally supports public access via a new REST interface .

Linux VMs deployed on Azure can make use of this service using the Linux Kernel CIFS client . The kernel client must be configured to support and use the SMB 2.1 protocol dialect:
  • CONFIG_CIFS_SMB2 must be enabled in the kernel configuration at build time
    • Use
      # zcat /proc/config.gz | grep CONFIG_CIFS_SMB2
      to check this on a running system.
  • The vers=2.1 mount.cifs parameter must be provided at mount time.
  • Furthermore, the Azure storage account and access key must be provided as username and password.
# mount.cifs -o vers=2.1,user=smb //smb.file.core.windows.net/share /share/
Password for smb@//smb.file.core.windows.net/share:  ******...
# df -h /share/
Filesystem                         Size  Used Avail Use% Mounted on
//smb.file.core.windows.net/share  5.0T     0  5.0T   0% /share
This feature will be supported with the upcoming release of SUSE Linux Enterprise Server 12, and future openSUSE releases.
Disclosure: I work in the Labs department at SUSE.
我来评几句
登录后评论

已发表评论数()

相关站点

+订阅
热门文章