Re: rsync freezes FreeBSD machine

From: Korolev Sergey <serejk_at_febras.net>
Date: Thu, 26 Jan 2023 11:18:19 UTC
Hello,

my experience (not big, to be honest) says, that the possible reason of that type of freeze (when nothing helps except hard reboot) is when processes hangs in ‘zio’ state. Some deadlock arises when trying to access to a very busy FS. So, maybe monitoring with zfs-mon can help, with simultaneous ’top’ monitoring in separate console.

> On 26 Jan 2023, at 20:39, Ioan Samarul <samarul.meu@gmail.com> wrote:
> 
> Hello to you all!
> 
> I am doing a backup for some machines (OpenBSD and Linux) to a FreeBSD
> machine (13.1-RELEASE-p5) with ZFS using rsync (usually with `-avhz`).
> The problem I always encounter is that if I do an rsync to FreeBSD
> everything is smooth, but the other way around, after some files
> copied, the FreeBSD machine hangs. I tried even using
> `--bwlimit=5000`, but it is the same. I can't ssh, nothing. Just hard
> restart.
> 
> I tried looking in the logs but I didn't get any useful information.
> 
> Any hint?
>