Author Topic: [SOLVED] Changing mirror's download location  (Read 7941 times)

0 Members and 1 Guest are viewing this topic.

cairol220

  • Guest
[SOLVED] Changing mirror's download location
« on: May 08, 2009, 04:35:51 PM »
Hello,

as many of our customers still has no access to fast DSL, I suggested to install an avast! ADNM in our company on a neutral notebook and let them download all the mirror files. Then the ADNM on-site shall download its mirror-files from our notebook after installation. I think that will save us some time and our customers a lot of money.

So i tested this in our company, made the second mirror download its files from the first mirror and uninstalled the first one after that. Everything fine!

But now the mirror wants to get its updates from the ip of the first mirror and does not want to get it from the internet as I want him to.

Can somebody tell me, what and where I have to edit, that the mirror takes its updates from the internet?

Thanks in advance.
« Last Edit: May 11, 2009, 08:18:05 AM by cairol220 »

Offline Infratech Solutions

  • Avast Reseller
  • Massive Poster
  • *
  • Posts: 2401
  • Mayorista e integrador de Avast en España
    • Ciberseguridad Avast para empresas y MSPs en España.
Re: Changing mirror's download location
« Reply #1 on: May 08, 2009, 05:49:20 PM »
Hi,

you must edit \Program Files\Alwil Software\Management Tools\mirror\config\setup.ini

and change the second line:

ServerDefPriorities=mirror

you must put

ServerDefPriorities=main

Ihope this can help you  ;)

cairol220

  • Guest
Re: Changing mirror's download location
« Reply #2 on: May 11, 2009, 08:16:21 AM »
That did it. Thanks a lot! :)

Offline 10nico

  • Jr. Member
  • **
  • Posts: 54
  • I'm a gnu!
Re: [SOLVED] Changing mirror's download location
« Reply #3 on: May 11, 2009, 04:11:55 PM »
VERY interesting!

I have the opposite problem, I'd like to make all my local mirrors to update from my central mirror so that only the central one goes on the internet and uses internet bandwidth and the others only impact on the central one and don't go on the internet.

SO the question is: ok, I replace the line

ServerDefPriorities=main

with

ServerDefPriorities=mirror

BUT how do I tell the leaf mirrors the IP address / URL of my central mirror?
An already working example of this configuration would be very appreciated.

Thanks in advance.
Live long and prosper

Offline Infratech Solutions

  • Avast Reseller
  • Massive Poster
  • *
  • Posts: 2401
  • Mayorista e integrador de Avast en España
    • Ciberseguridad Avast para empresas y MSPs en España.
Re: [SOLVED] Changing mirror's download location
« Reply #4 on: May 12, 2009, 09:56:02 AM »
Hi 10nico

This is something that we haven't tested, but I think that it can work.

In the \Program Files\Alwil Software\Management Tools\mirror\config\setup.ini

You have to change:

ServerDefPriorities=mirror
FirstMirrorUrl=http://your_Main_AMS_IP_Adress:5033

Test and tell us...  ::)

Offline 10nico

  • Jr. Member
  • **
  • Posts: 54
  • I'm a gnu!
Re: [SOLVED] Changing mirror's download location
« Reply #5 on: May 14, 2009, 10:46:02 AM »
Thank you for your reply!

I'm testing it right now, I'll let you know as soon as I have some data.

Thanks again


Live long and prosper

Offline 10nico

  • Jr. Member
  • **
  • Posts: 54
  • I'm a gnu!
Re: [SOLVED] Changing mirror's download location
« Reply #6 on: May 14, 2009, 11:07:59 AM »
It doesn't seem to work, I get this error now: (excerpt from "C:\Program Files\Alwil Software\Management Tools\mirror\logs\mirror.log"

11:04:13 min/gen  Started: 14.05.2009, 11:04:13
11:04:13 min/gen  Running mirror_w32-0 (0)
11:04:13 nrm/sys  Operating system: Windows2000 ver 5.0, build 2195, sp 4.0 [Service Pack 4] SERVER
11:04:13 vrb/sys  Computer WinName: SRV-ASL02
11:04:13 min/sys  Windows Net User: SYSTEM
11:04:13 vrb/gen  Operation set to INST_OP_MIRROR_MIRROR
11:04:14 dbg/fil  filRenameOnReboot:!bSuccess
11:04:14 dbg/fil  filRenameOnReboot:!bSuccess
11:04:14 min/gen  scr: mirror begin...
11:04:14 nrm/int  SYNCER: Proxy 192.168.252.7:3128
11:04:14 nrm/int  SYNCER: Type: standard HTTP proxy (rfc2616,2617)
11:04:14 nrm/int  SYNCER: Auth: no authentication
11:04:14 min/gen  GUID: e4de0539-5d3f-417f-8f8a-d4f75140ff36
11:04:14 nrm/gen  scr: Mirroring...
11:04:14 min/gen  Mirror server pseudo definition loaded as 'http://192.168.252.31:5033'.
11:04:14 nrm/gen  Server definition(s) loaded for 'mirror': 1 (maintenance:0)
11:04:14 nrm/gen  SelectCurrent: selected server 'temp_mirror' from 'mirror'
11:04:14 nrm/gen  scr: Using server: http://192.168.252.31:5033
11:04:14 min/gen  Mirror server pseudo definition loaded as 'http://192.168.252.31:5033'.
11:04:14 nrm/gen  Server definition(s) loaded for 'mirror': 1 (maintenance:0)
11:04:14 nrm/gen  SelectCurrent: selected server 'temp_mirror' from 'mirror'
11:04:14 nrm/gen  scr: Using server: http://192.168.252.31:5033
11:04:14 min/gen  scr: mirror.def is broken.
11:04:14 min/gen  Err:The package is broken.
11:04:14 min/gen  Return code: 0x20000011 [The package is broken.]
11:04:14 min/gen  Stopped: 14.05.2009, 11:04:14

I've repeated the test three times and the result is always the same, it seems the leaf ams detects the main ams mirror as if it were broken...but it is not since all my clients do update ok from it.

What can I do/try?

Thank you in advance

Live long and prosper

Offline 10nico

  • Jr. Member
  • **
  • Posts: 54
  • I'm a gnu!
Re: [SOLVED] Changing mirror's download location
« Reply #7 on: May 21, 2009, 03:25:45 PM »
I've just updated my master ADNM to the latest version and hope to see some improvement in the mirroring process.

I'll let you know of any change.

Bye!
Live long and prosper

Offline 10nico

  • Jr. Member
  • **
  • Posts: 54
  • I'm a gnu!
Re: [SOLVED] Changing mirror's download location
« Reply #8 on: June 05, 2009, 04:56:45 PM »
I'm glad to report that after the update there has not been any problem (so far!) in the replication of the leaf mirrors.

Thank you very much
Live long and prosper