CIFS Mount and Tar Issue

General support questions
Post Reply
tonyswu
Posts: 7
Joined: 2015/04/30 19:29:18

CIFS Mount and Tar Issue

Post by tonyswu » 2015/08/31 23:24:24

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.

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CIFS Mount and Tar Issue

Post by lightman47 » 2015/09/01 11:21:11

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

takezu
Posts: 1
Joined: 2016/06/02 02:47:32

Re: CIFS Mount and Tar Issue

Post by takezu » 2016/06/02 02:53:06

Hi tonyswu,

I have the same problem to. Did you find a solution for that?

Thank you very much for your answer.

Post Reply