Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何创建从Azure Linux M到Azure文件存储的symboic链接_Linux_Azure_Virtual Machine_Storage - Fatal编程技术网

如何创建从Azure Linux M到Azure文件存储的symboic链接

如何创建从Azure Linux M到Azure文件存储的symboic链接,linux,azure,virtual-machine,storage,Linux,Azure,Virtual Machine,Storage,我想创建一个符号链接。装载点是Azure Linux VM,目标是Azure存储。我已使用以下命令创建符号链接: sudo mount -t cifs //<accout name>.file.core.windows.net/<share name> [mount point] -o vers=3.0,username=<username>,password=<pwd>,dir_mode=0777,file_mode=0777,sec=ntlms

我想创建一个符号链接。装载点是Azure Linux VM,目标是Azure存储。我已使用以下命令创建符号链接:

sudo mount -t cifs //<accout name>.file.core.windows.net/<share name> [mount point] -o vers=3.0,username=<username>,password=<pwd>,dir_mode=0777,file_mode=0777,sec=ntlmssp
dmesg | tail
给出:

CIFS VFS: Server eassmbstorageaccount.file.core.windows.net has not responded in 120 seconds. Reconnecting...
CIFS VFS: cifs_mount failed w/return code = -11

我们可以像这样将Azure文件共享装载到Linux虚拟机:
Ubuntu

1.安装cifs UTIL

 sudo apt-get update
 sudo apt-get install cifs-utils
2.为装载点创建文件夹:

mkdir mymountpoint
3.使用mount命令装载Azure文件共享:

sudo mount -t cifs //jasonvmdiag800.file.core.windows.net/jasonvm ./mymountpoint -o vers=2.1,username=jasonvmdiag800,password=t0gU45xhKVlCQZY3L0WYHiEcoyc1vAvKS1FZEgCZpxxrHFRg==,dir_mode=0777,file_mode=0777,serverino
请记住用正确的信息替换
存储帐户名
共享名
存储帐户密钥

sudo mount -t cifs //<storage-account-name>.file.core.windows.net/<share-name> ./mymountpoint -o vers=2.1,username=<storage-account-name>,password=<storage-account-key>,dir_mode=0777,file_mode=0777,serverino
有关mount Azure文件共享的更多信息,请参阅此

顺便问一下,请检查是否安装了另一个cifs共享,并检查该共享状态。您还可以删除所有装载文件并重新装载

sudo mount -t cifs //<storage-account-name>.file.core.windows.net/<share-name> ./mymountpoint -o vers=2.1,username=<storage-account-name>,password=<storage-account-key>,dir_mode=0777,file_mode=0777,serverino
Ubuntu Server 14.04+
RHEL 7+
CentOS 7+
Debian 8
openSUSE 13.2+
SUSE Linux Enterprise Server 12