TOA Module Loading Method

Last updated: 2021-03-17 10:49:50

Download and decompress the TOA package corresponding to the version of Linux OS on Tencent Cloud:

  1. After decompression is completed, run the cd command to access the decompressed folder and run the module loading command:
    insmod toa.ko
  2. Run the following command to check whether loading is successful:
    lsmod | grep toa
  3. If yes, load the toa.ko file in the startup script (the toa.ko file needs to be reloaded if the server is restarted).

If you cannot find an installation package corresponding to your OS version from the list above, please download and compile the source package of the general version for Linux OS. This version supports most Linux distributions such as CentOS 6.9, CentOS 7, and Ubuntu 14.04.

  1. Obtain the source package.
    • Source package for CentOS 7 and above versions
      wget ""
    • Source package for versions below CentOS 7
      wget ""
  2. Compile the source package to generate the TOA module file.
    yum install gcc
    yum install kernel-headers
    yum install kernel-devel
    unzip gaap-toa*.zip //Decompress the source package above
    cd gaap-toa* //Access the corresponding directory
  3. Load the TOA module file.
    mv toa.ko /lib/modules/`uname -r`/kernel/net/netfilter/ipvs/toa.ko
    insmod /lib/modules/`uname -r`/kernel/net/netfilter/ipvs/toa.ko

If the compilation error is reported, the error may be caused by the inconsistency between the installed kernel version and the version uname -r displays. In the directory /lib/modules/, check the kernel version actually installed, modify the uname -r in Makefile to the actual kernel version, and compile the file again.