【问题标题】:Not able to mount azure file share into local RHEL7 VM无法将 azure 文件共享挂载到本地 RHEL7 VM
【发布时间】:2018-04-15 22:44:42
【问题描述】:

我想从 Azure 文件共享挂载(符号链接)到本地 RHEL7 VM。我正在使用以下命令

mount -t cifs //<storage-account-name>.file.core.windows.net/<share-name>  /mymountpoint -o vers=3.0,username=<storage-acc-name>,password=<pwd>,dir_mode=0777,file_mode=0777,sec=ntlmssp,mfsymlinks

但出现以下错误

安装错误(13):权限被拒绝

参考 mount.cifs(8) 手册页(例如 man mount.cifs)

`The dmesg | tail gives the following log
[root@googleapps ~]# dmesg | tail
[98383.619149] fs/cifs/smb2misc.c: SMB2 data length 0 offset 0
[98383.619151] fs/cifs/smb2misc.c: SMB2 len 77
[98383.619163] fs/cifs/transport.c: cifs_sync_mid_result: cmd=1 mid=1 state=4
[98383.619168] Status code returned 0xc0000022 STATUS_ACCESS_DENIED
[98383.619175] fs/cifs/smb2maperror.c: Mapping SMB2 status code -1073741790 to POSIX err -13
[98383.619177] fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[98383.619181] CIFS VFS: Send error in SessSetup = -13
[98383.619185] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 59) rc = -13
[98383.619297] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 58) rc = -13
[98383.619300] CIFS VFS: cifs_mount failed w/return code = -13`

【问题讨论】:

  • 有人有解决办法吗?因为它急需修复。我无法指出为什么会出现这个问题。

标签: azure-storage symlink rhel


【解决方案1】:

尝试删除符号链接选项,然后手动链接它。我在我的机器上做了一个快速测试,一个 RHEL V7(用于测试的全新)在 Azure 上,并使用以下步骤链接了一个文件共享:

1- 手动创建挂载点目录,然后运行以下命令:

sudo yum install cifs-utils
sudo mount -t cifs //USERNAME.file.core.windows.net/FILESHARE ~/mountpoint/ -o vers=3.0,username=<>,password=<>,dir_mode=0777,file_mode=0777,sec=ntlmssp

然后尝试使用符号链接。

【讨论】:

    【解决方案2】:

    我遇到了类似的问题。看了大部分论坛都试过了,最后发现我用的密码不对,应该是ssh key,是用storage account生成的。我通过使用 Azure 支持的故障排除脚本得到了提示。 你可以在这里找到这个脚本: https://gallery.technet.microsoft.com/Troubleshooting-tool-for-02184089

    在此处找到的 Bash 脚本可用于解决一系列可能的问题,并让您对问题有一个大致的了解。

    【讨论】:

      猜你喜欢
      • 2020-04-25
      • 2020-08-21
      • 1970-01-01
      • 2021-08-15
      • 2020-05-28
      • 1970-01-01
      • 2020-08-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多