[CentOS] rsyncing directories - sanity check

Alexandru Chiscan lec at easterng.ro
Thu Jun 25 06:38:40 UTC 2015


     Hello Tim,

On 06/24/2015 07:42 PM, Tim Dunphy wrote:
> rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]:
> Broken pipe (32)
> rsync: write failed on "/opt/var/log/lastlog": No space left on device (28)
lastlog is a VERY large SPARSE file and when you rsync it it looses the sparsity and tries 
to copy all the data to /opt

ls -al -h /var/log/lastlog
-rw-r--r--. 1 root root *94G* Jun 25 09:10 /var/log/lastlog

Real space on disk
  du -h /var/log/lastlog
*60K*     /var/log/lastlog

Lec



More information about the CentOS mailing list