Upgrading kernel: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
Activate the new repo "elrepo-kernel" and then install the kernel-lt and kernel-lt-devel
Activate the new repo "elrepo-kernel" and then install the kernel-lt and kernel-lt-devel


=== Updating Kernel modules ===
= Updating Kernel modules =


MiRTA PBX relies on two kernel modules, geoip and dahdi. The first allows to filter packets based on the geographical location, so you can avoid receiving call attempts from foreign countries, the second make conferences to work. When the kernel is upgraded, during a normal CentOS upgrade, these kernel modules will be not automatically regenerated for the new kernel. In this case, you need to reboot the server into new kernel and recompile both.
MiRTA PBX relies on two kernel modules, geoip and dahdi. The first allows to filter packets based on the geographical location, so you can avoid receiving call attempts from foreign countries, the second make conferences to work. When the kernel is upgraded, during a normal CentOS upgrade, these kernel modules will be not automatically regenerated for the new kernel. In this case, you need to reboot the server into new kernel and recompile both.

Revision as of 14:11, 5 September 2018

MiRTA PBX is used to run on CentOS 6 or 7, 64bit.

Most modern servers have features that are working not optimal with the stock kernels. This is especially true for CentOS 6, having problems with large memory servers. To avoid these problems, it is possible to upgrade safely the servers to the latest stable Kernel 4.

Download the signature for repository Elrepo

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Download the repo package:

For CentOS 6:

rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

For CentOS 7:

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

Activate the new repo "elrepo-kernel" and then install the kernel-lt and kernel-lt-devel

Updating Kernel modules

MiRTA PBX relies on two kernel modules, geoip and dahdi. The first allows to filter packets based on the geographical location, so you can avoid receiving call attempts from foreign countries, the second make conferences to work. When the kernel is upgraded, during a normal CentOS upgrade, these kernel modules will be not automatically regenerated for the new kernel. In this case, you need to reboot the server into new kernel and recompile both.

Recompiling dahdi

Dahdi installation directory is in /usr/local/src, so it will be enough to run:

cd /usr/local/src/dahdi*
make
make install
service dahdi restart

Recompiling geoip

GeoIP installation directory is in /usr/local/src, so it will be enough to run:

cd /usr/local/src/xtables*
./configure
make
make install