焦油错误到Drobo FS:无法closures:input/输出错误,由于以前的错误退出与失败状态

我们已经将Fedora 25工作站的这个tar备份运行到Drobo FS几年了,在过去的几个星期里,它开始出现以下错误,但似乎完成了:

/bin/tar: /mypath/etc-new.tgz: Cannot close: Input/output error /bin/tar: Exiting with failure status due to previous errors STANDARD OUTPUT: Failed to rename /mypath/home-new.tgz to /mypath/home.tgz: File exists Backup of /etc FAILED Backed up /etc to /mypath/etc-FAILED.tgz Backed up /root to /mypath/root.tgz Backed up /usr/local to /mypath/usr-local.tgz Backed up /var/lib to /mypath/var-lib.tgz Backed up /var/log to /mypath/var-log.tgz Backed up /var/www to /mypath/var-www.tgz Backed up /var/yp to /mypath/var-yp.tgz Second try renamed /mypath/home-new.tgz to /mypath/home.tgz 

下面是完整的tar命令的实际操作:

 /usr/local/sbin/drobo-backup -n -v -c /etc/drobo-backup.conf \Reading configfile /etc/drobo-backup.conf /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/home-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed home --exclude=.gvfs --exclude='Windows 7.vdi' /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/etc-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed etc /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/root-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed root /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/usr-local-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed usr/local /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/var-lib-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed var/lib --exclude=/var/lib/yum --exclude=/var/lib/rpm /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/var-log-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed var/log /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/var-www-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed var/www /bin/mkdir /mypath ionice -c2 -n7 nice -n19 /bin/tar -cf /mypath/var-yp-new.tgz -C / --atime-preserve --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed var/yp 

我可以看到的唯一的日志可能与错误报告到达前30分钟有关。

 Mar 3 01:08:31 myworkstation kernel: CIFS VFS: Server drobo has not responded in 120 seconds. Reconnecting... Mar 3 01:09:29 myworkstation kernel: CIFS VFS: sends on sock ffff99407356fc00 stuck for 15 seconds Mar 3 01:09:29 myworkstation kernel: CIFS VFS: Error -11 sending data on socket to server Mar 3 01:09:44 myworkstation kernel: CIFS VFS: sends on sock ffff99407356fc00 stuck for 15 seconds Mar 3 01:09:44 myworkstation kernel: CIFS VFS: Error -11 sending data on socket to server Mar 3 01:10:25 myworkstation kernel: CIFS VFS: sends on sock ffff99407356fc00 stuck for 15 seconds Mar 3 01:10:25 myworkstation kernel: CIFS VFS: Error -11 sending data on socket to server Mar 3 01:12:09 myworkstation kernel: CIFS VFS: sends on sock ffff994089f78a00 stuck for 15 seconds Mar 3 01:12:09 myworkstation kernel: CIFS VFS: Error -11 sending data on socket to server 

GNU焦油维护者说 :

'close()'系统调用返回非零值,errno被设置为EIO。 这听起来像你的硬件的一些基本问题。

但是Drobo FS上的自检不会显示任何错误或警告。 tar完成,但也许有一些命令或“ 位置敏感 ”的语法? 错误总是发生在/etc/ 。 我们还有其他一些工作站正在为相同的Drobo FS进行完全相同的备份,而且没有任何错误。

我相信我发现了这个问题。 看来Tracker是罪魁祸首。 以下是日志中的一些线索:

 ouruser journal: *** Unsupported operation detected on trash directory ouruser journal: dir: /home/users/username/.local/share/Trash/files, file: files, type: 4#012 ouruser journal: unable to create file '/run/user/1234/dconf/user': Permission denied. dconf will not work properly. ouruser journal: kde-recent-document-provider.vala:174: Couldn't find actor for 'kpdf'. ouruser journal: Could not create FTS delete statement: table fts5 has no column named nco:hobby ouruser journal: unable to create file '/run/user/1234/dconf/user': Permission denied. dconf will not work properly. ouruser journal: Could not create FTS delete statement: table fts5 has no column named nco:hobby ouruser kernel: CIFS VFS: Server drobo-rh has not responded in 120 seconds. Reconnecting... ouruser kernel: CIFS VFS: sends on sock ffff8d96e7af4000 stuck for 15 seconds ouruser kernel: CIFS VFS: Error -11 sending data on socket to server 

从运行tar备份的cron作业:

 ERROR OUTPUT: /bin/tar: /ourdomain/etc-new.tgz: Cannot close: Input/output error /bin/tar: Exiting with failure status due to previous errors STANDARD OUTPUT: Failed to rename /drobo/ourdomain/home-new.tgz to /ourdomain/home.tgz: File exists Backup of /etc FAILED 

所以/home是在自己的分区:

 /dev/mapper/vg_ouruser-LogVol02 /home ext4 defaults 1 2 

我相信Tracker会在备份过程中结束运行,并试图为垃圾桶编制索引。 当备份完成/home并继续到/etc的时候出现tar错误。 我删除了这个用户的垃圾桶,然后决定删除跟踪RPM 。 错误消失了(希望永久!)。