WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Changing MTU of vif

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Changing MTU of vif
From: Maximilian Wilhelm <max@xxxxxxxxxxx>
Date: Thu, 27 Mar 2008 01:01:31 +0100
Delivery-date: Wed, 26 Mar 2008 17:02:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47EAD503.2090409@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <47E8A423.4020504@xxxxxxxxxxxxxxx> <47EAD503.2090409@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Am Wednesday, den 26 March hub Tracy R Reed folgendes in die Tasten:

> Tracy R Reed wrote:
> >Anyone know how I can automatically set the MTU on a vif when I create 
> >the domain?
> 
> It was pointed out on IRC that perhaps the reason I cannot set the mtu 
> at this point in the script is that the frontend inside the domU may not 
> be up yet. And as I need to get this system into production and don't 
> want to spend any more time on this issue I have just written a script 
> and cron'd it to run every minute that will go through 
> /sys/class/net/stbr0/brif/ and set the mtu on all of the interfaces it 
> finds there to 9000.

> I'll be keeping an eye out for a more proper way to solve this problem 
> but I'm done for now. Thanks all!

#define HACK_VALUE

As you wrote it is some kind of timeing related problem.
Maybe the following hack might help:

Instead of just executing the MTU fiddling stuff right when setting up
the vif, delay the setup for $time like this:

(
        sleep $time
        set mtu ...
)&

HTH
Ciao
Max
-- 
        Follow the white penguin.

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

<Prev in Thread] Current Thread [Next in Thread>