... but am lacking the time to add them at the moment.
Wednesday okay for you?
=:)
Cheers,
Ralph
On Mon, 11 Jul 2011 23:58:29 +0200, Ralph Angenendt wrote:
... but am lacking the time to add them at the moment.
Wednesday okay for you?
=:)
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Yes It would be great . I'm still rsync centos repo. Could you provide me bash script to rsync with file locking ?
admin wrote:
Yes It would be great . I'm still rsync centos repo. Could you provide me bash script to rsync with file locking ?
Attached is a bash locking rsync script. This script is pretty informative and intelligent. It verifies that the time stamp of the server you are syncing form is newer then yours before it syncs. Hence it shouldn't ever delete files you have already downloaded if you hit an old mirror.
Adam
Adam wrote:
admin wrote:
Yes It would be great . I'm still rsync centos repo. Could you provide me bash script to rsync with file locking ?
Attached is a bash locking rsync script. This script is pretty informative and intelligent. It verifies that the time stamp of the server you are syncing form is newer then yours before it syncs. Hence it shouldn't ever delete files you have already downloaded if you hit an old mirror.
Adam
Oops I forgot to remove a few lines of code at the bottom that also sync over the .torrent files to my bit torrent servers. Attached is the code without those lines.
Adam
Using "touch" and "test -e" as a lock test is not safe. If the shell dies for any reason, the lock file will get stale.
If you sync station is linux, a safer option is to use the flock(1) program:
*NAME flock - Manage locks from shell scripts
SYNOPSIS flock [-sxon] [-w timeout] lockfile [-c] command...
flock [-sxon] [-w timeout] lockdir [-c] command...
flock [-sxun] [-w timeout] fd *
Here is the lock part of my mirror script:
*RunLocked() { .... }
**( flock -w 1 200 if [ "$?" -ne 0 ] ; then echo "Error, lock is already taken..." exit else RunLocked fi ) 200> ${lockdir}/mirror.centos.lock
*
Jonny
Coreix Mirrors wrote:
On 12/07/11 16:29, João Carlos Mendes Luís wrote:
Using "touch" and "test -e" as a lock test is not safe. If the shell dies for any reason, the lock file will get stale.
If you sync station is linux, a safer option is to use the flock(1) program:
+1 Or withlock.
Thanks for the heads up and example it does make much more sense. Here is an updated script using flock.
Adam
Perhaps that example code would clearer if written:
(
if ! flock -w 1 200 ; then
echo >&2 "Another process is still running..."
exit
fi
RunLocked
) 200> ${lockdir}/mirror.centos.lock
Or
exec 200> ${lockdir}/mirror.centos.lock
if ! flock -w 1 200 ; then
echo >&2 "Another process is still running..."
exit
fi
RunLocked
Or for a more succinct version:
( flock -w 1 200 && RunLocked ) 200> ${lockdir}/mirror.centos.lock
(Point is: referencing "$?" is almost never needed, and usually obfuscatory.)
From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of João Carlos Mendes Luís Sent: 13 July 2011 03:29 To: Mailing list for CentOS mirrors. Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Using "touch" and "test -e" as a lock test is not safe. If the shell dies for any reason, the lock file will get stale.
If you sync station is linux, a safer option is to use the flock(1) program:
NAME flock - Manage locks from shell scripts
SYNOPSIS flock [-sxon] [-w timeout] lockfile [-c] command...
flock [-sxon] [-w timeout] lockdir [-c] command...
flock [-sxun] [-w timeout] fd
Here is the lock part of my mirror script:
RunLocked() { .... }
( flock -w 1 200 if [ "$?" -ne 0 ] ; then echo "Error, lock is already taken..." exit else RunLocked fi ) 200> ${lockdir}/mirror.centos.lock
Jonny
--
João Carlos Mendes Luís - Computer & Networking Engineer
jonny@jonny.eng.brmailto:jonny@jonny.eng.br
On 07/12/2011 11:56 AM, Adam wrote: admin wrote:
Yes It would be great . I'm still rsync centos repo. Could you provide me bash script to rsync with file locking ?
Attached is a bash locking rsync script. This script is pretty informative and intelligent. It verifies that the time stamp of the server you are syncing form is newer then yours before it syncs. Hence it shouldn't ever delete files you have already downloaded if you hit an old mirror.
Adam
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.orgmailto:CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
----------------------------------------------------------------------------------------------- Have you seen our website?.... http://www.vodafone.co.nz
Manage Your Account, check your Vodafone Mail and send web2TXT online: http://www.vodafone.co.nz/myvodafone
CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you.
Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited.
Vodafone New Zealand Limited 20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1142 Telephone + 64 9 355 2000 Facsimile + 64 9 355 2001
I was just following the examples given in the manual, but, indeed, your suggestion is very good. Thanks a lot!
Jonny
Hi,
Web.com.ph (Philippines) currently mirror CentOS 5 and 6 now. Please update our listing. Thank you.
Regards, John Osena
Hello Ralph,
Sure, there is no rush:)
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: maandag 11 juli 2011 23:58 To: Mailing list for CentOS mirrors. Subject: [CentOS-mirror] I see all your new mirrors ...
... but am lacking the time to add them at the moment.
Wednesday okay for you?
=:)
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
hi!
i've setup a new mirror:
mirror-url: http://centos.kisiek.net mirror-sync-frequency: 4 times / day mirror-city: Tanowskie Gory mirror-country: Poland (.pl) mirror-bandwidth: 100Mbit/s mirror-sponsoring: http://kisiek.net mirror-contact: admin at kisiek.net mirror-option : http://centos.kisiek.net mirror-option : rsync rsync://centos.kisiek.ent
cheers, Tomasz "kisiek" Kisielewski
Thank you . Do you need to add any other mirror ?
On Wed, 13 Jul 2011 23:23:44 +0200, Ralph Angenendt wrote:
Am 12.07.11 11:10, schrieb admin:
hi!
i've setup a new mirror:
Okay, mirror has been added and should show up in a few hours.
Regards and thanks for your support,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
My fault . Do you need any other mirror in Poland ? I can provide next 2 mirrors in other places/datacenters
On Thu, 14 Jul 2011 00:04:57 +0200, Ralph Angenendt wrote:
Am 13.07.11 23:26, schrieb admin Tomasz Kisielewski:
Thank you . Do you need to add any other mirror ?
I can't say that I understand your question, but yes, I did add a few mirrors today :)
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Am 14.07.11 00:06, schrieb admin Tomasz Kisielewski:
My fault . Do you need any other mirror in Poland ? I can provide next 2 mirrors in other places/datacenters
Hmmm. I am seeing 6 mirrors in Poland - do you think that that's enough or not? :)
Cheers,
Ralph
Let's give some time for it .How can i request for dvd access . My sync ip is 178.19.105.138
On Thu, 14 Jul 2011 00:13:26 +0200, Ralph Angenendt wrote:
Am 14.07.11 00:06, schrieb admin Tomasz Kisielewski:
My fault . Do you need any other mirror in Poland ? I can provide next 2 mirrors in other places/datacenters
Hmmm. I am seeing 6 mirrors in Poland - do you think that that's enough or not? :)
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
On Mon, 18 Jul 2011 00:06:06 +0200, Ralph Angenendt wrote:
Am 14.07.11 01:05, schrieb admin Tomasz Kisielewski:
Let's give some time for it .How can i request for dvd access . My sync ip is 178.19.105.138
Added. Tell me when you have the DVDs and I change your entry.
Ralph
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Done . You can add me
Could you edit http://www.centos.org/modules/tinycontent/index.php?id=34 Kisiek not Kiesiek
Am 14.07.11 17:54, schrieb admin Tomasz Kisielewski:
Could you edit http://www.centos.org/modules/tinycontent/index.php?id=34 Kisiek not Kiesiek
Oh, sorry. Fixed.
Ralph
Hello Ralph,
I saw that I only have DVD iso's for CentOS 6.0, if I can get access to msync-dvd.centos.org I can also offer DVD downloads of other versions.
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: maandag 11 juli 2011 23:58 To: Mailing list for CentOS mirrors. Subject: [CentOS-mirror] I see all your new mirrors ...
... but am lacking the time to add them at the moment.
Wednesday okay for you?
=:)
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Am 12.07.11 22:52, schrieb Daniel Koop:
Hello Ralph,
I saw that I only have DVD iso's for CentOS 6.0, if I can get access to msync-dvd.centos.org I can also offer DVD downloads of other versions.
I'd need the mirror name *and* the ip address you are syncing from, then.
Cheers,
Ralph
http://mirror.yourwebhoster.eu syncing with the IP's 178.21.20.98 / 2a00:1ca8:e:4::8c62:93f1
The mirror supports IPv6.
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: woensdag 13 juli 2011 2:15 To: centos-mirror@centos.org Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Am 12.07.11 22:52, schrieb Daniel Koop:
Hello Ralph,
I saw that I only have DVD iso's for CentOS 6.0, if I can get access to msync-dvd.centos.org I can also offer DVD downloads of other versions.
I'd need the mirror name *and* the ip address you are syncing from, then.
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Am 13.07.11 08:20, schrieb Daniel Koop:
http://mirror.yourwebhoster.eu syncing with the IP's 178.21.20.98 / 2a00:1ca8:e:4::8c62:93f1
Done. You now need to sync from somewhere else:
/usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd
Cheers,
Ralph
Hello Ralph, I'm getting this: /usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd @ERROR: Unknown module 'CentOS-incdvd' rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: woensdag 13 juli 2011 23:29 To: centos-mirror@centos.org Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Am 13.07.11 08:20, schrieb Daniel Koop:
http://mirror.yourwebhoster.eu syncing with the IP's 178.21.20.98 / 2a00:1ca8:e:4::8c62:93f1
Done. You now need to sync from somewhere else:
/usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
I have the same error
On Wed, 13 Jul 2011 23:31:17 +0200, Daniel Koop wrote:
Hello Ralph, I'm getting this: /usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd @ERROR: Unknown module 'CentOS-incdvd' rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: woensdag 13 juli 2011 23:29 To: centos-mirror@centos.org Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Am 13.07.11 08:20, schrieb Daniel Koop:
http://mirror.yourwebhoster.eu syncing with the IP's 178.21.20.98 / 2a00:1ca8:e:4::8c62:93f1
Done. You now need to sync from somewhere else:
/usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd
Cheers,
Ralph _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
You have to change the repo and source hostname
In my case it was us-msync.centos.org and CentOS
Hello Walter,
I´m trying to get the mirror in sync with all the dvd releases, I already have the mirror up to date without the DVD releases (except for 6.0). Or can I use the normal mirror to get the dvd releases?
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Walter Pinto Sent: woensdag 13 juli 2011 23:36 To: Mailing list for CentOS mirrors. Subject: Re: [CentOS-mirror] I see all your new mirrors ...
You have to change the repo and source hostname
In my case it was us-msync.centos.org and CentOS _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
It seems to work now, I'll confirm when it is ready!
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Daniel Koop Sent: woensdag 13 juli 2011 23:42 To: 'Mailing list for CentOS mirrors.' Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Hello Walter,
I´m trying to get the mirror in sync with all the dvd releases, I already have the mirror up to date without the DVD releases (except for 6.0). Or can I use the normal mirror to get the dvd releases?
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Walter Pinto Sent: woensdag 13 juli 2011 23:36 To: Mailing list for CentOS mirrors. Subject: Re: [CentOS-mirror] I see all your new mirrors ...
You have to change the repo and source hostname
In my case it was us-msync.centos.org and CentOS _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Sorry I didn't know that, anyway it's syncing now the dvd's, in 10 minutes or so it will be done. You've added the mirror with the correct information now and I'm happy to help you guys with publishing CentOS. Thank you!
Met vriendelijke groet, Daniël Koop Yourwebhoster.eu
Tel. 0294820000
Address: Yourwebhoster.eu MR. J.C. Bührmannlaan 36 1381GM Weesp Noord-Holland Nederland
KVK 32165429 BTW nr. NL210242930B01
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Ralph Angenendt Sent: donderdag 14 juli 2011 0:06 To: centos-mirror@centos.org Subject: Re: [CentOS-mirror] I see all your new mirrors ...
Am 13.07.11 23:31, schrieb Daniel Koop:
Hello Ralph, I'm getting this: /usr/bin/rsync -aqzH --delete --delay-updates msync-dvd.centos.org::CentOS-incdvd @ERROR: Unknown module 'CentOS-incdvd'
No haste :)
The change needs to propagate to all our msync-dvd machines.
Cheers,
Ralph
_______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror