Страница 1 из 1

MPD и дисконект

Добавлено: 2008-08-12 7:45:00
savio
Значит MPD у меня конектица к прову, если происходит дисконект, то с помощью down-script переключаюсь на бэкапный канал. Проблема в том, что mpd долго "думает" во время этого разрыва, тоесть дисконект произошел, а поднятый интерфейс ng все еще весит, как будто бы канал есть. Как можно заставить mpd ускорить этот процес понимания что уже нету связи?

Re: MPD и дисконект

Добавлено: 2008-08-12 16:29:13
paradox
проверить наочую
где что и как
тоесть отследить где тормоз происходит
по логу

для начала

Re: MPD и дисконект

Добавлено: 2008-08-12 16:33:12
savio
я выключал адсл модем, и смотрел на серваке. только через минут 3-4 интерфейс падал. я думал может есть какие-то параметры для mpd.conf, что бы выставить секунд 20 к примеру......

Re: MPD и дисконект

Добавлено: 2008-08-12 16:38:36
paradox

Код: Выделить всё

tail -f /var/log/mpd.log
выдергиваешь шнурок
и анализируешь на каком этапе задержка


потом сюда покажешь

Re: MPD и дисконект

Добавлено: 2008-08-13 17:28:37
savio
вырубил шнурок в 17:17

Код: Выделить всё

Aug 13 17:18:56 bosyak mpd: [pppoe] LCP: no reply to 1 echo request(s)
Aug 13 17:19:56 bosyak mpd: [pppoe] LCP: no reply to 2 echo request(s)
Aug 13 17:19:56 bosyak mpd: [pppoe] LCP: peer not responding to echo requests
Aug 13 17:19:56 bosyak mpd: [pppoe] LCP: state change Opened --> Stopping
Aug 13 17:19:56 bosyak mpd: [pppoe] AUTH: Accounting data for user : 64753 secon                                                                                                  ds, 2261152940 octets in, 496322453 octets out
Aug 13 17:19:56 bosyak mpd: [pppoe] Bundle up: 0 links, total bandwidth 9600 bps
Aug 13 17:19:56 bosyak mpd: [pppoe] IPCP: Close event
Aug 13 17:19:56 bosyak mpd: [pppoe] IPCP: state change Opened --> Closing
Aug 13 17:19:56 bosyak mpd: [pppoe] IPCP: SendTerminateReq #4
Aug 13 17:19:56 bosyak mpd: [pppoe] error writing len 8 frame to bypass: Network                                                                                                   is down
Aug 13 17:19:56 bosyak mpd: [pppoe] IPCP: LayerDown
Aug 13 17:19:57 bosyak mpd: [pppoe] IFACE: Down event
Aug 13 17:19:57 bosyak mpd: [pppoe] IPCP: Down event
Aug 13 17:19:57 bosyak mpd: [pppoe] IPCP: LayerFinish
Aug 13 17:19:57 bosyak mpd: [pppoe] No NCPs left. Closing links...
Aug 13 17:19:57 bosyak mpd: [pppoe] closing link "pppoe"...
Aug 13 17:19:57 bosyak mpd: [pppoe] IPCP: state change Closing --> Initial
Aug 13 17:19:57 bosyak mpd: [pppoe] Last link has gone and no noretry option, wi                                                                                                  ll reopen in 3 seconds
Aug 13 17:19:57 bosyak mpd: [pppoe] AUTH: Cleanup
Aug 13 17:19:57 bosyak mpd: [pppoe] LCP: SendTerminateReq #2
Aug 13 17:19:57 bosyak mpd: [pppoe] LCP: LayerDown
Aug 13 17:19:57 bosyak mpd: [pppoe] link: CLOSE event
Aug 13 17:19:57 bosyak mpd: [pppoe] LCP: Close event
Aug 13 17:19:57 bosyak mpd: [pppoe] LCP: state change Stopping --> Closing
Aug 13 17:19:59 bosyak mpd: [pppoe] LCP: SendTerminateReq #3
Aug 13 17:20:00 bosyak mpd: [pppoe] Last link has gone and no noretry option, re                                                                                                  opening in 3 seconds
Aug 13 17:20:01 bosyak mpd: [pppoe] LCP: state change Closing --> Closed
Aug 13 17:20:01 bosyak mpd: [pppoe] LCP: LayerFinish
Aug 13 17:20:01 bosyak mpd: [pppoe] link: DOWN event
Aug 13 17:20:01 bosyak mpd: [pppoe] LCP: Down event
Aug 13 17:20:01 bosyak mpd: [pppoe] LCP: state change Closed --> Initial
Aug 13 17:20:03 bosyak mpd: [pppoe] opening link "pppoe"...
Aug 13 17:20:03 bosyak mpd: [pppoe] link: OPEN event
Aug 13 17:20:03 bosyak mpd: [pppoe] LCP: Open event
Aug 13 17:20:03 bosyak mpd: [pppoe] LCP: state change Initial --> Starting
Aug 13 17:20:03 bosyak mpd: [pppoe] LCP: LayerStart
Aug 13 17:20:03 bosyak mpd: [pppoe] pausing 4 seconds before open
Aug 13 17:20:07 bosyak mpd: [pppoe] PPPoE: Connecting to ''
Aug 13 17:20:16 bosyak mpd: [pppoe] PPPoE connection timeout after 9 seconds
Aug 13 17:20:16 bosyak mpd: [pppoe] link: DOWN event
Aug 13 17:20:16 bosyak mpd: [pppoe] link: reconnection attempt 1
Aug 13 17:20:16 bosyak mpd: [pppoe] LCP: Down event
Aug 13 17:20:16 bosyak mpd: [pppoe] pausing 5 seconds before open
Aug 13 17:20:21 bosyak mpd: [pppoe] PPPoE: Connecting to ''
Aug 13 17:20:30 bosyak mpd: [pppoe] PPPoE connection timeout after 9 seconds
Aug 13 17:20:30 bosyak mpd: [pppoe] link: DOWN event
Aug 13 17:20:30 bosyak mpd: [pppoe] link: reconnection attempt 2
Aug 13 17:20:30 bosyak mpd: [pppoe] LCP: Down event
Aug 13 17:20:30 bosyak mpd: [pppoe] pausing 5 seconds before open
Aug 13 17:20:35 bosyak mpd: [pppoe] PPPoE: Connecting to ''
Aug 13 17:20:44 bosyak mpd: [pppoe] PPPoE connection timeout after 9 seconds
...
я так понимаю что интерфес отвалился в

Код: Выделить всё

Aug 13 17:19:57 bosyak mpd: [pppoe] closing link "pppoe"...
и того 3 минуты раздупления.... как на меня то много. чего можна сделать?

Re: MPD и дисконект

Добавлено: 2008-08-13 19:13:13
paradox
никак
либо вешать пинговалку которая будет каналы переключать....