change the run_command to:
run_command("/sbin/tc filter add dev $iface parent ffff: protocol ip prio 50 
u32 match ip src 0.0.0.0/0 police rate ${rate}bps burst ${burst}b mtu 64kb drop 
flowid :1");

instead of


# so we use avrate instead
#run_command("/sbin/tc filter add dev $iface parent ffff: " .
#"protocol ip prio 50 estimator 1sec 8sec " .
#"u32 match ip src 0.0.0.0/0 police avrate ${rate}bps drop flowid :1");




Regards


Fan


At 2013-01-22 15:25:32,"Dietmar Maurer" <[email protected]> wrote:
>> when I use virtio with traffic limit, and it doesn't work, and see a comment
>> "# this does not work wit virtio - don't know why". comment  after some
>> search with Google, I got the solution
>> here, http://www.redhat.com/archives/libvir-list/2012-June/msg01306.html,
>> and it works now...
>
>we do not use libvirt, so how can that work?
> 
>> And a question here, why only "Directory" storage can store the ISO file? I
>> have a big iscsi storage but i can't upload ISO file in it. Accroding the 
>> source
>> code, by default LVM only used for store vm disk images. Any reason about
>> that?
>
>A block storage does not have a file system, so you can't store files.
>
>- Dietmar
>
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to