Hi,

The fact is if you follow instruction from install.linux you manually start
the kernel module and the  deamon and everything works, but it doesn’t
install the module to be loaded at boot nor the init.d scripts.

>From my humble point of vue, as a newbye in linux and OVS it is a big lack
in the installation instructions.
(and the
<http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INST
ALL.Linux;hb=HEAD> Building and Installing Open vSwitch  link in the
documentation page is broken – 404)

 

I’m still looking for a /etc/init.d script to start the ovsdb server for
Debian…

 

Please correct me if I’m wrong, but it seems that after havin follow
instruction in install.linux we still have to :

-          Install the modules :

o   Copy the openvswitch_mod.ko or openvswitch.ko from ./datapath/linux to
/lib/modules/<kernel version folder/

o   Run depmod

o   Add the module name (without .ko) to the /etc/modules file

-          Set the init script for ovsdb in the /etc/init.d folder

o    => I’m still looking for this script

-          Set the init script for the openvswitch daemon in the /etc/init.d
folder

o   The script is located in ./<linux distribution> folder (for RedHat I
guess it’s ./rhel/etc_init.d_openvswitch and for debian
./debian/openvswitch-switch.init)

(Also the names are not uniform among distributions…)

 

Am I correct ?

 

If you have some clue about a init.d script for the ovsdb daemon it would be
greatly appreciated.

 

 

 

From: discuss-boun...@openvswitch.org
[mailto:discuss-boun...@openvswitch.org] On Behalf Of behnam saberi
Sent: mardi 7 août 2012 07:05
To: Ben Pfaff
Cc: discuss@openvswitch.org Switch discuss
Subject: Re: [ovs-discuss] openvswitch configs Disappears when restart the
server

 

hi 
 my problem exist in this page (in middle of page), but no solution offered
for this problem .

http://openvswitch.org/pipermail/dev/2012-April/016295.html



Yesterday, when I ran the ovs-vsctl commands, I was able to successfully
>> > start my VMs, I had a power outage, and the machine was rebooted, today
>> I
>> > am unable to "add the bridge" again, because it already exists, but I
am
>> > unable to use the bridge.
>> 
>> That is strange.  What's in the OVS log from the time that
>> ovs-vswitchd started up?
I am attempting to use OpenV Switch as a replacement for the standard
>>> bridge controls for KVM.
>>> 
>>> After a reboot, I am receiving the following error when attempting to
>>> start my KVM VMs:
>>> 
>>> root at kitt <http://openvswitch.org/mailman/listinfo/dev> :~# virsh
start solo.rebase.ubuntu-server-11.10-oneiric-x86_64
>>> error: Failed to start domain
>>> solo.rebase.ubuntu-server-11.10-oneiric-x86_64
>>> error: Unable to add bridge br0 port vnet0: Invalid argument
>>> 
>>> I had this problem yesterday, and resolved it by creating the bridge by
>>> running the following commands,
>>> 
>>> ovs-vsctl add-br br0
>>> ovs-vsctl add-port br0 eth1
>>> 
>>> When running these commands today, I receive the following errors:
>>> 
>>> root at kitt <http://openvswitch.org/mailman/listinfo/dev> :~# ovs-vsctl
add-br br0
>>> ovs-vsctl: cannot create a bridge named br0 because a bridge named br0
>>> already exists
>>> root at kitt <http://openvswitch.org/mailman/listinfo/dev> :~# ovs-vsctl
add-port br0 eth1
>>> ovs-vsctl: cannot create a port named eth1 because a port named eth1
>>> already exists on bridge br0




plz help me, if anyone solve this problem

On Tue, Aug 7, 2012 at 12:30 AM, behnam saberi <b.saberi7...@gmail.com>
wrote:

ok. thx





On Tue, Aug 7, 2012 at 12:26 AM, Ben Pfaff <b...@nicira.com> wrote:

Please ask her to report the problem.


On Mon, Aug 06, 2012 at 11:29:21PM +0430, behnam saberi wrote:
> i speak with someone that work with openvswitch. she said ,openvswitch had
> a problem with restart server. but she doesn't  know, when this problem
> accured and what it solution.
> my openvswitch version 1.4.0
> u think probability my installation steps not correct , or platform and
> openvswitch have a problem?
>
> On Mon, Aug 6, 2012 at 11:15 PM, Justin Pettit <jpet...@nicira.com> wrote:
>
> > Those files aren't mutually exclusive.  The INSTALL.RHEL file will
contain
> > more information specific to Redhat, which is probably useful for your
> > environment.
> >
> > --Justin
> >
> >
> > On Aug 6, 2012, at 11:42 AM, behnam saberi <b.saberi7...@gmail.com>
wrote:
> >
> > > "CC to discuss@openvswitch.org"
> > >
> > > first time i install openvswitch , kernel module correct built. all
> > config without error is done. (of course i did not test for traffic
pass)
> > > my help file is install.linux.
> > > u propose use install.RHEL?
> > >
> > > before not exist this like problem?
> > >
> > >
> > > On Mon, Aug 6, 2012 at 10:17 PM, Justin Pettit <jpet...@nicira.com>
> > wrote:
> > > Please keep this on the list.
> > >
> > > > - and when insert "insmod data/linux/openvswitch_mod.ko" this
message
> > appear: insmod:error inserting 'datapath/linux/openvswitch_mod.ko': -l
> > invalid module format
> > >
> > > It doesn't seem like your kernel module is built properly.  Are you
ever
> > able to pass traffic?
> > >
> > > > - with command "ovs-vsctl add-br OF" this message appear:  Aug 06
> > 21:09:11|00002|stream_unix|ERR|/tmp/stream-unix.3470.0: connection to
> > /usr/local/var/run/openvswitch/db.sock failed: No such file or directory
> > >
> > > This indicates that ovsdb-server isn't running.  My guess is that
you're
> > not properly starting the daemons.
> > >
> > > It seems like there are a number of issues going on here.  Have you
read
> > INSTALL.RHEL, which should be pretty close to what you need for CentOS?
> > >
> > > --Justin
> > >
> > >
> > >
> >
> >

> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

 

 

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to