From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JY4ZX-0003xH-Mu for garchives@archives.gentoo.org; Sat, 08 Mar 2008 19:19:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB6CEE02D2; Sat, 8 Mar 2008 19:19:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 64F05E02D2 for ; Sat, 8 Mar 2008 19:19:05 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id AE10E66278 for ; Sat, 8 Mar 2008 19:19:04 +0000 (UTC) Received: from scen by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JY4ZT-0007a6-DV for gentoo-commits@lists.gentoo.org; Sat, 08 Mar 2008 19:19:03 +0000 From: "Davide Cendron (scen)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, scen@gentoo.org Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/it/infrastructure: mirrors-rsync.xml X-VCS-Repository: gentoo X-VCS-Files: mirrors-rsync.xml X-VCS-Directories: xml/htdocs/proj/it/infrastructure X-VCS-Committer: scen X-VCS-Committer-Name: Davide Cendron Content-Type: text/plain; charset=utf8 Message-Id: Sender: Davide Cendron Date: Sat, 08 Mar 2008 19:19:03 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ecd8b230-943f-4781-b579-d2cf30454b68 X-Archives-Hash: 5619c181f127a2a0879da550cb6b0232 scen 08/03/08 19:19:03 Added: mirrors-rsync.xml Log: Initial commit: version 0.9, revision 1.3 of EN CVS Revision Changes Path 1.1 xml/htdocs/proj/it/infrastructure/mirrors-rsync.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.1&content-type=3Dtext/plain Index: mirrors-rsync.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Istruzioni per amministrare il mirror rsync di Gentoo Kurt Lieber Massimo Zanetti Questa guida documenta come amministrare il sistema di mirroring rsync di Gentoo, includendo la configurazione, la rimozione e la modifica di mirro= r rsync. 0.9 2003/07/08 Creare un nuovo mirror di rsync
Introduzione

Configurare un nuovo mirror di rsync necessita dei seguenti passaggi:

  • Confermare il bug su bugzilla
  • Aggiungere una voce di prova relativa al mirror di rsync nel set di r= egole di iptables di rsync1.us.gentoo.org
  • Controllare il mirror per un certo tempo al fine di valutarne il funzionamento
  • Creare i record nel DNS per il nuovo mirror
  • Configurare i servizi di Directional DNS per il nuovo mirror nell'Ult= raDNS
Bugzilla

Il primo passo quando si crea un nuovo mirror di rsync =C3=A8 creare un b= ug su http://bugs.gentoo.org. Dopodich=C3= =A9 l'amministratore del mirror dovrebbe confermare il bug e verificare che, = per prima cosa, siano state fornite le seguenti informazioni:

  • nome del server
  • indirizzo IP del mirror
  • informazioni per contattare l'amministratore del sistema
  • numero massimo permesso di connessioni simultanee
  • specifiche del server, tra cui la CPU, la RAM e la velocit=C3=A0 di c= onnessione ad Internet
  • tutti gli altri requisiti elencati sul documento Guida e politiche per i mirror rsync di Ge= ntoo Linux

Se manca una parte di questi informazioni, chiederla chieda come suppleme= nto sul bug. Dopo di che procedere al passo successivo.

Periodo di Prova

I candidati ad un nuovo mirror di rsync devono passare attraverso un peri= odo di prova di almeno 48 ore, preferibilmente 96, in cui il loro server viene periodicamente controllato per aggiornamenti regolari con rsync1.us.gento= o.org. Per configurare ci=C3=B2 l'amministratore deve modificare le regole di ip= tables su rsync1.us.gentoo.org. Fare quindi ssh su rsync1.us.gentoo.org ed effettua= re le seguenti operazioni:

# sudo /usr/bin/vim /etc/init.d/rsync
#######
#
# TESTING MIRRORS
# METTERE QUI I MIRRORS CHE SONO NELLA FASE DI PROVA
# ESSERE CERTI DI METTERE COME REFERENZA IL NUMERO DI BUGZILLA COSI' DA P=
OTERLI
# RINTRACCIARE
#
######

        #bug #12345
             addMirror 192.168.1.1
Ciascuna voce =C3=A8 formata da almeno due righe; una che rimanda al nume= ro di bug e l'altra che contiene la voce dell'accesso. La linea relativa all'accesso deve essere formata da addMirror <indirizzo ip>

Si deve aggiungere manualmente la regola a quelle presistenti su iptables= :

# sudo /sbin/iptables -A tcp_packets -p TCP -s <ip address> --dp=
ort 873 -j tcp_allowed

Da tale momento in poi, monitorare il mirror di rsync nelle successive 48= -96 ore per essere sicuri che ci sia un aggiornamento a intervalli sui :00 e :30 = secondi (N.d.T.). Se il server mostra problemi di qualsiasi tipo, riportarli sul = bug e lavorare con l'amministratore del server per risolverli, laddove possibi= le.

Una cosa da fare =C3=A8 scrivere uno script che renda automatico il proce= sso di controllo durante il periodo di prova.
Aggiungere dei record DNS

Dopo che il mirror candidato ha superato il periodo di prova, l'amministr= atore del mirror dovrebbe creare dei record DNS per il mirror. Ciascun mirror h= a bisogno di 5 record DNS distinti:

  • Il record master rsync. Questo pu=C3=B2 essere un record A o un CNAME= . Es.: rsync5.us.gentoo.org
  • Un record TXT che contiene le informazioni relative all'aministratore= del sistema: Es. :"Joe Admin <joe@user.com>"
  • La voce corretta nella rotazione di rsync.gentoo.org
  • La voce corretta nella rotazione dei codici di nazione. Es.: rsync.uk.gentoo.org
  • La voce corretta nella rotazione dei codici dei continenti. Es.: rsync.namerica.gentoo.org
Per garantire una facile e rapida rimozione di mirror di rsync con proble= mi dalle rotazioni, le nuove voce devono essere create con un TTL di non pi=C3= =B9 di 20 minuti. Le rotazioni DNS a round robin non supportano l'uso dei CNAME nell= e rotazioni. Qualsiasi record in una rotazione round robin deve essere un r= ecord A. Siccome rsync.gentoo.org come rsync.europe.gentoo.org, rsync.us.gentoo.org e rsync.namerica.gentoo.org sono molto utilizzati, gli amministratori del mirror devono usare la loro discrezion= alit=C3=A0 quando aggiungono questi server alle rotazioni. In generale dovrebbero es= sere aggiunti alle rotazioni solo i server che supportano almeno 25 utenti, ha= nno una connessione a 10Mbps a internet e sono installati su macchine con risorse sufficienti.

Per creare le voci bisogna effettuare login su UltraDNS usando le informazioni dell'account dell'amministratore del mirror e creare i record attraverso l'interfaccia web.

Aggiungere Directional DNS

Per la rotazione del master rsync.gentoo.org, viene usata Directional DNS= cos=C3=AC da inviare agli utenti insiemi specifici di mirror basandosi sulla posizi= one dei loro indirizzi IP. Anche se =C3=A8 pi=C3=B9 facile pensare a questo aspet= to come una locazione geografica, ci si basa pi=C3=B9 precisamente sulla connessione = dell'utente e sulla sua vicinanza ai server UltraDNS. Per abilitare il servizio di Directional DNS, si devono seguire questi passi:

  • Effettuare il login sull'interfaccia amministrativa di UltraDNS
  • Selezionare il dominio di rsync.gentoo.org
  • Trovare il record per il quale si desidera impostare le capacit=C3=A0= di Directional DNS
  • Fare click sul mondo che gira (o grigio o blu) per quella voce. Si ap= rir=C3=A0 una finestra in sovraimpressione.
  • Selezionare i server per i quali UltraDNS dovrebbe restituire il reco= rd. Questi server dovrebbero essere geograficamente vicini alla posizione= della macchina
  • Premere finished per chiudere la finestra del Directional DNS.
Gli amministratori di mirror dovrebbero controllare periodicamente che rsync.gentoo.org non restituisca troppi record per un qualsiasi insieme. = Quando ci sono pi=C3=B9 di 22 (circa) record ritornati come parte di un insieme = round-robin, l'insieme diventa pi=C3=B9 grande di quello che UDP pu=C3=B2 gestire. Que= sto causa un malfunzionamento di DNS e un tentativo su TCP. Ci=C3=B2 causa problemi a = quegli utenti che hanno la porta TCP 53 bloccata.
Aggiornare la lista di accesso di iptables

Una volta che il mirror candidato =C3=A8 acceso e funzionante, l'amminist= ratore del mirror dovrebbe aggiornare la voce nella lista di accesso di iptables di rsync1.us.gentoo.org allo scopo di recepire il cambiamento.

# sudo /usr/bin/vim /etc/init.d/rsync
#######
#
# TESTING MIRRORS
# METTERE QUI I MIRRORS CHE SONO NELLA FASE DI PROVA
# ESSERE CERTI DI METTERE COME REFERENZA IL NUMERO DI BUGZILLA COSI' DA P=
OTERLI
# RINTRACCIARE
#
######

        #bug #12345
         addMirror 192.168.1.1
(togliere la voce sopra e spostarla nella sezione appropriata so=
tto)

[snip]

# .us RSYNC MIRRORS

        # rsync5.us     "Joe Admin <joe@admin.com>"
                addMirror 192.168.1.1

Ciascuna voce =C3=A8 formata da almeno due righe; una che rimanda agli am= ministratori del server e ai loro indirizzi email, l'altra che contiene la voce dell'a= ccesso. La riga dell'accesso deve essere del tipo addMirror <ip address>
Aggiornare un mirror rsync

Aggiornare un mirror rsync richiede molti dei precedenti passaggi, con l'eccezione che non c'=C3=A8 periodo di prova e i record esistenti sono s= emplicemente modificate piuttosto che aggiungerli come nuovi.

Rimuovere un mirror rsync

Per rimuovere un mirror rsync, completare semplicemente le seguenti oper= azioni:

  • Togliere la voce in /etc/init.d/rsync su rsync1.us.gentoo.org
  • Togliere manualmente la voce dall'Iptables su rsync1.us.gentoo.org<= /li>
  • Rimuovere tutti e 5 i record da UltraDNS
# sudo /sbin/iptables -D tcp_packets -p TCP -s <ip address>
--=20 gentoo-commits@lists.gentoo.org mailing list From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MvG5a-0001Gb-RN for garchives@archives.gentoo.org; Tue, 06 Oct 2009 19:52:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 637C0E0DE1; Tue, 6 Oct 2009 19:52:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 421ACE0DE1 for ; Tue, 6 Oct 2009 19:52:50 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id BDC6C67D8D for ; Tue, 6 Oct 2009 19:52:49 +0000 (UTC) Received: from scen by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MvG5Z-0007Ai-8Y for gentoo-commits@lists.gentoo.org; Tue, 06 Oct 2009 19:52:49 +0000 From: "Davide Cendron (scen)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, scen@gentoo.org Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/it/infrastructure: mirrors-rsync.xml X-VCS-Repository: gentoo X-VCS-Files: mirrors-rsync.xml X-VCS-Directories: xml/htdocs/proj/it/infrastructure X-VCS-Committer: scen X-VCS-Committer-Name: Davide Cendron Content-Type: text/plain; charset=utf8 Message-Id: Sender: Davide Cendron Date: Tue, 06 Oct 2009 19:52:49 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0d0d3677-28c4-4aa6-bfd0-80fe9db4e813 X-Archives-Hash: 1f5cf04e857ccbc9a14658ee3026db96 scen 09/10/06 19:52:49 Modified: mirrors-rsync.xml Log: Version 1.0.1, revision 1.06 of EN CVS Revision Changes Path 1.3 xml/htdocs/proj/it/infrastructure/mirrors-rsync.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.3&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.3&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?r1=3D1.2&r2=3D1.3 Index: mirrors-rsync.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/it/infrastructure/mirrors-r= sync.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- mirrors-rsync.xml 3 Jan 2009 15:19:47 -0000 1.2 +++ mirrors-rsync.xml 6 Oct 2009 19:52:48 -0000 1.3 @@ -1,5 +1,5 @@ - + =20 @@ -22,8 +22,8 @@ rsync. =20 -1.0 -2008/07/13 +1.0.1 +2009/09/17 =20 Creare un nuovo mirror di rsync @@ -31,6 +31,12 @@ Introduzione =20 + +Questo documento fa riferimento al VECCHIO sistema d'amministrazione. La nuova +documentazione di sistema =C3=A8 disponibile qui. + +

Configurare un nuovo mirror di rsync necessita dei seguenti passaggi:

From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LJ8I3-0006g6-7d for garchives@archives.gentoo.org; Sat, 03 Jan 2009 15:19:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDBB9E01C9; Sat, 3 Jan 2009 15:19:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A636AE01C9 for ; Sat, 3 Jan 2009 15:19:48 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 599A264BAA for ; Sat, 3 Jan 2009 15:19:48 +0000 (UTC) Received: from scen by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1LJ8Hz-0001OT-Ul for gentoo-commits@lists.gentoo.org; Sat, 03 Jan 2009 15:19:47 +0000 From: "Davide Cendron (scen)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, scen@gentoo.org Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/it/infrastructure: mirrors-rsync.xml X-VCS-Repository: gentoo X-VCS-Files: mirrors-rsync.xml X-VCS-Directories: xml/htdocs/proj/it/infrastructure X-VCS-Committer: scen X-VCS-Committer-Name: Davide Cendron Content-Type: text/plain; charset=utf8 Message-Id: Sender: Davide Cendron Date: Sat, 03 Jan 2009 15:19:47 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0c03f322-1410-470a-a552-23e55efa0dfd X-Archives-Hash: ca2a4da5be076488072253d01ab54a73 scen 09/01/03 15:19:47 Modified: mirrors-rsync.xml Log: Version 1.0, revision 1.4 of EN CVS Revision Changes Path 1.2 xml/htdocs/proj/it/infrastructure/mirrors-rsync.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.2&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?rev=3D1.2&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/inf= rastructure/mirrors-rsync.xml?r1=3D1.1&r2=3D1.2 Index: mirrors-rsync.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/it/infrastructure/mirrors-r= sync.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mirrors-rsync.xml 8 Mar 2008 19:19:02 -0000 1.1 +++ mirrors-rsync.xml 3 Jan 2009 15:19:47 -0000 1.2 @@ -1,5 +1,5 @@ - + =20 @@ -9,7 +9,9 @@ Kurt Lieber - + + Shyam Mani + Massimo Zanetti @@ -20,8 +22,8 @@ rsync. =20 -0.9 -2003/07/08 +1.0 +2008/07/13 =20 Creare un nuovo mirror di rsync