Toolpack prerequisite CentOS7 A

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Initial page for Centos7 pre-requisite)
 
(New adaption for Centos7)
Line 45: Line 45:
 
  yum clean metadata
 
  yum clean metadata
 
  yum update
 
  yum update
 
 
<!--
 
  
 
=== Reply to ARP only on local interfaces ===
 
=== Reply to ARP only on local interfaces ===
Line 58: Line 55:
 
Then restart network interfaces using the following command:
 
Then restart network interfaces using the following command:
  
   /etc/init.d/network restart
+
   service network restart
  
 
=== Disabling SELinux ===
 
=== Disabling SELinux ===
Line 73: Line 70:
  
 
  yum groupinstall Toolpack-Prerequisites
 
  yum groupinstall Toolpack-Prerequisites
 
==== Possible Dependencies Issue ====
 
If you meet an issue which blocks the installation with error that is related to "dovecot". Do the following and retry the "groupinstall" command to restart installation.
 
 
  yum remove dovecot
 
  
 
=== Install Gem ===
 
=== Install Gem ===
Line 94: Line 86:
  
 
  tbtoolpack stop
 
  tbtoolpack stop
 
  
 
=== Configure ODBC  ===
 
=== Configure ODBC  ===
Line 102: Line 93:
 
Remove the '#' in front of each lines of the [MySQL] section Modify the 'Driver' line to set the correct driver  
 
Remove the '#' in front of each lines of the [MySQL] section Modify the 'Driver' line to set the correct driver  
  
Example for 32 bits system:  
+
<br> Example:  
 
+
 
  [MySQL]
 
  [MySQL]
 
  Description    = ODBC for MySQL
 
  Description    = ODBC for MySQL
 
  Driver          = /usr/lib/libmyodbc5.so
 
  Driver          = /usr/lib/libmyodbc5.so
 
  Setup          = /usr/lib/libodbcmyS.so
 
  Setup          = /usr/lib/libodbcmyS.so
  FileUsage      = 1
+
  Driver64        = /usr/lib64/libmyodbc5.so
 
+
  Setup64        = /usr/lib64/libodbcmyS.so
<br> Example for 64 bits system:
+
 
+
[MySQL]
+
Description    = ODBC for MySQL
+
Driver          = /usr/lib64/libmyodbc5.so
+
  Setup          = /usr/lib64/libodbcmyS.so
+
 
  FileUsage      = 1
 
  FileUsage      = 1
  
Line 146: Line 130:
 
  datadir=/var/lib/mysql
 
  datadir=/var/lib/mysql
 
  socket=/var/lib/mysql/mysql.sock
 
  socket=/var/lib/mysql/mysql.sock
  user=mysql
+
  symbolic-links=0
 
  log-bin
 
  log-bin
  server-id=5876
+
  server-id=1123476
 
  max_allowed_packet = 200MB
 
  max_allowed_packet = 200MB
 +
skip-name-resolve
 
  expire_logs_days=60
 
  expire_logs_days=60
 +
 +
<!--
 
   
 
   
 
  # Default to using old password format for compatibility with mysql 3.x
 
  # Default to using old password format for compatibility with mysql 3.x

Revision as of 15:22, 5 September 2014

This page shows the Toolpack 2-8 prerequisites for CentOS 7.

WARNING: The host MUST have CentOS 7 installed.

WARNING: This procedure requires internet access and a DNS configured on your unit.

Contents

Stop toolpack system (if it is running)

tbtoolpack stop

TelcoBridges repository

Add TelcoBridges repository file

vim /etc/yum.repos.d/TB-Base.repo

Paste the following information in that file:

# TelcoBridges-Base.repo
#
# This repository is using TelcoBridges frozen version of CentOS
# to help client installing the required version of the
# applications required to run Toolpack
#

[tb-base]
name=TelcoBridges-$releasever - Base
baseurl=http://repo.telcobridges.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Get TelcoBridges repository key

cd /etc/pki/rpm-gpg/
wget http://repo.telcobridges.com/centos/7/os/x86_64/RPM-GPG-KEY-TB7

CentOS update

Update your system to CentOS 7

yum clean metadata
yum update

Reply to ARP only on local interfaces

Modify the file /etc/sysctl.conf to add the following lines:

 net.ipv4.conf.default.arp_ignore=1
 net.ipv4.conf.all.arp_ignore=1

Then restart network interfaces using the following command:

 service network restart

Disabling SELinux

Check SELinux status

 sestatus

If SELinux is enable, see the Disabling SELinux article to disable it.

Install Toolpack Prerequisites

When asked to 'Importing GPG key', answer yes.

yum groupinstall Toolpack-Prerequisites

Install Gem

wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/linux/bundler-1.2.3.gem
gem install --local ./bundler-1.2.3.gem
wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/linux/json-1.7.7.gem
gem install --local ./json-1.7.7.gem

Apply kernel patches (if any)

shutdown -r now 

Once rebooted, be sure that Toolpack system is stopped before manipulating MySQL.

tbtoolpack stop

Configure ODBC

vim /etc/odbcinst.ini

Remove the '#' in front of each lines of the [MySQL] section Modify the 'Driver' line to set the correct driver


Example:

[MySQL]
Description     = ODBC for MySQL
Driver          = /usr/lib/libmyodbc5.so
Setup           = /usr/lib/libodbcmyS.so
Driver64        = /usr/lib64/libmyodbc5.so
Setup64         = /usr/lib64/libodbcmyS.so
FileUsage       = 1

Configure MySQL

vim /etc/my.cnf

Add these variables in the file under the [mysqld] section:

  • log-bin
  • server-id=[UniqueId]

The server-id needs to be a non-zero unique value (do not use 0). If you use the host redundancy feature, the value needs to be different on each host .


Add max_allowed_packet to increase the maximum size of binary blobs in the database. Make sure it is in the [mysqld] section AND [mysqldump] section

 max_allowed_packet = 200MB


Add below to remove database dependencies with DNS servers (**Applicable to TMG users only)

 skip-name-resolve


Add this to make sure the mysql logs don't get too big

 expire_logs_days=60

Example:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
log-bin
server-id=1123476
max_allowed_packet = 200MB
skip-name-resolve
expire_logs_days=60


Personal tools