Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2019 15:35:19 +0200
From:      Esa Karkkainen <freebsd.lists@zxas.fi>
To:        "@lbutlr" <kremels@kreme.com>, freebsd-questions@freebsd.org
Subject:   Re: Duplicating file system
Message-ID:  <20190221133519.GA1554@pp.htv.fi>
In-Reply-To: <20190221075515.c815b269.freebsd@edvax.de>
References:  <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> <32153EA7-4BC5-4EE2-98FA-5BDEE1903BA3@cretaforce.gr> <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr> <0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657@kreme.com> <20190221032121.c0006dfe.freebsd@edvax.de> <C8D2F401-AC47-4089-AD34-A2E7E8E033C0@kreme.com> <20190221075515.c815b269.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 21, 2019 at 07:55:15AM +0100, Polytropon wrote:
> On Wed, 20 Feb 2019 20:59:21 -0700, @lbutlr wrote:
> > I will try cpdup as I have tried rsync already and it is too
> > resource intensive to run it constantly. Even with a 5 minute
> > delay sometimes a task will not finish before the next one
> > starts and then a cascade will bring the system down as more
> > and more processes get stuck.

FWIW, kludgey way of doing this is to run the sync in a "while true"
loop, with a sleep at the end, so then you'll have only one sync active
at the time.

Lock files give also the same result. But then you have to clean up lock
files after boot and start duplication process etc.

> This makes the scenario even more look like a situation where
> a mirrored approach (like software RAID, gmirror) is a good
> solution; writes will happen in quasi-parallel and transparent
> to the writing process, so those race conditions won't appear.

The only negative aspect, that I can think of,  having a mirror between
filesystem and mass storage device does not protect from filesystem
corruption.

Most likely the mirrored approach will be less of an hassle.

Best regards,

Esa

-- 
"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
        -- Douglas Adams 1952 - 2001



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