[CentOS-mirror] help for setting up new mirror.

Wed Jan 4 06:49:03 UTC 2017
Christopher Hawker <christopherh1992 at outlook.com.au>

Hi Ben,


Last time I checked my mirror, the CentOS mirror was using about 220GB disk space. Allowing for future growth, I would allocate 350-400GB for the medium to long term.


On my mirror, I have it accessible by going to http://mirror.chrishawker.com.au/centos. If you are planning to mirror multiple distributions, then create a sub-folder for each distribution. There are a lot of mirrors that use the mirror subdomain.


This is just something extra that you can do (if you like, but not required), you can also run a status/lastsync page on your website. I have inserted some PHP code into a WordPress page that allows me to display the contents of a text file. My mirror scripts all run the following command:


date -u > /fakepath/centos/lastsync_mirror.chrishawker.com.au.txt


Then in the WordPress pages, I enter this code (note, you will need the insert-php plugin):


[insert_php] echo file_get_contents( "http://mirror.chrishawker.com.au/centos/lastsync_mirror.chrishawker.com.au.txt" ); [/insert_php]

Using just standard PHP, change the square bracket tags for the <?php and ?> tags respectively.

When it comes to deciding where to store your content, I created a RAID5 device (/dev/md0) which mounts to a folder in the server's root directory (/, not the /root directory). My mirror server is dedicated to mirroring so I changed the default web directory to the folder in the root. Did have some issues at the start, but I resolved it within the first day (errors were my own doing).

Anything else or something you are not too sure about, please ask.



Regards,
Christopher Hawker
Phone: +61 419 273 141


________________________________
From: CentOS-mirror <centos-mirror-bounces at centos.org> on behalf of Ben .T.George <bentech4you at gmail.com>
Sent: Wednesday, 4 January 2017 4:55 PM
To: Mailing list for CentOS mirrors.
Subject: [CentOS-mirror] help for setting up new mirror.

HI List,

we were planning to set new mirror. We are on telecom segment and we would like to set it on a physical server with 1G bandwidth.

Please anyone give me the recommendation and space request for centos mirror. So that i can request SAN disk from storage team.

also while checking the current mirror, everyone is usinf www.example.com/centos<http://www.example.com/centos>

is there any domain/sub-forder recommendations?

Regards,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20170104/a7bbd387/attachment-0006.html>