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"?

Thanks

Zhiwei xiong


-----邮件原件-----
发件人: Flavio Fernandes [mailto:fla...@flaviof.com] 
发送时间: 2016年10月10日 22:26
收件人: Justin Pettit <jpet...@ovn.org>
抄送: xiongzhiwei <xiongzhi...@baicells.com>; discuss@openvswitch.org
主题: Re: [ovs-discuss] can't remove openvswitch.ko with "modprobe -r openvswitch 
"


> On Oct 10, 2016, at 2:05 AM, Justin Pettit <jpet...@ovn.org> wrote:
> 
> You might check the log files.  You might also check "lsmod" and see if 
> there's any dependency on it.
> 

Also, see if this is related to a known issue that was discussed here [1].
I never got look at the code that Jesse suggested [2]; sorry!

-- flaviof

[1]: http://openvswitch.org/pipermail/discuss/2016-September/thread.html#22751
[2]: http://openvswitch.org/pipermail/discuss/2016-September/022762.html


> --Justin
> 
> 
>> On Oct 9, 2016, at 2:10 AM, xiongzhiwei <xiongzhi...@baicells.com> wrote:
>> 
>> Hi all, 
>> I have updated my ovs from 2.3.2 to 2.5, I want to remove the openvswitch.ko 
>> with “modprobe –r openvswitch”, but it doesn’t work.
>> For the ovs 2.3.2, there is no this problem.
>> 
>> Who can tell me how to uninstall the ovs?
>> 
>> Thanks and regards
>> 
>> Zhiwei Xiong
>> 
>> 
>> ----------<image001.png>----------
>> 熊志伟 Xiong Zhiwei
>> Mob:(+86) 186-1840-0861
>> E-mail:xiongzhi...@baicells.com
>> 北京佰才邦技术有限公司Baicells Technologies Co. Ltd.
>> 
>> <image002.png>
>> 本邮件及其附件含有北京佰才邦技术有限公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>> This e-mail and its attachments contain confidential information from 
>> Baicells Technologies Co. Ltd., which is intended only for the person or 
>> entity whose address is listed above. Any use of the information contained 
>> herein in any way (including, but not limited to, total or partial 
>> disclosure, reproduction, or dissemination) by persons other than the 
>> intended recipient(s) is prohibited. If you receive this e-mail in error, 
>> please notify the sender by phone or email immediately and delete it!
>> 
>> _______________________________________________
>> discuss mailing list
>> discuss@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
> 
> _______________________________________________
> 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