Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Re: HTB:message in my log


  • Subject: Re: lug-bg: Re: HTB:message in my log
  • From: svetla@email.domain.hidden (svetla)
  • Date: Tue, 18 Mar 2003 14:25:14 +0200


Kolegi, 

imam sledniat problem..
postoianno mi plue v log-a ei tova: 

ns kernel: HTB: quantum of class 10002 is big. Consider r2q change.<4>HTB: 
quantum of class 10056 is small. Consider r2q change.<6>CSLIP: code 
copyright 1989 Regents of the University of California 

<p>i po vreme na rabota na server-a sled kato se pretovari zabiva...
na kernel panic i otnovo tazi greshka..pri restart otnovo zabiva i dava pak 
po-gornoto suobshtenie...Stignah do izvoda che problema e v shaper-a ...i v 
sigle mod go spriah..nai-veroiatno naikakuv bug v HTB-to.
Ako se chuvali ili imali takuv problem molia spodelete.
Do tozi moment sum niamala problemi s HTB-to, no fakt e che za dva 
identichni kato configuracia serveri za 2 sedmici zabivaha 2 puti vseki..
inache scripta na HTB classes izglejda pri men taka: 

#!/bin/sh 

TC="/sbin/tc" 

#This function takes three params: ip, peering trafic, internat. traffic
limit_user() {
   #trafic we send to the users
   ${TC} class add dev eth0 parent 1: classid 1:$1 htb \
       rate ${2}kbps ceil ${2}kbps
   ${TC} class add dev eth0 parent 1: classid 1:$((256 + $1)) htb \
       rate ${3}kbps ceil ${3}kbps 

<p>   ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
       ip dst 212.36.6.$1 match ip tos 0x40 0xff flowid 1:$((256 + $1))
   ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
       ip dst 212.36.6.$1 match ip tos 0x80 0xff flowid 1:$((256 + $1))
   ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
       ip dst 212.36.6.$1 flowid 1:$1 

   #traffic we send to internet
   ${TC} class add dev eth1 parent 1: classid 1:$1 htb \
       rate ${2}kbps ceil ${2}kbps
   ${TC} filter add dev eth1 protocol ip parent 1:0 prio 1 u32 \
       match ip src 212.36.6.$1 flowid 1:$1 

} 

tart() {
   echo "Starting shaper"
   ${TC} qdisc add dev eth0 root handle 1: htb r2q 1 default 255
   ${TC} class add dev eth0 parent 1: classid 1:255 htb rate 100Mbit ceil 
100Mbit 

   ${TC} qdisc add dev eth1 root handle 1: htb default 255
   ${TC} class add dev eth1 parent 1: classid 1:255 htb rate 4Mbit ceil 
4Mbit 

   for ((i=3; i<63; i++))
   do
       case $i in
           2|7|55)
               limit_user $i 256 256
               ;;
           3)
               limit_user $i 32 32
               ;;
           54)
               limit_user $i 4 2
               ;;
           56)
               limit_user $i 6 3
               ;;
           *)
               limit_user $i 70 70
               ;;
       esac
   done
} 

top () {
   echo "Stoping shaper ..."
   ${TC} qdisc del dev eth0 root handle 1: htb default 255
   ${TC} qdisc del dev eth1 root handle 1: htb default 255
} 

case "$1" in
 start)
       start
       ;;
 stop)
       stop
       ;;
 restart)
       stop
       sleep 1
       start
       ;;
 *)
       echo $"Usage: $0 {start|stop|restart}" 

<p>10x predvaritelno! 

 

 

 

 

 

<p>svetla writes: 

<em class="quotelev1">> ako ne e qmail, vij James mail server-a ...  
<em class="quotelev1">> 
<em class="quotelev1">> 
<em class="quotelev1">> Peter An. Zyumbilev writes:  
<em class="quotelev1">> 
<em class="quotelev2">>> kato mapisha /etc/init.d/saslauthd
<em class="quotelev2">>> ne se sluchav nisto..
<em class="quotelev2">>> vapreki che ima startov script  
<em class="quotelev2">>> 
<em class="quotelev2">>> #!/bin/sh -e  
<em class="quotelev2">>> 
<em class="quotelev2">>> NAME=saslauthd
<em class="quotelev2">>> DAEMON="/usr/sbin/${NAME}"
<em class="quotelev2">>> DESC="SASL Authentication Daemon"
<em class="quotelev2">>> DEFAULTS=/etc/default/saslauthd
<em class="quotelev2">>> #tova go opraviah
<em class="quotelev2">>> #/etc/default/saslauthd - uncommentah start yes  
<em class="quotelev2">>> 
<em class="quotelev2">>> test -f "${DAEMON}" || exit 0  
<em class="quotelev2">>> 
<em class="quotelev2">>> # Source defaults file; edit that file to configure this script.
<em class="quotelev2">>> if [ -e "${DEFAULTS}" ]; then
<em class="quotelev2">>>     . "${DEFAULTS}"
<em class="quotelev2">>> fi  
<em class="quotelev2">>> 
<em class="quotelev2">>> # If we're not to start the daemon, simply exit
<em class="quotelev2">>> if [ "${START}" != "yes" ]; then
<em class="quotelev2">>>     exit 0
<em class="quotelev2">>> fi  
<em class="quotelev2">>> 
<em class="quotelev2">>> # If we have no mechanisms defined
<em class="quotelev2">>> if [ "x${MECHANISMS}" = "x" ]; then
<em class="quotelev2">>>     echo "You need to configure ${DEFAULTS} with mechanisms to be used"
<em class="quotelev2">>>     exit 0
<em class="quotelev2">>> fi  
<em class="quotelev2">>> 
<em class="quotelev2">>> # Add our mechanimsms with the necessary flag
<em class="quotelev2">>> for i in ${MECHANISMS}; do
<em class="quotelev2">>>     PARAMS="${PARAMS} -a ${i}"
<em class="quotelev2">>> done  
<em class="quotelev2">>> 
<em class="quotelev2">>> # Consider our options
<em class="quotelev2">>> case "${1}" in
<em class="quotelev2">>>   start)
<em class="quotelev2">>>         echo -n "Starting ${DESC}: "
<em class="quotelev2">>>         start-stop-daemon --start --quiet --pidfile
<em class="quotelev2">>> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev2">>>         echo "${NAME}."
<em class="quotelev2">>>         ;;
<em class="quotelev2">>>   stop)
<em class="quotelev2">>>         echo -n "Stopping ${DESC}: "
<em class="quotelev2">>>         start-stop-daemon --stop --quiet --pidfile
<em class="quotelev2">>> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev2">>>         echo "${NAME}."
<em class="quotelev2">>>         ;;
<em class="quotelev2">>>   restart|force-reload)
<em class="quotelev2">>>         echo -n "Restarting ${DESC}: "
<em class="quotelev2">>>         start-stop-daemon --stop --quiet --pidfile
<em class="quotelev2">>> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev2">>>         sleep 1
<em class="quotelev2">>>         start-stop-daemon --start --quiet --pidfile
<em class="quotelev2">>> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev2">>>         echo "${NAME}."
<em class="quotelev2">>>         ;;
<em class="quotelev2">>>   *)
<em class="quotelev2">>>      echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload}"
<em class="quotelev3">>>> &2
<em class="quotelev2">>>         exit 1
<em class="quotelev2">>>         ;;
<em class="quotelev2">>> esac  
<em class="quotelev2">>> 
<em class="quotelev2">>> exit 0
<em class="quotelev2">>> ################################################################  
<em class="quotelev2">>> 
<em class="quotelev2">>> ak kato si napisha kato root  
<em class="quotelev2">>> 
<em class="quotelev2">>> "saslauthd -a pam" vijdam che demona se vdiga
<em class="quotelev2">>> osven courier i cyrus iam li drug svesten imap server ?
<em class="quotelev2">>> Az sas cyrus-a si imam zadochen spor ot edno vreme..samo pd Suse sam go
<em class="quotelev2">>> podkrval bez problemi..
<em class="quotelev2">>> Ima li raboteshno resheni za virtualmail hosting za debian bez qmail 
<em class="quotelev2">>> +vpop ?  
<em class="quotelev2">>> 
<em class="quotelev2">>> Peter An. Zyumbilev
<em class="quotelev2">>> Web Developer & Administrator
<em class="quotelev2">>> BIVOL BULGARIA
<em class="quotelev2">>> email: bivol_at_bivol.net <mailto:bivol_at_bivol.net>
<em class="quotelev2">>> tel.:+359 88 966940
<em class="quotelev2">>> web: http://www.bivol.net <http://www.bivol.net/>  
<em class="quotelev2">>> 
<em class="quotelev2">>>   
<em class="quotelev2">>> 
<em class="quotelev2">>> ========================================================================= 
<em class="quotelev2">>> ===
<em class="quotelev2">>> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev2">>> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara 
<em class="quotelev2">>> Zagora
<em class="quotelev2">>> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev2">>> ========================================================================= 
<em class="quotelev2">>> ===
<em class="quotelev1">>  
<em class="quotelev1">> 
<em class="quotelev1">> 
<em class="quotelev1">> Svetlana Pesheva
<em class="quotelev1">> System Administrator
<em class="quotelev1">> "VMT Design"
<em class="quotelev1">> contact: 098/254246
<em class="quotelev1">> #48332919 
<em class="quotelev1">> ========================================================================== 
<em class="quotelev1">> ==
<em class="quotelev1">> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev1">> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara 
<em class="quotelev1">> Zagora
<em class="quotelev1">> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev1">> ========================================================================== 
<em class="quotelev1">> ==
 

<p>Svetlana Pesheva
System Administrator
"VMT Design"
contact: 098/254246
#48332919 
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.