Query regarding tmp-xxxx files in ../named/zones

Mark Andrews marka at isc.org
Thu Sep 16 06:22:51 UTC 2021


You are in the best place to answer what they are by looking at them.

Named uses temporary files to create new versions of files then renames them to replace
existing files atomically. This includes zone files, journals and any other file where
a partial instance would be problematic.

Now if something goes wrong in there generation the error handling is supposed to remove
them but there can alway be omissions on error paths.  Similarly if you don’t shutdown
named cleanly there can be temporary files left around if named was in the process of
updating a file.  Similarly if named happens to die unexpectedly and it was in the
process of writing out a file they will be left behind.

Mark

> On 16 Sep 2021, at 13:44, Rajnish Kamboj via bind-users <bind-users at lists.isc.org> wrote:
> 
> Hello All,
>  
> We have a query with the tmp-<> file generation in ../named/zones in BIND 9
> Over a period of time the tmp files grows and disk usage was full.
>  
> What is the purpose of these tmp files and when are these generated.??
> This will help us to take our internal decision on handling (delete etc.) these temp files.
>  
>  
> Regards
> Rajnish Kamboj
>  
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: marka at isc.org



More information about the bind-users mailing list