Modifying data files while named is reloading
Barry Margolin
barmar at alum.mit.edu
Thu Oct 18 17:51:37 UTC 2018
In article <mailman.694.1539872556.803.bind-users at lists.isc.org>,
Anne Bennett <anne at encs.concordia.ca> wrote:
> Laurent Weislo <laurent.weislo at gmail.com> writes:
>
> > After a bunch of years and under heavy load on the master, we lost almost
> > 4K records because the domain file seems to have been loaded while being
> > generated.
>
> Wouldn't the best solution be to modify your generation process
> to write to temporary files, and then to move them into place
> when fully built, rather than leaving significant amounts of
> time during which your zone file is in a partially built state?
This is definitely the right solution. As long as you're moving within
the same filesystem, this is an atomic rename operation.
--
Barry Margolin
Arlington, MA
More information about the bind-users
mailing list