<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 29 Oct 2019, at 13.49, Surya Teja <<a href="mailto:suryateja042@gmail.com" class="">suryateja042@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Could there be issues with file permissions?<br class="">My guess is that the temporary file written can not be renamed because dhcpd does not have write permissions? ------><br class=""><div class="">Hi Sten, I don't think it is with permission because after few minutes dhcpd is restarting and granting lease, the issue is it is taking long time,</div></div></div></blockquote><div><br class=""></div>I was thinking that since it leaves the .<time> file present, it may have problems doing the file operations. </div><div>I did some experimenting, whatever way I make the files write protected, dhcpd manages to change them back. The only thing I did not test is SELinux.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">In the isc dhcp forum I observed few options like <span style="font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; font-size: inherit; word-spacing: normal;" class="">dont-use-fsync but it also suggest not recommended until </span>thorough understanding OS </div><div class="">I have installed the dhcpd on centos7, does any one have used this option? Any experience with it would be much helpful for me </div><div class=""><br class=""></div><div class="">Thanks in advance</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 6:12 PM Surya Teja <<a href="mailto:suryateja042@gmail.com" target="_blank" class="">suryateja042@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">you're doing something wrong. With a decent disk subsystem this is expected to take a few *seconds* (5 - 10 seconds would be my estimate ) ----><div class="">Hi
sthaug
I don't see any disk
subsystem issues, may be I am missing the cases, can you please suggest the areas or commands to cross check if possible?<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks Teja</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 5:13 PM Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk" target="_blank" class="">stenc@s-carlsen.dk</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br class="">
<br class="">
> On 29 Oct 2019, at 11.20, <a href="mailto:sthaug@nethelp.no" target="_blank" class="">sthaug@nethelp.no</a> wrote:<br class="">
> <br class="">
>> The main thing I am facing the issue is when the data is too high like<br class="">
>> 50-60k leases in the file, the dhcpd service restart is taking more time<br class="">
>> (nearly 5-6 minutes) some times nearly 10-11 mins<br class="">
> <br class="">
> If a dhcpd restart with 50 - 60k leases takes 5-6 minutes or more,<br class="">
> you're doing something wrong. With a decent disk subsystem this is<br class="">
> expected to take a few *seconds* (5 - 10 seconds would be my estimate<br class="">
> based on what we see here with a larger leases file).<br class="">
<br class="">
Could there be issues with file permissions?<br class="">
<br class="">
My guess is that the temporary file written can not be renamed because dhcpd does not have write permissions?<br class="">
<br class="">
> <br class="">
> Steinar Haug, Nethelp consulting, <a href="mailto:sthaug@nethelp.no" target="_blank" class="">sthaug@nethelp.no</a><br class="">
> _______________________________________________<br class="">
> dhcp-users mailing list<br class="">
> <a href="mailto:dhcp-users@lists.isc.org" target="_blank" class="">dhcp-users@lists.isc.org</a><br class="">
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank" class="">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br class="">
<br class="">
</blockquote></div>
</blockquote></div>
</div></blockquote></div><br class=""></body></html>