https://dev-eole.ac-dijon.fr/https://dev-eole.ac-dijon.fr/favicon.ico2016-11-25T14:30:40ZEnsemble Ouvert Libre ÉvolutifeSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=807512016-11-25T14:30:40ZThierry Bertrandthierry.bertrand@developpement-durable.gouv.fr
<ul><li><strong>Temps estimé</strong> mis à <i>7.00 h</i></li><li><strong>Restant à faire (heures)</strong> mis à <i>7.0</i></li></ul> eSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=811762016-11-28T17:24:12Zchristophe guerinotchristophe.guerinot@developpement-durable.gouv.fr
<ul><li><strong>Assigné à</strong> mis à <i>christophe guerinot</i></li></ul> eSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=811772016-11-28T17:24:17Zchristophe guerinotchristophe.guerinot@developpement-durable.gouv.fr
<ul><li><strong>Statut</strong> changé de <i>Nouveau</i> à <i>En cours</i></li></ul> eSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=824022016-12-09T16:50:37Zchristophe guerinotchristophe.guerinot@developpement-durable.gouv.fr
<ul></ul><p>test eolebase scribe esbl 2.6.1 OK</p>
<a name="paramétrage"></a>
<h3 >paramétrage<a href="#paramétrage" class="wiki-anchor">¶</a></h3>
<p>cas général d'un serveur de fichiers (ici esbl) avec deux interfaces (eno1 et eno4)</p>
<p>Une seule variable est concernée pour mettre en oeuvre le 'bonding':<br />rubrique 'Interface-0' mode expert<br />champ <strong>'nom_carte_eth0'</strong> : sélectionner les deux noms d'interfaces , pour notre exemple 'eno1' et 'eno4' (ou plus si l'on souhaite effectuer une aggrégation sur 3 ou 4 cartes réseau<br />It's All</p>
<p>après enregistrement , le champ multi-valuée 'nom_carte_eth0' contient plus d'une valeur, les deux variables calculées 'activer_bonding_eth0' et 'bonding_is_active' sont basculées automatiquement à 'oui'</p>
<p>deux templates sont concernés<br />après reconfigure on obtient pour '/etc/network/interfaces' et '/etc/modprobe.d/bonding.conf'</p>
<pre>
root@sbl26-170:~# cat /etc/network/interfaces
# Fichier autogénéré par EOLE
# Toute modification manuelle sera perdue
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet manual
bond-master bond0
bond-mode balance-rr
auto eno4
iface eno4 inet manual
bond-master bond0
bond-mode balance-rr
auto bond0
iface bond0 inet static
address 172.26.46.170
netmask 255.255.240.0
broadcast 172.26.47.255
network 172.26.32.0
gateway 172.26.32.2
bond-slaves eno1 eno4
bond-mode balance-rr
bond-miimon 100
bond-downdelay 200
bond-updelay 200
up service rsyslog restart
</pre>
<pre>
root@sbl26-170:~# cat /etc/modprobe.d/bonding.conf
# Fichier autogénéré par EOLE
# Toute modification manuelle sera perdue
alias bond0 bonding
</pre>
<a name="samba"></a>
<h3 >samba<a href="#samba" class="wiki-anchor">¶</a></h3>
<p>Pour samba, il n'y a rien à configurer, la variable 'nom_zone_eth0' récupère bien la valeur du nom de l'alias sur lequel s'effectue l’agrégation 'bond0'</p>
<pre>
root@sbl26-170:~# cat /etc/samba/smb.conf
(...)
interfaces = bond0
(...)
</pre>
<p>l'eSbl s'intègre bien au domaine, les comptes et groupes sont bien récupérés</p>
<a name="pour-vérifier-la-configuration"></a>
<h3 >pour vérifier la configuration<a href="#pour-vérifier-la-configuration" class="wiki-anchor">¶</a></h3>
<pre>
root@sbl26-170:~# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200
Slave Interface: eno1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 5
Permanent HW addr: 44:a8:42:40:99:50
Slave queue ID: 0
Slave Interface: eno4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 4
Permanent HW addr: 44:a8:42:40:99:53
Slave queue ID: 0
</pre>
<p>si on souhaite lister l'ensemble des interfaces physiques présentent sur le serveur<br /><pre>
root@sbl26-170:~# ifenslave -a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:40:99:50 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 44:a8:42:40:99:51 brd ff:ff:ff:ff:ff:ff
4: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 44:a8:42:40:99:52 brd ff:ff:ff:ff:ff:ff
5: eno4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:40:99:50 brd ff:ff:ff:ff:ff:ff
8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 44:a8:42:40:99:50 brd ff:ff:ff:ff:ff:ff
</pre></p>
<p>la prise en compte du module<br /><pre>
root@sbl26-170:~# lsmod
Module Size Used by
bonding 139264 0
(...)
</pre></p>
<p>test de performance</p>
<p>reste à configurer l'aggrégation de liens entre les ports du switch pour ainsi vérifier que le débit a bien doublé</p> eSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=828342016-12-14T18:19:36Zchristophe guerinotchristophe.guerinot@developpement-durable.gouv.fr
<ul><li><strong>Statut</strong> changé de <i>En cours</i> à <i>Résolu</i></li></ul><p>Ok avec Samba</p> eSBL - Tâche #18084: tester l'implémentation de l'ethernet bonding sur un eSBL 2.6.1https://dev-eole.ac-dijon.fr/issues/18084?journal_id=828982016-12-15T09:37:06ZEmmanuel IHRYemmanuel.ihry@developpement-durable.gouv.fr
<ul><li><strong>Statut</strong> changé de <i>Résolu</i> à <i>Fermé</i></li><li><strong>Restant à faire (heures)</strong> changé de <i>7.0</i> à <i>0.0</i></li></ul>