When i did sudo rm -rf /work i guess i removed the source package along with /work
I tried the following from: https://github.com/openvswitch/ovs/blob/master/INSTALL.md#startup % mkdir -p /usr/local/etc/openvswitch % ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema and it gives an error saying=> ovsdb-tool: failed to read schema: "vswitchd/vswitch.ovsschema" could not be read as JSON (error opening "vswitchd/vswitch.ovsschema" : No such file or directory) I recalled that the "vswitchd/vswitch.ovsschema" file is found in the OVS source tree. So, either i need to issue the "ovsdb-tool" command from the root directory of my OVS source tree, or name the file via an absolute filename. So i tried it with: #ovsdb-tool create /usr/local/etc/openvswitch/conf.db /users/peertest/openvswitch-2.3.1/vswitchd/vswitch.ovsschema but that too didin't work... Isn't the source tree or the absolute pathname supposed to be : /users/peertest/openvswitch-2.3.1/vswitchd/vswitch.ovsschema what to do now since the /work/openvswitch-2.3.1.has been removed by sudo rm -rf /work Do i do it again , this time keeping intact the /work folder so that the source tree of the package stays? Will that work it out? On Tue, Apr 14, 2015 at 11:48 PM, Joe Stringer <joestrin...@nicira.com> wrote: > I don't know where you're getting /users/peertest/openvswitch-2.3.1 > from, your own instructions show that you're extracting OVS to > /work/openvswitch-2.3.1. > > On 13 April 2015 at 22:02, Sanghamitra De <sanghamitra...@gmail.com> > wrote: > > > > > > Hi, > > I ran the command sequence as: > > > > sudo mkdir /work > > cd /work > > wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz > > tar zxf openvswitch-2.3.1.tar.gz > > cd openvswitch-2.3.1 > > ./configure --with-linux=/lib/modules/`uname -r`/build > > make > > make install > > sudo make modules_install > > sudo /sbin/modprobe openvswitch > > > > /sbin/lsmod > > cd / > > sudo rm -rf /work > > > > After that the disc image was used to load into other nodes. > > > > and then from one of the nodes i was going to try the following sequence: > > > > #ovsdb-tool create /usr/local/etc/openvswitch/conf.db > > /users/peertest/openvswitch-2.3.1/vswitchd/vswitch.ovsschema > > # ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \ > > --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ --pidfile > --detach > > > > ovs-vsctl --no-wait init > > sudo ovs-vswitchd --pidfile --detach --log-file > > sudo ovs-vsctl add-br OVSbr1 > > sudo ovs-vsctl add-br OVSbr2 > > sudo ifconfig eth2 0 > > sudo ifconfig eth3 0 > > sudo ovs-vsctl add-port OVSbr1 eth2 > > sudo ovs-vsctl add-port OVSbr2 eth3 > > sudo ovs-vsctl show > > > > > > but on giving the very first command in the sequence it throws an error > like > > the one showed in the screenshot attached. > > > > It seems the file openvswitch-2.3.1 is not present inside > /users/peertest/ > > > > how is this even possible? anywhere wrong in the sequence? > > > > > > > > Thanks > > > > Sanghamitra > > > > On Fri, Apr 10, 2015 at 12:00 PM, Joe Stringer <joestrin...@nicira.com> > > wrote: > >> > >> On 9 April 2015 at 23:17, Sanghamitra De <sanghamitra...@gmail.com> > wrote: > >> > Will simply addition of 'make' and 'make install' as per the above > >> > sequence > >> > ensure that i do not get the error from the configuration commands as > >> > given > >> > in red? > >> > >> Yes. > > > > > > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss