I like this one :-)

On 1/13/21 8:15 AM, Johan Ehnberg wrote:

On 13.1.2021 0.58, Adam Goryachev via BackupPC-users wrote:

On 13/1/21 09:21, Les Mikesell wrote:
On Tue, Jan 12, 2021 at 4:15 PM Greg Harris <ghar...@teamexpansion.org> wrote:
Yeah, that “if you can interpret it” part gets really hard when it looks like:

select(7, [6], [], [6], {tv_sec=60, tv_usec=0}) = 1 (in [6], left {tv_sec=59, tv_usec=999999}) read(6, "\0\200\0\0\4\200\0\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = 27748

Scrolling at 32756 lines in around 30 seconds.
That tells you it is not hung up.  You could grep some 'open's out of
the stream to see what files it is examining.  Sometimes the client
side will do a whole lot of reading before it finds something that
doesn't match what the server already has.

I tend to use something like:

strace -e open -p <pid of rsync>

Also:

ls -l /proc/<pid of rsync>/fd

Regards,
Adam


Here's another one to run on the host being backed up. It shows the file being backed up (read, not necessarily transferred) at any given time. You may want to tune the refresh rate; '0.1' is very rapid. '3r' can in theory vary between implementations.

sudo watch -n0.1 'lsof -c rsync | grep 3r'


Best regards,
Johan

--
Signature
*Johan Ehnberg*

Founder, CEO

Molnix Oy


jo...@molnix.com <mailto:jo...@molnix.com>

+358 50 320 96 88

molnix.com <https://molnix.com>


/The contents of this e-mail and its attachments are for the use of the intended recipient only, and are confidential and may contain legally privileged information. If you are not the intended recipient or have otherwise received the e-mail in error, please notify the sender by replying to this e-mail immediately and then delete it immediately from your system. Any dissemination, distribution, copying or use of this communication without prior and explicit permission of the sender is strictly prohibited./

/*Please consider the environment - do not print this e-mail unless you really need to.*/



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to