Hi Justin, Thanks for your help. Yes, I have checked the dependencies of openvswitch.ko, the results as below:
[root@localhost bai_ovs_2.5]# lsmod | grep openvswitch openvswitch 258935 1 nf_defrag_ipv6 34651 1 openvswitch gre 13808 1 openvswitch nf_defrag_ipv4 12729 2 openvswitch,nf_conntrack_ipv4 nf_conntrack 101024 5 openvswitch,nf_nat,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4 libcrc32c 12644 3 xfs,btrfs,openvswitch [root@localhost bai_ovs_2.5]# modprobe --show-depends openvswitch insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/lib/libcrc32c.ko insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv4/gre.ko insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/netfilter/nf_conntrack.ko insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv6/netfilter/nf_defrag_ipv6.ko insmod /lib/modules/3.10.0-123.el7.x86_64/extra/openvswitch.ko I have tried to rmmod these dependancies, but still faild. The error is shown "modprobe: FATAL: Module *** is in use” same as Openvswitch kernel model. I have tested uninstallation would be faild once I added an ovs bridge witch command "ovs-vsctl add-br br0", even though I have killed ovs-vswitchd and ovsdb procedure. If I remove all ovs bridges with command "ovs-vsctl del-br", the uninstallation still faild. I don't know what happened. Thanks -----邮件原件----- 发件人: Justin Pettit [mailto:jpet...@ovn.org] 发送时间: 2016年10月10日 14:06 收件人: xiongzhiwei <xiongzhi...@baicells.com> 抄送: discuss@openvswitch.org 主题: Re: [ovs-discuss] can't remove openvswitch.ko with "modprobe -r openvswitch " You might check the log files. You might also check "lsmod" and see if there's any dependency on it. --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