[asterisk-users] Recompiling dahdi-linux after kernel update - To minimize downtime

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jun 19 03:03:45 CDT 2009


On Thu, Jun 18, 2009 at 11:24:40PM -0500, Karl Fife wrote:
> After a kernel update (but before rebooting) Is there a way to recompile Zap/Dahdi against the new kernel?
> 
> My objective is to eliminate the additional downtime that occurs while recompiling/installing zap/dahdi after booting into the new kernel.
> 
> Please correct me if I'm wrong:  
> My understanding is that until you reboot (after a kernel update), recompiling zap/dahdi still compiles against the OLD kernel, and that's why zap/dahdi doesn't start after rebooting into the new kernel (even if you recompiled it just before rebooting).  
> 
> So my question is: 
> Is there a method to recompile dahdi/zap against the new kernel such that the only downtime is the actual server bounce itself?  OR is the current best practice just to simply to reboot, recompile, restart?  
> 
> Thanks in advance.

1. install new kernel (but don't reboot yet)
2. in the dahdi-linux source directory:

  make KVERS=<new version>
  make KVERS=<new version> install

  or:

  make KSRC=/path/to/kernel/source/tree
  make KSRC=/path/to/kernel/source/tree install

3. reboot

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list