Hi,
We have a Windows Server 2012 SMB share mounted on a Centos 6.4 server using autofs via cifs mount. Sporadically we see issues with tar command where it would generate the following error:
tar: file changed as we read it
This causes our automatic script to fail intermittently. Some Google searches point this error to mtime with CIFS, but doesn't provide concrete solution. Has anyone run into this before and might have a solution?
Thanks very much.
CIFS Mount and Tar Issue
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: CIFS Mount and Tar Issue
I'd more suspect that Windows is writing to the file during your tar operation - perhaps a user or maybe cached data (write-behind). If so, maybe copying the file to another name and then tar that one may help.
- FWIW
- FWIW
Re: CIFS Mount and Tar Issue
Hi tonyswu,
I have the same problem to. Did you find a solution for that?
Thank you very much for your answer.
I have the same problem to. Did you find a solution for that?
Thank you very much for your answer.