Let’s start with the scenario where the problem occurs:
two Linux servers mount via samba, one for writing files and one for reading files. To prevent files from being read before they are written, a temporary file name is used first, then a rename
As a result, there is a problem that rename calls successfully, but the file name does not change. Mv command is executed manually and the error is “are the same file”. This situation occurs frequently after a machine is rebooted.
All kinds of search on the Internet, there is no appropriate keywords, search not useful information. I suddenly remembered to look at Dmesg and found useful error messages
CIFS VFS: Unexpected lookup error -112
CIFS VFS: cifs_mount failed w/return code = -112
CIFS VFS: Unexpected lookup error -112
Using this keyword to search the solution, tried renaming success
echo 0 > /proc/fs/cifs/OplockEnabled
# The following sentence didn't work. Renaming was successful.
echo 0 > /proc/fs/cifs/LookupCacheEnabled
Read More:
- Samba mount error (115): operation now in progress refer to the mount.cifs (8) manual page (e.g. ma
- Java file rename failure
- Error installing network file system: Mount error 20 = not a directory
- NPM installation module encountered enoent: no such file or directory, rename error
- Samba error: session setup failed: NT_ STATUS_ LOGON_ FAILURE
- Fileexistserror: [winerror 183] cannot create a file when it already exists. File rename code attached
- Mount error (22): invalid argument refer to the mount.cifs (8) manual page (
- NFS mount error: mount.nfs mount system call failed
- Batch modification of file names on MAC Linux rename command line
- About OSS file download and rename
- SUSE mount NFS prompt mount.nfs no such device
- Strange exception 001: invalid or unexpected token
- [Solved] Imx6qdl Android 5.0 kernel 3.10 can’t mount system file system
- A strange problem in compiling OpenGL program
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- A strange upgrade data package error problem
- Solution to error opening trace file: no such file or directory (2) in Android
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Cannot open include file: ‘io.h‘: No such file or directory