Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Apr 2013 16:59:37 +0200
From:      Peter Maloney <peter.maloney@brockmann-consult.de>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: Regarding regular zfs
Message-ID:  <515EE6D9.8050605@brockmann-consult.de>
In-Reply-To: <op.wu2muowl8527sy@ronaldradial.versatec.local>
References:  <CAFfb-hpt4iKSb0S2fgQ16Hp51KLWJew1Se32yX1cUPYi6pp72g@mail.gmail.com> <8B0FFF01-B8CC-41C0-B0A2-58046EA4E998@my.gd> <515EB744.5000607@brockmann-consult.de> <CAFfb-hpz2wR9ad0yqO7vip6m5nGwmniwsZpf2UZ2pTgVfrFSOQ@mail.gmail.com> <op.wu2muowl8527sy@ronaldradial.versatec.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-04-05 16:07, Ronald Klop wrote:
> On Fri, 05 Apr 2013 15:02:12 +0200, Joar Jegleim
> <joar.jegleim@gmail.com> wrote:
>
>> You make some interesting points .
>> I don't _think_ the script 'causes more than 1 zfs write at a time,
>> and I'm
>> sure 'nothing else' is doing that neither . But I'm gonna check that out
>> because it does sound like a logical explanation.
>> I'm wondering if the rsync from the receiving server (that is: the
>> backup
>> server is doing rsync from the zfs receive server) could 'cause the same
>> problem, it's only reading though ...
>>
>>
>>
>
> Do you run the rsync from a snapshot or from the 'live' filesystem?
> The live one changes during zfs receive. I don't know if that has
> anything to do with your problem, but rsync from a snapshot gives a
> consistent backup anyway.
>
> BTW: It is probably more simple for you to test if the rsync is
> related to the problem, than for other people to theorize about it here.
>
> Ronald.

Also I don't believe using rsync either on the snapshot or the file
system (read or write) should be related in any way to the hang I
described. I let my cronjob rsync backups run wild without issues.

When I say zfs commands, I don't mean random other commands on the zfs
file system, but only the "zfs" command with a writing subcommand, such
as destroy, recv, or snapshot, which obviously need some locking, and
also send which locks some things, such as preventing the snapshot you
are sending from being removed while you send it.

Next time it hangs, just run something like: ps axl | grep zfs. If you
see 2 zfs commands running at once that aren't parent/child of
eachother, then you may have the same problem I described. If not (such
as if you see your send + rsync at the same time), then it is something
else.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?515EE6D9.8050605>