分离虚拟机后挂载不工作(-115) [英] Mount not working (-115) after detaching virtual machine

查看:501
本文介绍了分离虚拟机后挂载不工作(-115)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Ubuntu虚拟机上安装一个网络共享,直到现在我仍然无法做到这一点,尽管阅读了一些你的Linux文档。


<到目前为止我做了什么:


我使用Ubuntu 18.04.1 LTS的官方图像设置了一台Ubuntu机器,并在"/ etc / fstab"中添加了一行代码。文件,现在看起来如下,其中10.0.0.4是一个在线永久持有samba共享的机器"共享":

 / /10.0.0.4/share / datadrive cifs guest,_netdev,iocharset = utf8,file_mode = 0777,dir_mode = 0777 00 

当调用"mount -a"时如果我重新启动VM,系统可以找到共享文件夹并安装它。但是当解除分配然后启动它时,我收到以下错误消息:

 [30.172043] CIFS VFS:连接到套接字时出错。中止操作。 
[30.176740] CIFS VFS:cifs_mount失败w /返回码= -115

我做错了什么?在您的教程中,https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mount-azure-file-storage-on-linux-using-smb#persist-the-mount那里应该没有额外的要求,但是这个(使用文件存储
而不是另一个VM的samba-share)给出了相同的结果。


EDIT :


以下是我今天再次收集的一些其他数据:


systemctl status datadrive.mount 返回:

●datadrive.mount  -  / datadrive 
已加载:已加载(/ etc / fstab;已生成)
有效:失败(结果:退出代码)自周一2018-09-17 17:09:52 UTC; 2分59秒前
其中:/ datadrive
什么://10.0.0.4/share
文档:man:fstab(5)
man:systemd-fstab-generator(8)
流程:1040 ExecMount = / bin / mount //10.0.0.4/share / datadrive -t cifs -o x-systemd.requires = cloud-init.service,x-systemd.before = docker.service,guest ,iocharset = utf8,file_mode = 0777,dir_mode = 0777(code = exited,status = 32)

Sep 17 17:09:41 stripes-master-s6 systemd [1]:挂载/ datadrive。 ..
Sep 17 17:09:52 stripes-master-s6 mount [1040]:mount error(115):正在进行操作
Sep 17 17:09:52 stripes-master-s6 mount [1040]:请参阅mount.cifs(8)手册页(例如man mount.cifs)
Sep 17 17:09:52 stripes-master-s6 systemd [1]:datadrive.mount:挂载进程已退出,code = exited status = 32
Sep 17 17:09:52 stripes-master-s6 systemd [1]:datadrive.mount:结果'exit-code'失败。
9月17日17:09:52 stripe-master-s6 systemd [1]:无法挂载/ datadrive。


这次只有5台机器中的4台失败了应该挂载这个共享驱动器。

解决方案

您可以尝试以下问题排查步骤:



  • 首先确保你可以ping IP地址
  • Telnet IP on端口445
  • 是否有任何IP最近有变化吗?请确保正确设置了防火墙。
  • 检查DNS问题
  • 检查防火墙(包括本地防火墙或网络防火墙)
  • 检查日志文件 - / var / log / syslog或/ var / log / messages

有关详细信息,请参阅

MSDN
线程,解决类似的问题。


----------------------------------------------- ------------------------------------------------


如果这个答案有用,请点击"标记为答案"或"向上投票"。提供更多反馈在您的论坛体验中,点击
此处


I need to mount a network share on my Ubuntu virtual machine, which I wasn't able to do until now despite reading through quite some of your and the Linux documentation.

What I did so far:

I've set up a Ubuntu machine using the official image for Ubuntu 18.04.1 LTS and added a line to the "/etc/fstab" file, which now looks like following, whereby 10.0.0.4 is a machine which is online permanently holding a samba share on "share":

//10.0.0.4/share	/datadrive	cifs	guest,_netdev,iocharset=utf8,file_mode=0777,dir_mode=0777	00

When calling "mount -a" the system is able to find the shared folder and mount it, same if I restart the VM. But when deallocating it and then starting it, I get the following error message:

[   30.172043] CIFS VFS: Error connecting to socket. Aborting operation.
[   30.176740] CIFS VFS: cifs_mount failed w/return code = -115

What am I doing wrong? Out of your tutorial on https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mount-azure-file-storage-on-linux-using-smb#persist-the-mount there should be no additional requirements, but also this one (taking a file-storage instead of a samba-share of another VM) gave the same result.

EDIT:

Here's some additional data I gathered when it today happened again:

systemctl status datadrive.mount returns:

● datadrive.mount - /datadrive
   Loaded: loaded (/etc/fstab; generated)
   Active: failed (Result: exit-code) since Mon 2018-09-17 17:09:52 UTC; 2min 59s ago
    Where: /datadrive
     What: //10.0.0.4/share
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 1040 ExecMount=/bin/mount //10.0.0.4/share /datadrive -t cifs -o x-systemd.requires=cloud-init.service,x-systemd.before=docker.service,guest,iocharset=utf8,file_mode=0777,dir_mode=0777 (code=exited, status=32)

Sep 17 17:09:41 stripes-master-s6 systemd[1]: Mounting /datadrive...
Sep 17 17:09:52 stripes-master-s6 mount[1040]: mount error(115): Operation now in progress
Sep 17 17:09:52 stripes-master-s6 mount[1040]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 17 17:09:52 stripes-master-s6 systemd[1]: datadrive.mount: Mount process exited, code=exited status=32
Sep 17 17:09:52 stripes-master-s6 systemd[1]: datadrive.mount: Failed with result 'exit-code'.
Sep 17 17:09:52 stripes-master-s6 systemd[1]: Failed to mount /datadrive.

This time it only failed for 4 of the 5 machines who are supposed to mount this shared drive.

解决方案

You try the below troubleshooting steps:

  • First Make sure that you can ping the IP address
  • Telnet IP on Port 445
  • Has there be any IP changes lately? Please make sure that the firewall is properly set.
  • Check DNS issue
  • Check firewall (include local firewall or network firewall)
  • Check your Log files - /var/log/syslog or /var/log/messages

For more details, you may refer the suggestions outlined in the MSDN thread, which addresses similar issue.

-----------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here


这篇关于分离虚拟机后挂载不工作(-115)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆