Great, I have successfully removed the openvswitch.ko after removed the dp. I have forgotten to check kernel datapaths.
Thanks Flavio and Jstin. Zhiwei xiong -----邮件原件----- 发件人: Pravin Shelar [mailto:pshe...@ovn.org] 发送时间: 2016年10月12日 4:35 收件人: xiongzhiwei <xiongzhi...@baicells.com> 抄送: Flavio Fernandes <fla...@flaviof.com>; Justin Pettit <jpet...@ovn.org>; discuss@openvswitch.org 主题: Re: [ovs-discuss] 答复: can't remove openvswitch.ko with "modprobe -r openvswitch " On Tue, Oct 11, 2016 at 1:15 AM, xiongzhiwei <xiongzhi...@baicells.com> wrote: > Thanks flaviof, As your email thread, I can't use the option > "force-reload-kmod" to uninstall the openvswitch.ko. > The error was always shown " modprobe: FATAL: Module openvswitch is in use." > > My operation is as below: > 1. insmod openvswitch.ko > modprobe openvswitch > 2. start the ovsdb-server: > ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options > --private-key=db:Open_vSwitch,SSL,private_key > --certificate=db:Open_vSwitch,SSL,certificate > --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach 3. start > ovs-vswitchd > ovs-vswitchd --pidfile --detach 4. add a ovs bridge > ovs-vsctl add-br br0 > 5. remove this bridge > ovs-vsctl del-br br0 > > until this step3, I can successful uninstall openvswitch.ko and no > error shown with command: modprobe -r openvswitch but, step 5, the error " > modprobe: FATAL: Module openvswitch is in use." is shown when I want to > remove the kernel mode of openvswitch, in spite of stopping ovs with "pkill > ovs". > > I have found the virtual interface named "ovs-system" with command " ifconfig > -a", I guess it is the key of this issue. So what can I do to remove the > "ovs-system"? > You can you ovs-dpctl to delete the bridge. `ovs-dpctl del-dp ovs-system` _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss