Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
localny rsync dla portage
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
c3l3r1on
n00b
n00b


Joined: 12 Nov 2006
Posts: 54

PostPosted: Fri Aug 03, 2007 10:48 am    Post subject: localny rsync dla portage Reply with quote

Witam, kozystajac z tego https://forums.gentoo.org/viewtopic.php?t=240939 opisu postawilem rsync dla portage, jednak gry proboje sie do niego "podlaczyc" dostaje komunikat (przy emerge --sync)
Code:
fubar c3l3r1on # emerge --sync
>>> Starting rsync with rsync://192.168.1.15/gentoo-portage...
>>> Checking server timestamp ...
@ERROR: Unknown module 'gentoo-portage'
rsync error: error starting client-server protocol (code 5) at main.c(1383) [receiver=2.6.9]
>>> Retrying...


Exiting on signal 2


na "serverze"

Code:
Aug  3 15:50:58 (none) rsyncd[9556]: name lookup failed for 192.168.1.21: Name or service not known
Aug  3 15:50:58 (none) rsyncd[9556]: connect from UNKNOWN (192.168.1.21)
Aug  3 15:50:58 (none) rsyncd[9556]: unknown module 'gentoo-portage' tried from UNKNOWN (192.168.1.21)


configi :
Code:

# Gentoo rsync mirror config

RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times --devices --delete --timeout=300"
#Uncomment the following line only if you have been granted access to rsync1.us.gentoo.org
#SRC="rsync://rsync1.us.gentoo.org/gentoo-portage"
#If you are waiting for access to our master mirror, select one of our mirrors to mirror from:
SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
#DST="/opt/gentoo-rsync/portage/"
DST="/usr/portage/"
Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.conf,v 1.6 2004/07/14 21:12:47 agriffis Exp $

uid = nobody
gid = nobody
use chroot = yes
max connections = 20
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
transfer logging = no
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

[gentoo-x86-portage]
#this entry is for compatibility
path = /usr/portage
comment = Gentoo Linux Portage tree

[gentoo-portage]
#modern versions of portage use this entry
path = /usr/portage
comment = Gentoo Linux Portage tree mirror
exclude = distfiles

jakis pomysl ?
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Fri Aug 03, 2007 1:46 pm    Post subject: Reply with quote

U mnie jest tak:
Code:
# rsync deamon configuration

uid = nobody
gid = nobody
use chroot = yes
max connections = 15
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
log file = /var/log/rsync.log
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 600
address = 10.1.1.1

# Simple example for enabling your own local rsync server
[gentoo-portage]
path = /usr/portage
comment = Gentoo hardened kurak.org + kidnet.pl local portage tree
exclude = /distfiles /packages
i nie mam problemów a w swoim make.conf mam tak:
Code:
SYNC="rsync://10.1.1.1/gentoo-portage"

_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
Ajgor
n00b
n00b


Joined: 07 Sep 2006
Posts: 15

PostPosted: Mon Aug 06, 2007 6:30 am    Post subject: Reply with quote

Konfiguracja jest ok ja miałem ten sam problem i pomogło
przeniesienie pliku konfiguracji
z
Code:
 /etc/rsync/rsyncd.conf
do
Code:
 /etc/rsyncd.conf

i dopiero zaczęło działać.
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Mon Aug 06, 2007 7:42 am    Post subject: Reply with quote

nie lepiej wyexportowac przez nfs /usr/portage i /var/cache/edb/dep/usr/portage i po prostu nie musiec w ogole syncowac na clientach?
Back to top
View user's profile Send private message
Ajgor
n00b
n00b


Joined: 07 Sep 2006
Posts: 15

PostPosted: Mon Aug 06, 2007 8:15 am    Post subject: Reply with quote

Paczesiowa wrote:
nie lepiej wyexportowac przez nfs /usr/portage i /var/cache/edb/dep/usr/portage i po prostu nie musiec w ogole syncowac na clientach?


Nie wszystkie komputery w sieci muszą mieć to samo zainstalowane tak samo i to samo oprogramowanie, eksport bazy to jest bezsensu przy różnych zestawach instalowanych na komputerach w sieci.
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Mon Aug 06, 2007 8:43 am    Post subject: Reply with quote

ze co? jak uzywasz rsynca to te 2 katalogi wygladaja tak samo na wszystkich komputerach (chyba ze masz jakies excludy w parametrach rsynca, ale to sie robi dla zaoszczedzenia czasu i miejsca a majac wspolne przez nfs sie oszczedza o wieeeele wiecej)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum