[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Changing MTU of vif



Fischer, Anna wrote:
You can, for example, put "set -x" at the top of the 
/etc/xen/scripts/vif-common.sh script and then you get the output of that in 
/var/log/xen-hotplug.log.

This was actually the first thing I tried but I put set +x instead of -x which apparently doesn't work. :) Thanks for the tip! I have since corrected that and now get the following in the xen-hotplug.log:

+ add_to_bridge stbr0 vif28.1
+ local bridge=stbr0
+ local dev=vif28.1
+ '[' -e /sys/class/net/stbr0/brif/vif28.1 ']'
+ brctl addif stbr0 vif28.1
+ ip link set vif28.1 up
+ '[' stbr0 = stbr0 ']'
+ ip link set vif28.1 mtu 9000
SIOCSIFMTU: Invalid argument
++ sigerr
++ fatal '/etc/xen/scripts/vif-bridge failed; error detected.'

So we are in the add_to_bridge function and my little test for checking that this is the vif being added to my SAN bridge works and then we try to set the mtu to 9000 and get "Invalid argument". Strange thing is that this command works from the command line right after I normally set up a domain so I'm not sure what the problem is. I should be able to set the mtu on the vif and then the mtu on the bridge.

While looking through the scripts I noticed that the bridge is taken down momentarily while setting everything up so that would explain why the mtu on the bridge keeps getting reset to 1500 every time I create a domain.

Entire output is here in case anyone is interested:

http://pastebin.ca/958683

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.