Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:centos:6:senior:l106 [2020/02/21 07:31] – créée admin | elearning:workbooks:centos:6:senior:l106 [2021/11/05 12:45] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**Version**: | **Version**: | ||
- | ======SED501 - Administration de MySQL NDB Cluster | + | ======SED501 - Administration de MySQL NDB Cluster====== |
Dans ce cours, vous allez apprendre par la pratique : | Dans ce cours, vous allez apprendre par la pratique : | ||
Ligne 19: | Ligne 19: | ||
* LAB #13 - Mise en Place d'un Cluster à Haute Disponibilité, | * LAB #13 - Mise en Place d'un Cluster à Haute Disponibilité, | ||
* LAB #14 - Tester le Cluster à Haute Disponibilité. | * LAB #14 - Tester le Cluster à Haute Disponibilité. | ||
- | |||
- | =====Présentation de MySQL===== | ||
- | |||
- | %%MySQL%% comprend les outils suivants : | ||
- | |||
- | * **Un Serveur SQL** | ||
- | * Un moteur qui permet d' | ||
- | * **Les programmes clients pour accéder aux serveurs** | ||
- | * Un programme interactif permet de saisir directement les requêtes et d' | ||
- | * Plusieurs utilitaires et outils d' | ||
- | * **Une bibliothèque client pour écrire des programmes** | ||
- | * Les programmes clients peuvent être écrits en C, car la bibliothèque est elle-même écrite en C. | ||
- | * Elle intègre également toutes les bases nécessaires pour supporter d' | ||
- | |||
- | ====Développement==== | ||
- | |||
- | Le développement de MySQL depuis son rachat par la société Oracle en 2009 produit des versions différentes selon le cycle suivant : | ||
- | |||
- | * Création de une ou plusieurs versions successives dites **DMR** (// | ||
- | * La sortie d'une ou de plusieurs versions successives dites **RC** (//Release Candidate// | ||
- | * La sortie d'une version dite **GA** (// | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - A noter que MySQL existe en version 32 bits et 64 bits. | ||
- | </ | ||
- | |||
- | MySQL existe en deux versions, la version communautaire qui est disponible sous la licence **[[http:// | ||
- | |||
- | * bénéficie du support d' | ||
- | * contient des outils tels Enterprise Monitor, Query Analyzer et Enterprise Backup. | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - A noter qu'à un instant t, la version communautaire et la version Entreprise sont indentique. | ||
- | </ | ||
- | |||
- | ====Protocoles de Communication==== | ||
- | |||
- | MySQL propose 4 protocoles de communication : | ||
- | |||
- | ^ Protocole ^ Connexion ^ OS ^ Commentaire ^ | ||
- | | TCP | Local et distant | Unix, Windows | Seul protocole de connexion à distance | | ||
- | | Socket Unix | Local | Unix | Protocole par défaut pour les connexions locales | | ||
- | | Shared Memory | Local | Windows | Zone de mémoire partagée entre le serveur et le client | | ||
- | | Named Pipes | Local | Windows | Fichier permettant deux processus sans lien de parenté de communiquer | | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - Le port TCP par défaut de MySQL est le **3306**. Il est possible de changer le port de communication de MySQL en éditant le fichier my.cnf. Pour se connecter sur un serveur distant il convient d' | ||
- | </ | ||
=====Présentation de MySQL NDB Cluster===== | =====Présentation de MySQL NDB Cluster===== | ||
- | |||
- | La version actuelle **GA** (// | ||
MySQL Cluster est une solution de haute disponibilité MySQL qui : | MySQL Cluster est une solution de haute disponibilité MySQL qui : | ||
Ligne 131: | Ligne 81: | ||
=====Installation de NDB Cluster===== | =====Installation de NDB Cluster===== | ||
- | ====LAB #1 - Configurer les Nœuds==== | + | MySQL NDB Cluster |
- | + | ||
- | Lancez la VM **Debian8**, | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Téléchargez l' | + | |
< | < | ||
- | root@debian8:~# cd /opt | + | root@debian9:~# cd /opt |
- | root@debian8:/opt# wget https:// | + | root@debian9:/opt# wget https:// |
--2018-12-29 09: | --2018-12-29 09: | ||
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11 | Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11 | ||
Ligne 161: | Ligne 102: | ||
2018-12-29 09:51:54 (3.65 MB/s) - ‘mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64.tar.gz’ saved [897219779/ | 2018-12-29 09:51:54 (3.65 MB/s) - ‘mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64.tar.gz’ saved [897219779/ | ||
- | root@debian8:/opt# tar -xf mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64.tar.gz | + | root@debian9:/opt# tar -xf mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64.tar.gz |
- | root@debian8:/opt# mv mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64 mysql | + | root@debian9:/opt# mv mysql-cluster-gpl-7.5.12-linux-glibc2.12-x86_64 mysql |
</ | </ | ||
- | Arrêtez la VM Debian8 puis créez quatre clones intégrals de votre VM **sans** réinitialiser l' | + | Le dépendances suivantes ont déjà été installées |
- | + | ||
- | ^ Clone ^ RAM ^ | + | |
- | | NDB01 | 1536 Mo | | + | |
- | | NDB02 | 1536 Mo | | + | |
- | | NDB03 | 1536 Mo | | + | |
- | | NDB04 | 1536 Mo | | + | |
- | + | ||
- | Dans VirtualBox, configurez la redirection des ports pour la première carte réseau de chaque clone : | + | |
- | + | ||
- | ^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ | + | |
- | | NDB01 | 1536 Mo | 22 | 2022 | | + | |
- | | NDB02 | 1536 Mo | 22 | 3022 | | + | |
- | | NDB03 | 1536 Mo | 22 | 4022 | | + | |
- | | NDB04 | 1536 Mo | 22 | 5022 | | + | |
- | + | ||
- | Dans VirtualBox, créez une deuxième carte réseau | + | |
- | + | ||
- | ===Configurer NDB01=== | + | |
- | + | ||
- | Lancez NDB01 et modifiez son nom d' | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | root@debian8: | + | |
- | ndb01.i2tch.loc | + | |
- | </ | + | |
- | + | ||
- | Configurez l' | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | root@debian8: | + | |
- | [main] | + | |
- | plugins=ifupdown, | + | |
- | + | ||
- | [ifupdown] | + | |
- | managed=true | + | |
- | + | ||
- | [keyfile] | + | |
- | hostname=ndb01.i2tch.loc | + | |
- | </ | + | |
- | + | ||
- | Redémarrez le service NetworkManager : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Configurez le DNS : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Redémarrez le service NetworkManager : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Configurez l' | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | Connection ' | + | |
- | root@debian8: | + | |
- | Connection successfully activated (D-Bus active path: / | + | |
- | </ | + | |
- | + | ||
- | Contrôlez les profils réseaux : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | NAME | + | |
- | eth0 | + | |
- | ip_fixe | + | |
- | Ifupdown (eth0) | + | |
- | eth1 | + | |
- | </ | + | |
- | + | ||
- | Installez les paquets **python-paramiko**, | + | |
< | < | ||
Ligne 252: | Ligne 112: | ||
</ | </ | ||
- | Modifiez le fichier **/ | + | Les noeuds ont été déjà configurés de la façon suivante |
- | < | + | ^ Noeud ^ Adresse IP ^ |
- | root@debian8: | + | | NDB01 | 10.0.2.80 | |
- | root@debian8: | + | | NDB02 | 10.0.2.90 | |
- | 127.0.0.1 localhost | + | | NDB03 | 10.0.2.100 | |
- | 127.0.1.1 ndb01.i2tch.loc ndb01 | + | | NDB04 | 10.0.2.110 | |
- | 192.168.99.1 ndb01.i2tch.loc | + | |
- | 192.168.99.2 ndb02.i2tch.loc | + | |
- | 192.168.99.3 ndb03.i2tch.loc | + | |
- | 192.168.99.4 ndb04.i2tch.loc | + | |
- | # The following lines are desirable for IPv6 capable hosts | + | ====LAB |
- | ::1 localhost ip6-localhost ip6-loopback | + | |
- | ff02::1 ip6-allnodes | + | |
- | ff02::2 ip6-allrouters | + | |
- | </ | + | |
- | + | ||
- | Redémarrez NDB01 : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
===Configurer NDB02=== | ===Configurer NDB02=== | ||
- | |||
- | Lancez NDB02 et modifiez son nom d' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | ndb02.i2tch.loc | ||
- | </ | ||
- | |||
- | Configurez l' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | [main] | ||
- | plugins=ifupdown, | ||
- | |||
- | [ifupdown] | ||
- | managed=true | ||
- | |||
- | [keyfile] | ||
- | hostname=ndb02.i2tch.loc | ||
- | </ | ||
- | |||
- | Redémarrez le service NetworkManager : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Configurez le DNS : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Redémarrez le service NetworkManager : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Configurez l' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | Connection ' | ||
- | root@debian8: | ||
- | Connection successfully activated (D-Bus active path: / | ||
- | </ | ||
- | |||
- | Installez les paquets **python-paramiko**, | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Modifiez le fichier **/ | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | 127.0.0.1 localhost | ||
- | 127.0.1.1 ndb02.i2tch.loc ndb02 | ||
- | 192.168.99.1 ndb01.i2tch.loc | ||
- | 192.168.99.2 ndb02.i2tch.loc | ||
- | 192.168.99.3 ndb03.i2tch.loc | ||
- | 192.168.99.4 ndb04.i2tch.loc | ||
- | |||
- | # The following lines are desirable for IPv6 capable hosts | ||
- | ::1 | ||
- | ff02::1 ip6-allnodes | ||
- | ff02::2 ip6-allrouters | ||
- | </ | ||
Modifiez la directive **PermitRootLogin** du fichier **/ | Modifiez la directive **PermitRootLogin** du fichier **/ | ||
< | < | ||
- | root@debian8:~# vi / | + | root@ndb02:~# vi / |
- | root@debian8:~# cat / | + | root@ndb02:~# cat / |
... | ... | ||
PermitRootLogin yes | PermitRootLogin yes | ||
Ligne 369: | Ligne 141: | ||
</ | </ | ||
- | Redémarrez NDB02 : | + | Installez libaio1 et libaio-dev |
< | < | ||
- | root@debian8:~# shutdown | + | root@ndb02:~# apt-get install libaio1 libaio-dev |
</ | </ | ||
- | ===Configurer NDB03=== | + | Redémarrez NDB02 : |
- | + | ||
- | Lancez NDB03 et modifiez son nom d' | + | |
< | < | ||
- | root@debian8:~# nmcli general hostname ndb03.i2tch.loc | + | root@ndb02:~# shutdown -r now |
- | root@debian8: | + | |
- | ndb03.i2tch.loc | + | |
</ | </ | ||
- | Configurez l' | + | ===Configurer NDB03=== |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | root@debian8: | + | |
- | [main] | + | |
- | plugins=ifupdown, | + | |
- | + | ||
- | [ifupdown] | + | |
- | managed=true | + | |
- | + | ||
- | [keyfile] | + | |
- | hostname=ndb03.i2tch.loc | + | |
- | </ | + | |
- | + | ||
- | Redémarrez le service NetworkManager : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Configurez le DNS : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Redémarrez le service NetworkManager : | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Configurez l' | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | Connection ' | + | |
- | root@debian8: | + | |
- | Connection successfully activated (D-Bus active path: / | + | |
- | </ | + | |
- | + | ||
- | Installez les paquets **python-paramiko**, | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | </ | + | |
- | + | ||
- | Modifiez le fichier **/ | + | |
- | + | ||
- | < | + | |
- | root@debian8: | + | |
- | root@debian8: | + | |
- | 127.0.0.1 localhost | + | |
- | 127.0.1.1 ndb03.i2tch.loc ndb03 | + | |
- | 192.168.99.1 ndb01.i2tch.loc | + | |
- | 192.168.99.2 ndb02.i2tch.loc | + | |
- | 192.168.99.3 ndb03.i2tch.loc | + | |
- | 192.168.99.4 ndb04.i2tch.loc | + | |
- | + | ||
- | # The following lines are desirable for IPv6 capable hosts | + | |
- | ::1 | + | |
- | ff02::1 ip6-allnodes | + | |
- | ff02::2 ip6-allrouters | + | |
- | </ | + | |
Modifiez la directive **PermitRootLogin** du fichier **/ | Modifiez la directive **PermitRootLogin** du fichier **/ | ||
< | < | ||
- | root@debian8:~# vi / | + | root@ndb03:~# vi / |
- | root@debian8:~# cat / | + | root@ndb03:~# cat / |
... | ... | ||
PermitRootLogin yes | PermitRootLogin yes | ||
Ligne 464: | Ligne 168: | ||
< | < | ||
- | root@debian8:~# shutdown -r now | + | root@ndb03:~# shutdown -r now |
</ | </ | ||
===Configurer Node04=== | ===Configurer Node04=== | ||
- | |||
- | Lancez NDB04 et modifiez son nom d' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | ndb04.i2tch.loc | ||
- | </ | ||
- | |||
- | Configurez l' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | [main] | ||
- | plugins=ifupdown, | ||
- | |||
- | [ifupdown] | ||
- | managed=true | ||
- | |||
- | [keyfile] | ||
- | hostname=ndb04.i2tch.loc | ||
- | </ | ||
- | |||
- | Redémarrez le service NetworkManager : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Configurez le DNS : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Redémarrez le service NetworkManager : | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Configurez l' | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | Connection ' | ||
- | root@debian8: | ||
- | Connection successfully activated (D-Bus active path: / | ||
- | </ | ||
- | |||
- | Installez les paquets **python-paramiko**, | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | </ | ||
- | |||
- | Modifiez le fichier **/ | ||
- | |||
- | < | ||
- | root@debian8: | ||
- | root@debian8: | ||
- | 127.0.0.1 localhost | ||
- | 127.0.1.1 ndb04.i2tch.loc ndb04 | ||
- | 192.168.99.1 ndb01.i2tch.loc | ||
- | 192.168.99.2 ndb02.i2tch.loc | ||
- | 192.168.99.3 ndb03.i2tch.loc | ||
- | 192.168.99.4 ndb04.i2tch.loc | ||
- | |||
- | # The following lines are desirable for IPv6 capable hosts | ||
- | ::1 | ||
- | ff02::1 ip6-allnodes | ||
- | ff02::2 ip6-allrouters | ||
- | </ | ||
Modifiez la directive **PermitRootLogin** du fichier **/ | Modifiez la directive **PermitRootLogin** du fichier **/ | ||
< | < | ||
- | root@debian8:~# vi / | + | root@ndb04:~# vi / |
- | root@debian8:~# cat / | + | root@ndb04:~# cat / |
... | ... | ||
PermitRootLogin yes | PermitRootLogin yes | ||
Ligne 556: | Ligne 186: | ||
< | < | ||
- | root@debian8:~# shutdown -r now | + | root@ndb04:~# shutdown -r now |
</ | </ | ||
Ligne 612: | Ligne 242: | ||
Supprimez les services afin de ne laisser que les quatre services suivants en les placant sur les nœuds indiqués : | Supprimez les services afin de ne laisser que les quatre services suivants en les placant sur les nœuds indiqués : | ||
- | ^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ Eth0 ^ Eth1 ^ Nom d' | + | ^ Noeud ^ IP ^ Nom d' |
- | | NDB01 | 1536 Mo | 22 | 2022 | NAT | 192.168.99.1 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | | + | | NDB01 | 10.0.2.80 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | |
- | | NDB02 | 1536 Mo | 22 | 3022 | NAT | 192.168.99.2 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | | + | | NDB02 | 10.0.2.90 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | |
- | | NDB03 | 1536 Mo | 22 | 4022 | NAT | 192.168.99.3 | ndb03.i2tch.loc | Nœud de données " | + | | NDB03 | 10.0.2.100 | ndb03.i2tch.loc | Nœud de données " |
- | | NDB04 | 1536 Mo | 22 | 5022 | NAT | 192.168.99.4 | ndb04.i2tch.loc | Nœud de données " | + | | NDB04 | 10.0.2.110 | ndb04.i2tch.loc | Nœud de données " |
Vous obtiendrez le résultat suivant : | Vous obtiendrez le résultat suivant : | ||
Ligne 662: | Ligne 292: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 2 node(s) | [ndbd(NDB)] 2 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
ndb_mgm> ALL REPORT MEMORY | ndb_mgm> ALL REPORT MEMORY | ||
Ligne 690: | Ligne 320: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 2 node(s) | [ndbd(NDB)] 2 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
</ | </ | ||
Ligne 761: | Ligne 391: | ||
[NDB_MGMD] | [NDB_MGMD] | ||
NodeId=49 | NodeId=49 | ||
- | HostName=192.168.99.1 | + | HostName=10.0.2.80 |
DataDir=/ | DataDir=/ | ||
Portnumber=1186 | Portnumber=1186 | ||
Ligne 805: | Ligne 435: | ||
[NDBD] | [NDBD] | ||
NodeId=1 | NodeId=1 | ||
- | HostName=192.168.99.3 | + | HostName=10.0.2.100 |
DataDir=/ | DataDir=/ | ||
[NDBD] | [NDBD] | ||
NodeId=2 | NodeId=2 | ||
- | HostName=192.168.99.4 | + | HostName=10.0.2.110 |
DataDir=/ | DataDir=/ | ||
Ligne 817: | Ligne 447: | ||
[MYSQLD] | [MYSQLD] | ||
NodeId=55 | NodeId=55 | ||
- | HostName=192.168.99.2 | + | HostName=10.0.2.90 |
</ | </ | ||
Ligne 898: | Ligne 528: | ||
ndbcluster=on | ndbcluster=on | ||
ndb-nodeid=55 | ndb-nodeid=55 | ||
- | ndb-connectstring=192.168.99.1:1186, | + | ndb-connectstring=10.0.2.80:1186, |
socket="/ | socket="/ | ||
</ | </ | ||
Ligne 1269: | Ligne 899: | ||
< | < | ||
- | root@ndb03: | + | root@ndb03: |
- | 2018-12-30 09:17:54 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2018-12-30 09:17:54 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2018-12-30 09:17:54 [ndbd] INFO -- Angel allocated nodeid: 1 | 2018-12-30 09:17:54 [ndbd] INFO -- Angel allocated nodeid: 1 | ||
</ | </ | ||
< | < | ||
- | root@ndb04: | + | root@ndb04: |
- | 2018-12-30 09:18:00 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2018-12-30 09:18:00 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2018-12-30 09:18:00 [ndbd] INFO -- Angel allocated nodeid: 2 | 2018-12-30 09:18:00 [ndbd] INFO -- Angel allocated nodeid: 2 | ||
</ | </ | ||
Ligne 1322: | Ligne 952: | ||
2018-12-29 13:41:12 [ndbd] INFO -- Angel pid: 9842 started child: 9843 | 2018-12-29 13:41:12 [ndbd] INFO -- Angel pid: 9842 started child: 9843 | ||
2018-12-29 13:41:12 [ndbd] INFO -- Normal start of data node using checkpoint and log info if existing | 2018-12-29 13:41:12 [ndbd] INFO -- Normal start of data node using checkpoint and log info if existing | ||
- | 2018-12-29 13:41:12 [ndbd] INFO -- Configuration fetched from '192.168.99.1: | + | 2018-12-29 13:41:12 [ndbd] INFO -- Configuration fetched from '10.0.2.80: |
2018-12-29 13:41:12 [ndbd] INFO -- Changing directory to '/ | 2018-12-29 13:41:12 [ndbd] INFO -- Changing directory to '/ | ||
2018-12-29 13:41:12 [ndbd] INFO -- MaxNoOfTriggers set to 25208 | 2018-12-29 13:41:12 [ndbd] INFO -- MaxNoOfTriggers set to 25208 | ||
Ligne 1366: | Ligne 996: | ||
2018-12-29 13:41:54 [ndbd] INFO -- Angel pid: 8857 started child: 8858 | 2018-12-29 13:41:54 [ndbd] INFO -- Angel pid: 8857 started child: 8858 | ||
2018-12-29 13:41:54 [ndbd] INFO -- Normal start of data node using checkpoint and log info if existing | 2018-12-29 13:41:54 [ndbd] INFO -- Normal start of data node using checkpoint and log info if existing | ||
- | 2018-12-29 13:41:54 [ndbd] INFO -- Configuration fetched from '192.168.99.1: | + | 2018-12-29 13:41:54 [ndbd] INFO -- Configuration fetched from '10.0.2.80: |
2018-12-29 13:41:54 [ndbd] INFO -- Changing directory to '/ | 2018-12-29 13:41:54 [ndbd] INFO -- Changing directory to '/ | ||
2018-12-29 13:41:54 [ndbd] INFO -- MaxNoOfTriggers set to 25208 | 2018-12-29 13:41:54 [ndbd] INFO -- MaxNoOfTriggers set to 25208 | ||
Ligne 1493: | Ligne 1123: | ||
| Type | Name | Status | | Type | Name | Status | ||
+------------+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | +------------+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
- | | ndbcluster | connection | + | | ndbcluster | connection |
| ndbcluster | NdbTransaction | | ndbcluster | NdbTransaction | ||
| ndbcluster | NdbOperation | | ndbcluster | NdbOperation | ||
Ligne 1594: | Ligne 1224: | ||
*************************** 10. row *************************** | *************************** 10. row *************************** | ||
Variable_name: | Variable_name: | ||
- | Value: | + | Value: |
... | ... | ||
</ | </ | ||
Ligne 1787: | Ligne 1417: | ||
[NDBD] | [NDBD] | ||
NodeId=3 | NodeId=3 | ||
- | HostName=192.168.99.1 | + | HostName=10.0.2.80 |
[NDBD] | [NDBD] | ||
NodeId=4 | NodeId=4 | ||
- | HostName=192.168.99.2 | + | HostName=10.0.2.90 |
... | ... | ||
</ | </ | ||
Ligne 1809: | Ligne 1439: | ||
[NDB_MGMD] | [NDB_MGMD] | ||
NodeId=49 | NodeId=49 | ||
- | HostName=192.168.99.1 | + | HostName=10.0.2.80 |
DataDir=/ | DataDir=/ | ||
Portnumber=1186 | Portnumber=1186 | ||
Ligne 1853: | Ligne 1483: | ||
[NDBD] | [NDBD] | ||
NodeId=1 | NodeId=1 | ||
- | HostName=192.168.99.3 | + | HostName=10.0.2.100 |
DataDir=/ | DataDir=/ | ||
[NDBD] | [NDBD] | ||
NodeId=2 | NodeId=2 | ||
- | HostName=192.168.99.4 | + | HostName=10.0.2.110 |
DataDir=/ | DataDir=/ | ||
[NDBD] | [NDBD] | ||
NodeId=3 | NodeId=3 | ||
- | HostName=192.168.99.1 | + | HostName=10.0.2.80 |
[NDBD] | [NDBD] | ||
NodeId=4 | NodeId=4 | ||
- | HostName=192.168.99.2 | + | HostName=10.0.2.90 |
Ligne 1874: | Ligne 1504: | ||
[MYSQLD] | [MYSQLD] | ||
NodeId=55 | NodeId=55 | ||
- | HostName=192.168.99.2 | + | HostName=10.0.2.90 |
</ | </ | ||
Ligne 1902: | Ligne 1532: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 4 node(s) | [ndbd(NDB)] 4 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
- | id=3 (not connected, accepting connect from 192.168.99.1) | + | id=3 (not connected, accepting connect from 10.0.2.80) |
- | id=4 (not connected, accepting connect from 192.168.99.2) | + | id=4 (not connected, accepting connect from 10.0.2.90) |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
ndb_mgm> | ndb_mgm> | ||
Ligne 1958: | Ligne 1588: | ||
< | < | ||
- | root@ndb01: | + | root@ndb01: |
- | 2019-01-07 15:25:42 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2019-01-07 15:25:42 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2019-01-07 15:25:42 [ndbd] INFO -- Angel allocated nodeid: 3 | 2019-01-07 15:25:42 [ndbd] INFO -- Angel allocated nodeid: 3 | ||
</ | </ | ||
< | < | ||
- | root@ndb02: | + | root@ndb02: |
- | 2018-12-30 15:17:07 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2018-12-30 15:17:07 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2018-12-30 15:17:07 [ndbd] INFO -- Angel allocated nodeid: 4 | 2018-12-30 15:17:07 [ndbd] INFO -- Angel allocated nodeid: 4 | ||
</ | </ | ||
Ligne 1979: | Ligne 1609: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 4 node(s) | [ndbd(NDB)] 4 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
- | id=3 @192.168.99.1 | + | id=3 @10.0.2.80 |
- | id=4 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12, no nodegroup) | + | id=4 @10.0.2.90 |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
ndb_mgm> | ndb_mgm> | ||
Ligne 2008: | Ligne 1638: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 4 node(s) | [ndbd(NDB)] 4 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
- | id=3 @192.168.99.1 | + | id=3 @10.0.2.80 |
- | id=4 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12, Nodegroup: 1) | + | id=4 @10.0.2.90 |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
ndb_mgm> | ndb_mgm> | ||
Ligne 2552: | Ligne 2182: | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
127.0.1.1 ndb05.i2tch.loc ndb05 | 127.0.1.1 ndb05.i2tch.loc ndb05 | ||
- | 192.168.99.1 ndb01.i2tch.loc | + | 10.0.2.80 ndb01.i2tch.loc |
- | 192.168.99.2 ndb02.i2tch.loc | + | 10.0.2.90 ndb02.i2tch.loc |
- | 192.168.99.3 ndb03.i2tch.loc | + | 10.0.2.100 ndb03.i2tch.loc |
- | 192.168.99.4 ndb04.i2tch.loc | + | 10.0.2.110 ndb04.i2tch.loc |
192.168.99.5 ndb05.i2tch.loc | 192.168.99.5 ndb05.i2tch.loc | ||
192.168.99.6 ndb06.i2tch.loc | 192.168.99.6 ndb06.i2tch.loc | ||
Ligne 2596: | Ligne 2226: | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
127.0.1.1 ndb06.i2tch.loc ndb06 | 127.0.1.1 ndb06.i2tch.loc ndb06 | ||
- | 192.168.99.1 ndb01.i2tch.loc | + | 10.0.2.80 ndb01.i2tch.loc |
- | 192.168.99.2 ndb02.i2tch.loc | + | 10.0.2.90 ndb02.i2tch.loc |
- | 192.168.99.3 ndb03.i2tch.loc | + | 10.0.2.100 ndb03.i2tch.loc |
- | 192.168.99.4 ndb04.i2tch.loc | + | 10.0.2.110 ndb04.i2tch.loc |
192.168.99.5 ndb05.i2tch.loc | 192.168.99.5 ndb05.i2tch.loc | ||
192.168.99.6 ndb06.i2tch.loc | 192.168.99.6 ndb06.i2tch.loc | ||
Ligne 2639: | Ligne 2269: | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
127.0.1.1 ndb07.i2tch.loc ndb07 | 127.0.1.1 ndb07.i2tch.loc ndb07 | ||
- | 192.168.99.1 ndb01.i2tch.loc | + | 10.0.2.80 ndb01.i2tch.loc |
- | 192.168.99.2 ndb02.i2tch.loc | + | 10.0.2.90 ndb02.i2tch.loc |
- | 192.168.99.3 ndb03.i2tch.loc | + | 10.0.2.100 ndb03.i2tch.loc |
- | 192.168.99.4 ndb04.i2tch.loc | + | 10.0.2.110 ndb04.i2tch.loc |
192.168.99.5 ndb05.i2tch.loc | 192.168.99.5 ndb05.i2tch.loc | ||
192.168.99.6 ndb06.i2tch.loc | 192.168.99.6 ndb06.i2tch.loc | ||
Ligne 2682: | Ligne 2312: | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
127.0.1.1 ndb08.i2tch.loc ndb08 | 127.0.1.1 ndb08.i2tch.loc ndb08 | ||
- | 192.168.99.1 ndb01.i2tch.loc | + | 10.0.2.80 ndb01.i2tch.loc |
- | 192.168.99.2 ndb02.i2tch.loc | + | 10.0.2.90 ndb02.i2tch.loc |
- | 192.168.99.3 ndb03.i2tch.loc | + | 10.0.2.100 ndb03.i2tch.loc |
- | 192.168.99.4 ndb04.i2tch.loc | + | 10.0.2.110 ndb04.i2tch.loc |
192.168.99.5 ndb05.i2tch.loc | 192.168.99.5 ndb05.i2tch.loc | ||
192.168.99.6 ndb06.i2tch.loc | 192.168.99.6 ndb06.i2tch.loc | ||
Ligne 2806: | Ligne 2436: | ||
^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ Eth0 ^ Eth1 ^ Nom d' | ^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ Eth0 ^ Eth1 ^ Nom d' | ||
- | | NDB01 | 1536 Mo | 22 | 2022 | NAT | 192.168.99.1 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | | + | | NDB01 | 1536 Mo | 22 | 2022 | NAT | 10.0.2.80 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | |
- | | NDB02 | 1536 Mo | 22 | 3022 | NAT | 192.168.99.2 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | | + | | NDB02 | 1536 Mo | 22 | 3022 | NAT | 10.0.2.90 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | |
- | | NDB03 | 1536 Mo | 22 | 4022 | NAT | 192.168.99.3 | ndb03.i2tch.loc | Nœud de données " | + | | NDB03 | 1536 Mo | 22 | 4022 | NAT | 10.0.2.100 | ndb03.i2tch.loc | Nœud de données " |
- | | NDB04 | 1536 Mo | 22 | 5022 | NAT | 192.168.99.4 | ndb04.i2tch.loc | Nœud de données " | + | | NDB04 | 1536 Mo | 22 | 5022 | NAT | 10.0.2.110 | ndb04.i2tch.loc | Nœud de données " |
Vérifiez que le cluster est en état de fonctionnement : | Vérifiez que le cluster est en état de fonctionnement : | ||
Ligne 2819: | Ligne 2449: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 2 node(s) | [ndbd(NDB)] 2 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
[ndb_mgmd(MGM)] 1 node(s) | [ndb_mgmd(MGM)] 1 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
[mysqld(API)] 1 node(s) | [mysqld(API)] 1 node(s) | ||
- | id=55 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=55 @10.0.2.90 |
</ | </ | ||
Ligne 2911: | Ligne 2541: | ||
Type ' | Type ' | ||
- | mysql> CHANGE MASTER TO MASTER_HOST=' | + | mysql> CHANGE MASTER TO MASTER_HOST=' |
Query OK, 0 rows affected, 2 warnings (2.10 sec) | Query OK, 0 rows affected, 2 warnings (2.10 sec) | ||
Ligne 3054: | Ligne 2684: | ||
^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ Eth0 ^ Eth1 ^ Nom d' | ^ Clone ^ RAM ^ Port VM ^ Port Hôte ^ Eth0 ^ Eth1 ^ Nom d' | ||
- | | NDB01 | 1536 Mo | 22 | 2022 | NAT | 192.168.99.1 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | | + | | NDB01 | 1536 Mo | 22 | 2022 | NAT | 10.0.2.80 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | |
- | | NDB01 | 1536 Mo | 22 | 3022 | NAT | 192.168.99.1 | ndb01.i2tch.loc | Nœud SQL | mysqld | 3306 | | + | | NDB01 | 1536 Mo | 22 | 3022 | NAT | 10.0.2.80 | ndb01.i2tch.loc | Nœud SQL | mysqld | 3306 | |
- | | NDB02 | 1536 Mo | 22 | 2022 | NAT | 192.168.99.2 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | | + | | NDB02 | 1536 Mo | 22 | 2022 | NAT | 10.0.2.90 | ndb01.i2tch.loc | Nœud de management | mgmd | 1186 | |
- | | NDB02 | 1536 Mo | 22 | 3022 | NAT | 192.168.99.2 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | | + | | NDB02 | 1536 Mo | 22 | 3022 | NAT | 10.0.2.90 | ndb02.i2tch.loc | Nœud SQL | mysqld | 3306 | |
- | | NDB03 | 1536 Mo | 22 | 4022 | NAT | 192.168.99.3 | ndb03.i2tch.loc | Nœud de données " | + | | NDB03 | 1536 Mo | 22 | 4022 | NAT | 10.0.2.100 | ndb03.i2tch.loc | Nœud de données " |
- | | NDB04 | 1536 Mo | 22 | 5022 | NAT | 192.168.99.4 | ndb04.i2tch.loc | Nœud de données " | + | | NDB04 | 1536 Mo | 22 | 5022 | NAT | 10.0.2.110 | ndb04.i2tch.loc | Nœud de données " |
Utilisez l' | Utilisez l' | ||
Ligne 3082: | Ligne 2712: | ||
< | < | ||
- | root@ndb03: | + | root@ndb03: |
- | 2019-01-08 21:23:19 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2019-01-08 21:23:19 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2019-01-08 21:23:19 [ndbd] INFO -- Angel allocated nodeid: 1 | 2019-01-08 21:23:19 [ndbd] INFO -- Angel allocated nodeid: 1 | ||
</ | </ | ||
Ligne 3090: | Ligne 2720: | ||
< | < | ||
- | root@ndb04: | + | root@ndb04: |
- | 2019-01-08 21:23:19 [ndbd] INFO -- Angel connected to '192.168.99.1:1186' | + | 2019-01-08 21:23:19 [ndbd] INFO -- Angel connected to '10.0.2.80:1186' |
2019-01-08 21:23:19 [ndbd] INFO -- Angel allocated nodeid: 2 | 2019-01-08 21:23:19 [ndbd] INFO -- Angel allocated nodeid: 2 | ||
</ | </ | ||
Ligne 3103: | Ligne 2733: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 2 node(s) | [ndbd(NDB)] 2 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
[ndb_mgmd(MGM)] 2 node(s) | [ndb_mgmd(MGM)] 2 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
- | id=52 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=52 @10.0.2.90 |
[mysqld(API)] 2 node(s) | [mysqld(API)] 2 node(s) | ||
- | id=55 (not connected, accepting connect from 192.168.99.1) | + | id=55 (not connected, accepting connect from 10.0.2.80) |
- | id=56 (not connected, accepting connect from 192.168.99.2) | + | id=56 (not connected, accepting connect from 10.0.2.90) |
</ | </ | ||
Ligne 3123: | Ligne 2753: | ||
--------------------- | --------------------- | ||
[ndbd(NDB)] 2 node(s) | [ndbd(NDB)] 2 node(s) | ||
- | id=1 @192.168.99.3 | + | id=1 @10.0.2.100 |
- | id=2 @192.168.99.4 | + | id=2 @10.0.2.110 |
[ndb_mgmd(MGM)] 2 node(s) | [ndb_mgmd(MGM)] 2 node(s) | ||
- | id=49 @192.168.99.1 | + | id=49 @10.0.2.80 |
- | id=52 @192.168.99.2 (mysql-5.7.24 ndb-7.5.12) | + | id=52 @10.0.2.90 |
[mysqld(API)] 2 node(s) | [mysqld(API)] 2 node(s) | ||
- | id=55 (not connected, accepting connect from 192.168.99.1) | + | id=55 (not connected, accepting connect from 10.0.2.80) |
- | id=56 (not connected, accepting connect from 192.168.99.2) | + | id=56 (not connected, accepting connect from 10.0.2.90) |
</ | </ | ||
Ligne 3390: | Ligne 3020: | ||
mysql> | mysql> | ||
</ | </ | ||
- | </ | + | |
----- | ----- | ||
< | < | ||
< | < | ||
- | Copyright © 2020 Hugh Norris.< | + | Copyright © 2021 Hugh Norris.< |
</ | </ | ||
</ | </ |