openstack 相關服務經常使用命令整理

一、 數據庫:
  # systemctl start mysqld
  # systemctl enable mysqld
  # systemctl status mysqld
  #mysql> show status like 'wsrep_%'; # 查看集羣狀態

二、Haproxy:
  # systemctl start haproxy.service
  # systemctl stop haproxy.service
  # systemctl restart haproxy.service
  # systemctl enable haproxy.service

三、Pacemker:
  # systemctl start pcsd.service
  # systemctl enable pcsd.service
  # systemctl status pcsd.service
  # pcs status
  # pcs cluster standby node
  # pcs cluster unstandby node
  # pcs resource restart haproxy #重啓haproxy 資源
  # pcs resource cleanup #清除錯誤日誌後重啓全部資源

四、時間服務 chrony:
  # systemctl restart chronyd.service
  # chronyc sources #同步時間

五、ceph:
  # ceph -s
  # ceph health detail
  # ceph osd pool create pool_name gp_num pgp_num #建立池

六、http、Keystone:
  # systemctl start httpd
  # systemctl enable httpd
  # systemctl status httpd

七、rabbitmq:
  # systemctl enable rabbitmq-server.service
  # systemctl start rabbitmq-server.service
  # systemctl status rabbitmq-server.service -l
  # rabbitmqctl cluster_status
  # http://rabbitmq-server-IP:15672 #web訪問

八、Memcache:
  # systemctl enable memcached.service
  # systemctl start memcached.service


九、openstack 查看命令:
  # openstack catalog list
  # openstack endpoint list
  # openstack service list
  # openstack domain list
  # openstack image list
  # openstack host list


十、Glance:
  # systemctl enable openstack-glance-api.service openstack-glance-registry.service
  # systemctl start openstack-glance-api.service openstack-glance-registry.service
  # openstack image delete image-ID #刪除鏡像


十一、nova-controller:
  # systemctl enable openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
  # systemctl start openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
  # systemctl status openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service

十二、nova-computer:
  # systemctl enable libvirtd.service openstack-nova-compute.service
  # systemctl start libvirtd.service openstack-nova-compute.service

1三、neutron-controller:
  # systemctl enable neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
  # systemctl start neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
  # systemctl status neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service

1四、neutron-computer:
  # systemctl enable neutron-linuxbridge-agent.service
  # systemctl start neutron-linuxbridge-agent.service

1五、dashboard:
  # systemctl restart httpd.service memcached.service

node

相關文章
相關標籤/搜索