无法删除Azure Portal中文件系统中的文件 [英] Can't delete a file in File System in the Azure Portal

查看:103
本文介绍了无法删除Azure Portal中文件系统中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个文件系统,并按照

I created a File System, mounted it in Ubuntu following these instructions. Everything worked great, I mounted the drive and copied some files to it to test. I could see those files in the Azure Portal.

之后,我尝试从Azure门户删除文件并继续出现此错误:https://www.screencast.com/t/iVGB8WqiM

After that, I tried to delete the files from the Azure Portal and keep on getting this error: https://www.screencast.com/t/iVGB8WqiM

驱动器未安装在任何地方(我是从Ubuntu卸载的).如何删除该文件?有没有办法从Azure门户强制删除文件?

The drive is not mounted anywhere (I unmounted it from Ubuntu). How can I delete this file? Is there a way to force-delete a file from the Azure Portal?

我们实际上是在测试文件系统,以查看是否要将其整合到我们的云基础架构中,但似乎在使用几分钟后就破裂了.如果删除文件带来错误,我们如何在生产环境中信任它?

We were actually testing File System to see if we were going to incorporate it in our cloud infrastructure, but it seems it broke within minutes of usage. If deleting a file brings errors, how can we trust this in a production environment?

推荐答案

嗨@fariazz,您遇到的问题主要是由SMB协议中的打开句柄引起的(不一定是使用文件). 本文提供并说明:" 因此,在该特定状态下,它提到句柄仍处于打开状态,这会导致您收到错误消息.

解决方法是使用其余api中的Delete File操作,提供更多信息 此处. 还有一个

Hi @fariazz , the issue you are encountering is mainly caused by open handles from the SMB protocol (not necessarily a someone using the file). This article provides and explanation: "When an SMB client opens a file for delete, it marks the file as pending delete until all other SMB client open handles on that file are closed.
So in that specific state, it mentions that handle is still open, which results in the error you are getting. 

The workaround is to use the Delete File operation from the rest api, more info is available here . There is also a similar thread including a code sample to use the delete operation. Let me know if this helps.

Thanks,

亚当


这篇关于无法删除Azure Portal中文件系统中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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