Fajar Priyanto
2007-May-02 22:51 UTC
Unknown qdisc "htb", hence option "default" is unparsable
Hi all, I''m trying bandwidth management feature of shorewall-3.4.1-3 on Centos 4.4 with no updates. I''ve checked the kernel conf (make menuconfig), that TC support for htb, sfq, e32, etc are modularized supported. I''ve checked that all these kernel modules are loaded: sch_prio 4545 0 sch_sfq 5313 0 sch_ingress 4165 0 sch_cbq 16449 0 sch_htb 21953 0 cls_fw 4417 0 cls_u32 7493 0 And that the tc command is compiled with htb and cbq support? [root@gateway sched]# which tc /sbin/tc You have new mail in /var/spool/mail/root [root@gateway sched]# strings /sbin/tc | grep htb htb2 Usage: ... qdisc add ... htb [default N] [r2q N] ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] htb: failed to calculate ceil rate table. htb: failed to calculate rate table. htb_util htb2_util I follow the configuration from the howto: tcdevices: #INTERFACE IN-BANDWITH OUT-BANDWIDTH eth0 300kbps 64kbps tcclasses: #INTERFACE MARK RATE CEIL PRIORITY OPTIONS eth0 1 full full 1 tcp-ack,tos-minimize-delay eth0 2 5kbps 15kbps 2 eth0 3 2kbps 4kbps 3 default tcrules: 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-request 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-reply 1:F 10.0.0.1/24 0.0.0.0/0 all 2:F 10.0.0.4/24 0.0.0.0/0 all shorewall.conf: TC_ENABLE = Internal However, when I restart shorewall, I got this error: May 4 22:30:14 gateway shorewall: Setting up TC Rules... May 4 22:30:14 gateway shorewall: Setting up Traffic Control... May 4 22:30:14 gateway shorewall: Unknown qdisc "htb", hence option "default" is unparsable May 4 22:30:14 gateway shorewall: ERROR: Command "tc qdisc add dev eth0 root handle 1: htb default 13" Failed May 4 22:30:14 gateway shorewall: WARNING: DISABLE_IPV6=Yes in shorewall.conf but this system does not appear to have ip6tables May 4 22:30:14 gateway shorewall: /sbin/shorewall: line 484: 11922 Terminated $SHOREWALL_SHELL ${VARDIR}/.restart $debugging restart May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stop ... May 4 22:30:15 gateway shorewall: IP Forwarding Enabled May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stopped ... May 4 22:30:15 gateway shorewall: shorewall startup failed Has anyone experienced this? Any clues are appreciated. Thank you very much. -- Fajar Priyanto | Reg''d Linux User #327841 | Linux tutorial http://linux2.arinet.org 5:44am up 8:13, 2.6.18.2-34-default GNU/Linux Let''s use OpenOffice. http://www.openoffice.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Fajar Priyanto
2007-May-04 12:13 UTC
Re: Unknown qdisc "htb", hence option "default" is unparsable
On Thursday 03 May 2007 05:51, Fajar Priyanto wrote:> Hi all, > I''m trying bandwidth management feature of shorewall-3.4.1-3 on Centos 4.4 > with no updates. > > I''ve checked the kernel conf (make menuconfig), that TC support for htb, > sfq, e32, etc are modularized supported. > > I''ve checked that all these kernel modules are loaded: > sch_prio 4545 0 > sch_sfq 5313 0 > sch_ingress 4165 0 > sch_cbq 16449 0 > sch_htb 21953 0 > cls_fw 4417 0 > cls_u32 7493 0 > > And that the tc command is compiled with htb and cbq support? > [root@gateway sched]# which tc > /sbin/tc > You have new mail in /var/spool/mail/root > [root@gateway sched]# strings /sbin/tc | grep htb > htb2 > Usage: ... qdisc add ... htb [default N] [r2q N] > ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] > htb: failed to calculate ceil rate table. > htb: failed to calculate rate table. > htb_util > htb2_util > > I follow the configuration from the howto: > tcdevices: > #INTERFACE IN-BANDWITH OUT-BANDWIDTH > eth0 300kbps 64kbps > > tcclasses: > #INTERFACE MARK RATE CEIL PRIORITY OPTIONS > eth0 1 full full 1 > tcp-ack,tos-minimize-delay > eth0 2 5kbps 15kbps 2 > eth0 3 2kbps 4kbps 3 default > > tcrules: > 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-request > 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-reply > 1:F 10.0.0.1/24 0.0.0.0/0 all > 2:F 10.0.0.4/24 0.0.0.0/0 all > > shorewall.conf: > TC_ENABLE = Internal > > However, when I restart shorewall, I got this error: > > May 4 22:30:14 gateway shorewall: Setting up TC Rules... > May 4 22:30:14 gateway shorewall: Setting up Traffic Control... > May 4 22:30:14 gateway shorewall: Unknown qdisc "htb", hence option > "default" is unparsable > May 4 22:30:14 gateway shorewall: ERROR: Command "tc qdisc add dev eth0 > root handle 1: htb default 13" Failed > May 4 22:30:14 gateway shorewall: WARNING: DISABLE_IPV6=Yes in > shorewall.conf but this system does not appear to have ip6tables > May 4 22:30:14 gateway shorewall: /sbin/shorewall: line 484: 11922 > Terminated $SHOREWALL_SHELL ${VARDIR}/.restart $debugging restart > May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stop ... > May 4 22:30:15 gateway shorewall: IP Forwarding Enabled > May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stopped ... > May 4 22:30:15 gateway shorewall: shorewall startup failed > > Has anyone experienced this? > Any clues are appreciated. Thank you very much.Anyone please? -- Fajar Priyanto | Reg''d Linux User #327841 | Linux tutorial http://linux2.arinet.org 7:09pm up 9:59, 2.6.18.2-34-default GNU/Linux Let''s use OpenOffice. http://www.openoffice.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Tom Eastep
2007-May-04 14:25 UTC
Re: Unknown qdisc "htb", hence option "default" is unparsable
Fajar Priyanto wrote:> On Thursday 03 May 2007 05:51, Fajar Priyanto wrote: >> Hi all, >> I''m trying bandwidth management feature of shorewall-3.4.1-3 on Centos 4.4 >> with no updates. >> >> I''ve checked the kernel conf (make menuconfig), that TC support for htb, >> sfq, e32, etc are modularized supported. >> >> I''ve checked that all these kernel modules are loaded: >> sch_prio 4545 0 >> sch_sfq 5313 0 >> sch_ingress 4165 0 >> sch_cbq 16449 0 >> sch_htb 21953 0 >> cls_fw 4417 0 >> cls_u32 7493 0 >> >> And that the tc command is compiled with htb and cbq support? >> [root@gateway sched]# which tc >> /sbin/tc >> You have new mail in /var/spool/mail/root >> [root@gateway sched]# strings /sbin/tc | grep htb >> htb2 >> Usage: ... qdisc add ... htb [default N] [r2q N] >> ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] >> htb: failed to calculate ceil rate table. >> htb: failed to calculate rate table. >> htb_util >> htb2_util >> >> I follow the configuration from the howto: >> tcdevices: >> #INTERFACE IN-BANDWITH OUT-BANDWIDTH >> eth0 300kbps 64kbps >> >> tcclasses: >> #INTERFACE MARK RATE CEIL PRIORITY OPTIONS >> eth0 1 full full 1 >> tcp-ack,tos-minimize-delay >> eth0 2 5kbps 15kbps 2 >> eth0 3 2kbps 4kbps 3 default >> >> tcrules: >> 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-request >> 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-reply >> 1:F 10.0.0.1/24 0.0.0.0/0 all >> 2:F 10.0.0.4/24 0.0.0.0/0 all >> >> shorewall.conf: >> TC_ENABLE = Internal >> >> However, when I restart shorewall, I got this error: >> >> May 4 22:30:14 gateway shorewall: Setting up TC Rules... >> May 4 22:30:14 gateway shorewall: Setting up Traffic Control... >> May 4 22:30:14 gateway shorewall: Unknown qdisc "htb", hence option >> "default" is unparsable >> May 4 22:30:14 gateway shorewall: ERROR: Command "tc qdisc add dev eth0 >> root handle 1: htb default 13" Failed >> May 4 22:30:14 gateway shorewall: WARNING: DISABLE_IPV6=Yes in >> shorewall.conf but this system does not appear to have ip6tables >> May 4 22:30:14 gateway shorewall: /sbin/shorewall: line 484: 11922 >> Terminated $SHOREWALL_SHELL ${VARDIR}/.restart $debugging restart >> May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stop ... >> May 4 22:30:15 gateway shorewall: IP Forwarding Enabled >> May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stopped ... >> May 4 22:30:15 gateway shorewall: shorewall startup failed >> >> Has anyone experienced this? >> Any clues are appreciated. Thank you very much. > > Anyone please?Are you sure that your PATH is set so that Shorewall is using the same version of tc that you checked? -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Tom Eastep
2007-May-04 14:30 UTC
Re: Unknown qdisc "htb", hence option "default" is unparsable
Tom Eastep wrote:> Fajar Priyanto wrote: >> On Thursday 03 May 2007 05:51, Fajar Priyanto wrote: >>> Hi all, >>> I''m trying bandwidth management feature of shorewall-3.4.1-3 on Centos 4.4 >>> with no updates. >>> >>> I''ve checked the kernel conf (make menuconfig), that TC support for htb, >>> sfq, e32, etc are modularized supported. >>> >>> I''ve checked that all these kernel modules are loaded: >>> sch_prio 4545 0 >>> sch_sfq 5313 0 >>> sch_ingress 4165 0 >>> sch_cbq 16449 0 >>> sch_htb 21953 0 >>> cls_fw 4417 0 >>> cls_u32 7493 0 >>> >>> And that the tc command is compiled with htb and cbq support? >>> [root@gateway sched]# which tc >>> /sbin/tc >>> You have new mail in /var/spool/mail/root >>> [root@gateway sched]# strings /sbin/tc | grep htb >>> htb2 >>> Usage: ... qdisc add ... htb [default N] [r2q N] >>> ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] >>> htb: failed to calculate ceil rate table. >>> htb: failed to calculate rate table. >>> htb_util >>> htb2_util >>> >>> I follow the configuration from the howto: >>> tcdevices: >>> #INTERFACE IN-BANDWITH OUT-BANDWIDTH >>> eth0 300kbps 64kbps >>> >>> tcclasses: >>> #INTERFACE MARK RATE CEIL PRIORITY OPTIONS >>> eth0 1 full full 1 >>> tcp-ack,tos-minimize-delay >>> eth0 2 5kbps 15kbps 2 >>> eth0 3 2kbps 4kbps 3 default >>> >>> tcrules: >>> 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-request >>> 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-reply >>> 1:F 10.0.0.1/24 0.0.0.0/0 all >>> 2:F 10.0.0.4/24 0.0.0.0/0 all >>> >>> shorewall.conf: >>> TC_ENABLE = Internal >>> >>> However, when I restart shorewall, I got this error: >>> >>> May 4 22:30:14 gateway shorewall: Setting up TC Rules... >>> May 4 22:30:14 gateway shorewall: Setting up Traffic Control... >>> May 4 22:30:14 gateway shorewall: Unknown qdisc "htb", hence option >>> "default" is unparsable >>> May 4 22:30:14 gateway shorewall: ERROR: Command "tc qdisc add dev eth0 >>> root handle 1: htb default 13" Failed >>> May 4 22:30:14 gateway shorewall: WARNING: DISABLE_IPV6=Yes in >>> shorewall.conf but this system does not appear to have ip6tables >>> May 4 22:30:14 gateway shorewall: /sbin/shorewall: line 484: 11922 >>> Terminated $SHOREWALL_SHELL ${VARDIR}/.restart $debugging restart >>> May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stop ... >>> May 4 22:30:15 gateway shorewall: IP Forwarding Enabled >>> May 4 22:30:15 gateway shorewall: Processing /etc/shorewall/stopped ... >>> May 4 22:30:15 gateway shorewall: shorewall startup failed >>> >>> Has anyone experienced this? >>> Any clues are appreciated. Thank you very much. >> Anyone please? > > Are you sure that your PATH is set so that Shorewall is using the same > version of tc that you checked? >The message you are getting seems to be an indication that tc itself doesn''t have htb support; witness this test: root@wookie:~/shorewall-shell-3.9.4# tc qdisc add dev eth0 root handle 1: foo default 13 Unknown qdisc "foo", hence option "default" is unparsable root@wookie:~/shorewall-shell-3.9.4# -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Fajar Priyanto
2007-May-05 05:20 UTC
Re: Unknown qdisc "htb", hence option "default" is unparsable
On Friday 04 May 2007 21:30, Tom Eastep wrote:> The message you are getting seems to be an indication that tc itself > doesn''t have htb support; witness this test: > > root@wookie:~/shorewall-shell-3.9.4# tc qdisc add dev eth0 root handle 1: > foo default 13 > Unknown qdisc "foo", hence option "default" is unparsable > root@wookie:~/shorewall-shell-3.9.4#You''re right Tom. It''s been filed as a Centos Bug: http://bugs.centos.org/view.php?id=1476 I''m testing the upgrade now. Thank you, I''ll post an update here soon. -- Fajar Priyanto | Reg''d Linux User #327841 | Linux tutorial http://linux2.arinet.org 12:19pm up 0:10, 2.6.18.2-34-default GNU/Linux Let''s use OpenOffice. http://www.openoffice.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/