will named delete .jnl files ?
Merton Campbell Crockett
m.c.crockett at roadrunner.com
Wed Oct 8 04:24:13 UTC 2008
This morning I was looking into a user complaint about old PTR
records. A dual-boot system that has since been retired left,
roughly, 100 straggling PTR records. I grepped the master zone files
and generated an nsupdate file to remove the straggling PTR records.
After running nsupdate, I executed the following command to update the
master zone file(s) and remove the journal file(s).
rndc freeze zone
I then used the following command to make the zone available.
rndc thaw zone
The name server being used was running BIND 9.3.5-P2.
Merton Campbell Crockett
On 07 Oct 2008, at 11:16:33, Mark Elkins wrote:
> In my experience - the Journal is removed with a Freeze + Thaw and
> the zone is updated - to what seems like reasonable contents.
>
> This is with respect to a zone used for dynamic updates - and where
> the
> slave is on the same network... so there are no outstanding IXFR's -
> which might otherwise keep the .jnl file around.
>
> I guess thats my specuation, observed from (limited?) real(-ish) world
> experience and I should have said "may consolidate" rather than "will
> consolidate".
>
> On Tue, 2008-10-07 at 09:23 -0700, Jack Tavares wrote:
>> Are you speculating or do you know when you say:
>> [quote]
>> An "rndc <domain> freeze" will consolidate the zone and remove
>> the .jnl
>> file,
>> [endquote]
>>
>>
>> ________________________________
>>
>> From: bind-users-bounce at isc.org on behalf of Mark Elkins
>> Sent: Tue 10/7/2008 12:03 PM
>> To: bind-users
>> Subject: Re: will named delete .jnl files ?
>>
>>
>>
>> An "rndc <domain> freeze" will consolidate the zone and remove
>> the .jnl
>> file, which should probably be followed rapidly with a "rndc <domain>
>> thaw" command...
>>
>> Even when the .jnl file is huge - I think that BIND writes out its
>> concept of the zone from its memory - as a freeze runs very quickly.
>>
>> I guess the .jnl file is used to replay events to a "named" process
>> that
>> is restarted??
>>
>> Would be nice if named did a freeze/thaw cycle on being terminated???
>>
>> On Tue, 2008-10-07 at 17:00 +0800, Li Tongxi wrote:
>>> Seems NO. Also, in my test, when the updates come in, I can see a
>>> lot of tmp
>>> file and one .jnl file. And I didn't see the changes preserved in
>>> my zone
>>> file. But the DNS works fine and the resolved IP is the updated
>>> one not the
>>> one in zone file. Do we need do some config to make the update
>>> preserved in
>>> the zone file? I'm using BIND9.3.
>>> 2008/10/7 Jack Tavares <j.tavares at f5.com>
>>>
>>>> I know how named uses the journal files and how data from those
>>>> will eventually get written to the zone files.
>>>>
>>>> My question is:
>>>>
>>>> will named ever delete the .jnl files?
>>>> For instance:
>>>>
>>>> updates come in, get stored in .jnl file.
>>>> <some time later> those changes are preserved in the zone file.
>>>> does named then delete the .jnl file?
>>>>
>>>> My empirical evidence leads me to believe that the answer is "no"
>>>> but I certainly haven't tested every possibility.
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> Jack Tavares
>>>> AIM: jackatavares
>>>> SKYPE: jackandkaddee
>>>> Reminder: I am at GMT+2, 10 hours AHEAD of Seattle.
>>>> My workweek is Sunday-Thursday.
>>>> Email sent to me Thursday afternoon (PST) may not be viewed until
>>>> Sunday
>>>> morning (GMT+2).
>>>>
>>>>
>>>
>>>
>>>
>> --
>> . . ___. .__ Posix Systems - Sth Africa. e.164 VOIP ready
>> /| /| / /__ mje at posix.co.za - Mark J Elkins, Cisco CCIE
>> / |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496
>>
>>
>>
>>
> --
> . . ___. .__ Posix Systems - Sth Africa. e.164 VOIP ready
> /| /| / /__ mje at posix.co.za - Mark J Elkins, Cisco CCIE
> / |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496
>
>
Merton Campbell Crockett
m.c.crockett at roadrunner.com
More information about the bind-users
mailing list