• database connection failed (Connection refused)


    ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor
    ovs-vsctl --no-wait init
    ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    [root@kunpeng82 ~]# ovs-vsctl show
    ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database connection failed (Connection refused)
    [root@kunpeng82 ~]#
    kill 不启动vtep
    ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    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
    
    [root@kunpeng82 ~]# bash start_ovs.sh 
    [root@kunpeng82 ~]# ovs-vsctl --no-wait init
    [root@kunpeng82 ~]# ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    disable ovs-vtepd
    [root@kunpeng82 ~]# cat  /usr/lib/systemd/system/ovs-vtepd.service 
    [Unit]
    Description=Open vSwitch-based VTEP emulator
    After=openvswitch.service
    Requires=openvswitch.service
    
    [Service]
    Type=simple
    EnvironmentFile=/etc/sysconfig/openvswitch-vtep
    ExecStart=/usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid $VTEP_SWITCH_NAME
    
    [root@kunpeng82 ~]# systemctl disable ovs-vtepd
    [root@kunpeng82 ~]# 
  • 相关阅读:
    验证guid()类型值的函数
    jquery时期到计时插件
    最简单快速的Apache二级域名实现方法
    线程和线程的常用方法
    Mobile WEB前端研发流程
    HTML5标莶使用初级技巧
    前端开发中常见的HTML5标签乱用案例
    iPad应用的10大用户体验设计准则
    移动平台3G手机网站前端开发布局技巧汇总
    分享HTML 5的参考手册,演讲稿,电子书和教程
  • 原文地址:https://www.cnblogs.com/dream397/p/13301406.html
Copyright © 2020-2023  润新知