Re: lug-bg: Re: HTB:message in my log
- Subject: Re: lug-bg: Re: HTB:message in my log
- From: peyo@email.domain.hidden (peyo)
- Date: Tue, 18 Mar 2003 15:28:52 +0200
svetla wrote:
<em class="quotelev1">> Kolegi,
<em class="quotelev1">>
<em class="quotelev1">> imam sledniat problem..
<em class="quotelev1">> postoianno mi plue v log-a ei tova:
<em class="quotelev1">>
<em class="quotelev1">> ns kernel: HTB: quantum of class 10002 is big. Consider r2q change.<4>HTB:
<em class="quotelev1">> quantum of class 10056 is small. Consider r2q change.<6>CSLIP: code
<em class="quotelev1">> copyright 1989 Regents of the University of California
<em class="quotelev1">>
<em class="quotelev1">> i po vreme na rabota na server-a sled kato se pretovari zabiva...
<em class="quotelev1">> na kernel panic i otnovo tazi greshka..pri restart otnovo zabiva i dava pak
<em class="quotelev1">> po-gornoto suobshtenie...Stignah do izvoda che problema e v shaper-a ...i v
<em class="quotelev1">> sigle mod go spriah..nai-veroiatno naikakuv bug v HTB-to.
<em class="quotelev1">> Ako se chuvali ili imali takuv problem molia spodelete.
<em class="quotelev1">> Do tozi moment sum niamala problemi s HTB-to, no fakt e che za dva
<em class="quotelev1">> identichni kato configuracia serveri za 2 sedmici zabivaha 2 puti vseki..
<em class="quotelev1">> inache scripta na HTB classes izglejda pri men taka:
<em class="quotelev1">>
<em class="quotelev1">> #!/bin/sh
<em class="quotelev1">>
<em class="quotelev1">> TC="/sbin/tc"
<em class="quotelev1">>
<em class="quotelev1">> #This function takes three params: ip, peering trafic, internat. traffic
<em class="quotelev1">> limit_user() {
<em class="quotelev1">> #trafic we send to the users
<em class="quotelev1">> ${TC} class add dev eth0 parent 1: classid 1:$1 htb \
<em class="quotelev1">> rate ${2}kbps ceil ${2}kbps
<em class="quotelev1">> ${TC} class add dev eth0 parent 1: classid 1:$((256 + $1)) htb \
<em class="quotelev1">> rate ${3}kbps ceil ${3}kbps
<em class="quotelev1">>
<em class="quotelev1">> ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
<em class="quotelev1">> ip dst 212.36.6.$1 match ip tos 0x40 0xff flowid 1:$((256 + $1))
<em class="quotelev1">> ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
<em class="quotelev1">> ip dst 212.36.6.$1 match ip tos 0x80 0xff flowid 1:$((256 + $1))
<em class="quotelev1">> ${TC} filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match \
<em class="quotelev1">> ip dst 212.36.6.$1 flowid 1:$1
<em class="quotelev1">>
<em class="quotelev1">> #traffic we send to internet
<em class="quotelev1">> ${TC} class add dev eth1 parent 1: classid 1:$1 htb \
<em class="quotelev1">> rate ${2}kbps ceil ${2}kbps
<em class="quotelev1">> ${TC} filter add dev eth1 protocol ip parent 1:0 prio 1 u32 \
<em class="quotelev1">> match ip src 212.36.6.$1 flowid 1:$1
<em class="quotelev1">>
<em class="quotelev1">> }
<em class="quotelev1">>
<em class="quotelev1">> start() {
<em class="quotelev1">> echo "Starting shaper"
<em class="quotelev1">> ${TC} qdisc add dev eth0 root handle 1: htb r2q 1 default 255
<em class="quotelev1">> ${TC} class add dev eth0 parent 1: classid 1:255 htb rate 100Mbit ceil
<em class="quotelev1">> 100Mbit
<em class="quotelev1">>
<em class="quotelev1">> ${TC} qdisc add dev eth1 root handle 1: htb default 255
<em class="quotelev1">> ${TC} class add dev eth1 parent 1: classid 1:255 htb rate 4Mbit ceil
<em class="quotelev1">> 4Mbit
<em class="quotelev1">>
<em class="quotelev1">> for ((i=3; i<63; i++))
<em class="quotelev1">> do
<em class="quotelev1">> case $i in
<em class="quotelev1">> 2|7|55)
<em class="quotelev1">> limit_user $i 256 256
<em class="quotelev1">> ;;
<em class="quotelev1">> 3)
<em class="quotelev1">> limit_user $i 32 32
<em class="quotelev1">> ;;
<em class="quotelev1">> 54)
<em class="quotelev1">> limit_user $i 4 2
<em class="quotelev1">> ;;
<em class="quotelev1">> 56)
<em class="quotelev1">> limit_user $i 6 3
<em class="quotelev1">> ;;
<em class="quotelev1">> *)
<em class="quotelev1">> limit_user $i 70 70
<em class="quotelev1">> ;;
<em class="quotelev1">> esac
<em class="quotelev1">> done
<em class="quotelev1">> }
<em class="quotelev1">>
<em class="quotelev1">> stop () {
<em class="quotelev1">> echo "Stoping shaper ..."
<em class="quotelev1">> ${TC} qdisc del dev eth0 root handle 1: htb default 255
<em class="quotelev1">> ${TC} qdisc del dev eth1 root handle 1: htb default 255
<em class="quotelev1">> }
<em class="quotelev1">>
<em class="quotelev1">> case "$1" in
<em class="quotelev1">> start)
<em class="quotelev1">> start
<em class="quotelev1">> ;;
<em class="quotelev1">> stop)
<em class="quotelev1">> stop
<em class="quotelev1">> ;;
<em class="quotelev1">> restart)
<em class="quotelev1">> stop
<em class="quotelev1">> sleep 1
<em class="quotelev1">> start
<em class="quotelev1">> ;;
<em class="quotelev1">> *)
<em class="quotelev1">> echo $"Usage: $0 {start|stop|restart}"
<em class="quotelev1">>
<em class="quotelev1">> 10x predvaritelno!
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">> svetla writes:
<em class="quotelev1">>
<em class="quotelev2">> > ako ne e qmail, vij James mail server-a ...
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> > Peter An. Zyumbilev writes:
<em class="quotelev2">> >
<em class="quotelev3">> >> kato mapisha /etc/init.d/saslauthd
<em class="quotelev3">> >> ne se sluchav nisto..
<em class="quotelev3">> >> vapreki che ima startov script
<em class="quotelev3">> >>
<em class="quotelev3">> >> #!/bin/sh -e
<em class="quotelev3">> >>
<em class="quotelev3">> >> NAME=saslauthd
<em class="quotelev3">> >> DAEMON="/usr/sbin/${NAME}"
<em class="quotelev3">> >> DESC="SASL Authentication Daemon"
<em class="quotelev3">> >> DEFAULTS=/etc/default/saslauthd
<em class="quotelev3">> >> #tova go opraviah
<em class="quotelev3">> >> #/etc/default/saslauthd - uncommentah start yes
<em class="quotelev3">> >>
<em class="quotelev3">> >> test -f "${DAEMON}" || exit 0
<em class="quotelev3">> >>
<em class="quotelev3">> >> # Source defaults file; edit that file to configure this script.
<em class="quotelev3">> >> if [ -e "${DEFAULTS}" ]; then
<em class="quotelev3">> >> . "${DEFAULTS}"
<em class="quotelev3">> >> fi
<em class="quotelev3">> >>
<em class="quotelev3">> >> # If we're not to start the daemon, simply exit
<em class="quotelev3">> >> if [ "${START}" != "yes" ]; then
<em class="quotelev3">> >> exit 0
<em class="quotelev3">> >> fi
<em class="quotelev3">> >>
<em class="quotelev3">> >> # If we have no mechanisms defined
<em class="quotelev3">> >> if [ "x${MECHANISMS}" = "x" ]; then
<em class="quotelev3">> >> echo "You need to configure ${DEFAULTS} with mechanisms to be used"
<em class="quotelev3">> >> exit 0
<em class="quotelev3">> >> fi
<em class="quotelev3">> >>
<em class="quotelev3">> >> # Add our mechanimsms with the necessary flag
<em class="quotelev3">> >> for i in ${MECHANISMS}; do
<em class="quotelev3">> >> PARAMS="${PARAMS} -a ${i}"
<em class="quotelev3">> >> done
<em class="quotelev3">> >>
<em class="quotelev3">> >> # Consider our options
<em class="quotelev3">> >> case "${1}" in
<em class="quotelev3">> >> start)
<em class="quotelev3">> >> echo -n "Starting ${DESC}: "
<em class="quotelev3">> >> start-stop-daemon --start --quiet --pidfile
<em class="quotelev3">> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev3">> >> echo "${NAME}."
<em class="quotelev3">> >> ;;
<em class="quotelev3">> >> stop)
<em class="quotelev3">> >> echo -n "Stopping ${DESC}: "
<em class="quotelev3">> >> start-stop-daemon --stop --quiet --pidfile
<em class="quotelev3">> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev3">> >> echo "${NAME}."
<em class="quotelev3">> >> ;;
<em class="quotelev3">> >> restart|force-reload)
<em class="quotelev3">> >> echo -n "Restarting ${DESC}: "
<em class="quotelev3">> >> start-stop-daemon --stop --quiet --pidfile
<em class="quotelev3">> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev3">> >> sleep 1
<em class="quotelev3">> >> start-stop-daemon --start --quiet --pidfile
<em class="quotelev3">> >> "/var/run/${NAME}/mux.pid" --exec "${DAEMON}" -- ${PARAMS}
<em class="quotelev3">> >> echo "${NAME}."
<em class="quotelev3">> >> ;;
<em class="quotelev3">> >> *)
<em class="quotelev3">> >> echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload}"
<em class="quotelev4">> >>> &2
<em class="quotelev3">> >> exit 1
<em class="quotelev3">> >> ;;
<em class="quotelev3">> >> esac
<em class="quotelev3">> >>
<em class="quotelev3">> >> exit 0
<em class="quotelev3">> >> ################################################################
<em class="quotelev3">> >>
<em class="quotelev3">> >> ak kato si napisha kato root
<em class="quotelev3">> >>
<em class="quotelev3">> >> "saslauthd -a pam" vijdam che demona se vdiga
<em class="quotelev3">> >> osven courier i cyrus iam li drug svesten imap server ?
<em class="quotelev3">> >> Az sas cyrus-a si imam zadochen spor ot edno vreme..samo pd Suse sam go
<em class="quotelev3">> >> podkrval bez problemi..
<em class="quotelev3">> >> Ima li raboteshno resheni za virtualmail hosting za debian bez qmail
<em class="quotelev3">> >> +vpop ?
<em class="quotelev3">> >>
<em class="quotelev3">> >> Peter An. Zyumbilev
<em class="quotelev3">> >> Web Developer & Administrator
<em class="quotelev3">> >> BIVOL BULGARIA
<em class="quotelev3">> >> email: bivol_at_bivol.net <mailto:bivol_at_bivol.net>
<em class="quotelev3">> >> tel.:+359 88 966940
<em class="quotelev3">> >> web: http://www.bivol.net <http://www.bivol.net/>
<em class="quotelev3">> >>
<em class="quotelev3">> >>
<em class="quotelev3">> >>
<em class="quotelev3">> >> =========================================================================
<em class="quotelev3">> >> ===
<em class="quotelev3">> >> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev3">> >> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
<em class="quotelev3">> >> Zagora
<em class="quotelev3">> >> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev3">> >> =========================================================================
<em class="quotelev3">> >> ===
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> > Svetlana Pesheva
<em class="quotelev2">> > System Administrator
<em class="quotelev2">> > "VMT Design"
<em class="quotelev2">> > contact: 098/254246
<em class="quotelev2">> > #48332919
<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">> 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">> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev1">> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
<em class="quotelev1">> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev1">> ============================================================================
Zdravey,
Podoben problem i az sum imal. Moje bi obache, predpostavkite sa drugi.
1. za quantum - probvay da namalish quantum na clasovete - tova shte te
otarve:))
2. kernel panik - nay dobre si testvay RAM-a. Mnogo chesto yavlenie. Zagubih
dva dni, dokato ustanovia, che e leko defekten.
Razbira se, problemite moje da sa drugi, az ti kazvm kakvo beshe pri men.
Peyo
<p>============================================================================
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
============================================================================
|