Did you Delete the datapath? Try removing the module after deleting the datapath. $ ovs-dpctl del-dp system@ovs-system
Bhanuprakash. From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of ??? Sent: Wednesday, March 29, 2017 9:26 AM To: ovs-discuss <ovs-discuss@openvswitch.org> Subject: [ovs-discuss] Issue: rmmod: ERROR: the Module openvswitch is in use Hi everyone, I'm asking for assistance to fix this issue:“rmmod: ERROR: Module openvswitch is in use” I found unloading openvswitch. Ko, appear "rmmod: ERROR: the Module openvswitch is in use" Lsmod see at this time:: ======================================================================================================================================================== root@ubuntu:/home/ych/zr9101/host/ovs/openvswitch-2.6.1#<mailto:root@ubuntu:/home/ych/zr9101/host/ovs/openvswitch-2.6.1#> lsmod |grep open Module Size Used by openvswitch 225280 1 nf_nat_ipv6 16384 1 openvswitch nf_defrag_ipv6 36864 2 openvswitch,nf_conntrack_ipv6 gre 16384 1 openvswitch libcrc32c 16384 1 openvswitch octnic 61440 1 openvswitch nf_nat_ipv4 16384 2 openvswitch,iptable_nat nf_nat 24576 4 openvswitch,nf_nat_ipv4,nf_nat_ipv6,nf_nat_masquerade_ipv4 nf_conntrack 106496 8 openvswitch,nf_nat,nf_nat_ipv4,nf_nat_ipv6,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_conntrack_ipv6 ======================================================================================================================================================== Why used is not zero?,Is this a bug Below is the steps: 1、insmod openvswitch modules sudo modprobe gre sudo modprobe nf_conntrack sudo modprobe nf_defrag_ipv4 sudo modprobe nf_nat_ipv4 sudo modprobe nf_nat sudo modprobe libcrc32c sudo modprobe nf_defrag_ipv6 sudo modprobe nf_nat_ipv6 sudo insmod $OVS_DIR/datapath/linux/openvswitch.ko sudo insmod $OVS_DIR/datapath/linux/vport-geneve.ko sudo insmod $OVS_DIR/datapath/linux/vport-gre.ko sudo insmod $OVS_DIR/datapath/linux/vport-lisp.ko sudo insmod $OVS_DIR/datapath/linux/vport-stt.ko sudo insmod $OVS_DIR/datapath/linux/vport-vxlan.ko 2、Initialize and start ovs sudo rm -rf /usr/local/etc/openvswitch sudo mkdir -p /usr/local/etc/openvswitch sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db ./vswitch.ovsschema #start configuration database sudo 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 #initialize the database sudo ovs-vsctl --no-wait init #start the main Open vSwitch daemon sudo ovs-vswitchd --pidfile --detach --log-file=/var/log/ovs-vswitchd.log 3、add br and add port sudo ovs-vsctl add-br br0 sudo ovs-vsctl add-port br0 ens39 sudo ifconfig ens39 0 sudo ifconfig br0 192.168.230.130/24 4、del port and del br sudo ovs-vsctl del-port ens39 sudo ovs-vsctl del-br br0 5、Stop the Open vSwitch daemons kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid` 6、rmmod openvswitch fail sudo rmmod openvswitch.ko appear "rmmod: ERROR: the Module openvswitch is in use" Best wishes!
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss