【openstack N版】——摘除一个计算节点
1.查看计算节点
#查看所有计算节点
[root@open-control01 ~]# nova service-list
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-conductor | open-control01 | internal | enabled | up | 2017-05-02T02:22:09.000000 | - |
| 2 | nova-scheduler | open-control01 | internal | enabled | up | 2017-05-02T02:22:03.000000 | - |
| 3 | nova-consoleauth | open-control01 | internal | enabled | up | 2017-05-02T02:22:05.000000 | - |
| 8 | nova-compute | open-compute01 | nova | enabled | up | 2017-05-02T02:22:06.000000 | - |
| 9 | nova-compute | open-compute02 | nova | enabled | up | 2017-05-02T02:22:03.000000 | - |
| 10 | nova-compute | open-compute03 | nova | enabled | up | 2017-05-02T02:22:03.000000 | - |
| 11 | nova-compute | open-compute04 | nova | enabled | up | 2017-05-02T02:22:01.000000 | - |
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
2.选择要删除的计算节点
#删除open-compute04的ID
[root@open-control01 ~]# nova service-delete
3.查看网络
#查看网络
[root@open-control01 ~]# neutron agent-list
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| 231b4151-79ae-403c-9634-22fb84504012 | Linux bridge agent | open-compute04 | | :-) | True | neutron-linuxbridge-agent |
| 3b7808f5-c5da-495e-bd5d-53ec0e278336 | Linux bridge agent | open-compute02 | | :-) | True | neutron-linuxbridge-agent |
| 461362e0-a2fc-4c07-8f05-7438238895a3 | Linux bridge agent | open-control01 | | :-) | True | neutron-linuxbridge-agent |
| de7c1926-1934-4d95-ab35-5ec249e92f1b | Linux bridge agent | open-compute01 | | :-) | True | neutron-linuxbridge-agent |
| ecb03a62-3099-486e-a685-4a94b1891300 | DHCP agent | open-control01 | nova | :-) | True | neutron-dhcp-agent |
| f1041be4-b6e5-41da-bbb8-73efcccf1893 | Linux bridge agent | open-compute03 | | :-) | True | neutron-linuxbridge-agent |
| fb1b72fe-3a7d-4d74-9a65-87fe082b672b | Metadata agent | open-control01 | | :-) | True | neutron-metadata-agent |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
4.删除compute04的网络
#删除网络(ID)
[root@open-control01 ~]# neutron agent-delete 231b4151-79ae-403c--22fb84504012
Deleted agent(s): 231b4151-79ae-403c--22fb84504012
5.停止计算节点nova、neutron相关服务
#停止服务
[root@open-compute04 ~]# systemctl stop libvirtd.service openstack-nova-compute.service
[root@open-compute04 ~]# systemctl stop neutron-linuxbridge-agent
6.登录数据库
#用nova用户登录数据库
[root@open-control01 ~]# mysql -unova -pnovapasswd
#使用nova库
MariaDB [(none)]> use nova;
#查询nova主机
MariaDB [nova]> select host from nova.services;
+--------------------+
| host |
+--------------------+
| open-compute01 |
| open-compute02 |
| open-compute03 |
| open-compute04 |
| open-control01 |
| open-control01 |
| open-control01 |
+--------------------+
MariaDB [nova]> select hypervisor_hostname from compute_nodes;
+---------------------+
| hypervisor_hostname |
+---------------------+
| open-compute01 |
| open-compute02 |
| open-compute03 |
| open-compute04 |
| open-compute04 |
+---------------------+
7.删除查询的数据
#删除
MariaDB [nova]> delete from nova.services where host="open-compute04";
Query OK, row affected (0.02 sec)
MariaDB [nova]> delete from compute_nodes where hypervisor_hostname="open-compute04";
Query OK, rows affected (0.01 sec)
8.检查
#nova列表
[root@open-control01 ~]# nova service-list
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-conductor | open-control01 | internal | enabled | up | 2017-05-02T02:43:00.000000 | - |
| 2 | nova-scheduler | open-control01 | internal | enabled | up | 2017-05-02T02:42:53.000000 | - |
| 3 | nova-consoleauth | open-control01 | internal | enabled | up | 2017-05-02T02:42:55.000000 | - |
| 8 | nova-compute | open-compute01 | nova | enabled | up | 2017-05-02T02:42:55.000000 | - |
| 9 | nova-compute | open-compute02 | nova | enabled | up | 2017-05-02T02:42:53.000000 | - |
| 10 | nova-compute | open-compute03 | nova | enabled | up | 2017-05-02T02:42:53.000000 | - |
+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
#neutron列表
[root@open-control01 ~]# neutron agent-list
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| 3b7808f5-c5da-495e-bd5d-53ec0e278336 | Linux bridge agent | open-compute02 | | :-) | True | neutron-linuxbridge-agent |
| 461362e0-a2fc-4c07-8f05-7438238895a3 | Linux bridge agent | open-control01 | | :-) | True | neutron-linuxbridge-agent |
| de7c1926-1934-4d95-ab35-5ec249e92f1b | Linux bridge agent | open-compute01 | | :-) | True | neutron-linuxbridge-agent |
| ecb03a62-3099-486e-a685-4a94b1891300 | DHCP agent | open-control01 | nova | :-) | True | neutron-dhcp-agent |
| f1041be4-b6e5-41da-bbb8-73efcccf1893 | Linux bridge agent | open-compute03 | | :-) | True | neutron-linuxbridge-agent |
| fb1b72fe-3a7d-4d74-9a65-87fe082b672b | Metadata agent | open-control01 | | :-) | True | neutron-metadata-agent |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
【开源是一种精神,分享是一种美德】
— By GoodCook
— 笔者QQ:253097001
— 欢迎大家随时来交流
—原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。
【openstack N版】——摘除一个计算节点的更多相关文章
- hadoop 集群 加入一个新的存储节点和删除一个计算节点需要刷新集群状态命令
加入一个新的存储节点和删除一个计算节点需要刷新集群状态命令 方式1:静态添加datanode,停止namenode方式 1.停止namenode 2.修改slaves文件,并更新到各个节点3.启动na ...
- OpenStack搭建Q版只属于计算节点上的环境准备(step6)
配置NTP服务 1.安装chronyd yum install chrony -y 2.修改配置文件,使计算节点与控制节点同步时间 vim /etc/chrony.conf 注释掉下面四行: #ser ...
- 超千个节点OpenStack私有云案例(1):CERN 5000+ 计算节点私有云
CERN:欧洲核子研究组织 本文根据以下几篇文章整理而来: https://www.openstack.org/summit/tokyo-2015/videos/presentation/unveil ...
- openstack中彻底删除计算节点的操作记录
在使用openstack的过程中,我们经常会添加好几台计算节点来部署虚拟机,在后续使用中由于某些原因,一些计算节点出现了问题,需要将这些出了问题的计算节点从openstack的控制节点中踢出去!但是很 ...
- OpenStack 新加计算节点后修改
Contents [hide] 1 前提 2 iptables禁止snat= 3 vlan支持 4 Quota支持 5 修改物理资源设置. 6 添加collectd 7 重启服务 前提 我们使用fue ...
- OpenStack运维(二):OpenStack计算节点的故障和维护
1.计划中的维护 举例:需要升级某一个计算节点的硬件配置,需要将计算节点上的虚拟机迁移后在对其进行操作,分为两种情况. 1.1 云系统使用了共享存储 a. 获取虚拟机列表:nova list --ho ...
- 【openstack N版】——云主机调整大小\冷迁移
一.先决条件 云主机冷迁移,即:将一台云主机从一个计算节点上,迁移到另外一个计算节点上.因为环境原因,所以我们需要准备两个计算节点. 1.1准备环境 在控制节点上,安装一个计算节点 #在控制节点安装n ...
- openstack--6--控制节点和计算节点安装配置neutron
Neutron相关介绍 早期的时候是没有neutron,早期所使用的网络的nova-network,经过版本改变才有个neutron. quantum是因为商标和别的公司重名了,又改成的Neutron ...
- 提升Exadata 计算节点本地IO性能
1.问题概述 某客户有一台Exadata X2-2,每个计算节点是4块普通的本地SAS硬盘做成的RAID5,然后在RAID5的本地硬盘上创建了一个文件系统来存放DSG数据同步软件,在后续的运维过程中, ...
随机推荐
- JavaSE之认识java
本来很早之前就应该总结自己在JavaSE中系统学到的知识了,马上就要出去工作了,想想自己还是非常菜的菜鸟,自己就夜不能寐呀.现在从zero基础开始带大家一起回顾学习的基础知识. 现在已经是凌晨了,但是 ...
- entity framework core 支持批量插入,值得期待
entity framework6.x之前搞了这么多版本,构架这么牛B,居然没有批量插入更新的功能,但有很多替换的解决方案,例如Entity Framework Extended Library(ht ...
- <abbr>标签的
表示一个缩写形式,比如 "Inc."."etc.".通过对缩写词语进行标记,您就能够为浏览器.拼写检查程序.翻译系统以及搜索引擎分度器提供有用的信息. 将一个标 ...
- WebX框架学习笔记之一
Webx是什么? Webx是一套基于Java Servlet API的通用Web框架.它在Alibaba集团内部被广泛使用.从2010年底,向社会开放源码. Webx的发展历史 2001年,阿里巴巴内 ...
- 使用github+hexo搭建博客笔记
听说github上可以搭博客,而且不用自己提供空间和维护,哈哈哈 作为一名程序猿,github搭博客对我有种神奇的吸引力,赶紧动手试一试 关于如何使用hexo搭建博客网上好的教程多如牛毛,而且这篇博客 ...
- 程序猿 tensorflow 入门开发及人工智能实战
tensorflow 中文文档: http://www.tensorfly.cn http://wiki.jikexueyuan.com/project/tensorflow-zh/ tensorfl ...
- Android自定义View之音频条形图
2016-04-12 17:52 76人阅读 评论(2) 收藏 举报 分类: Android(26) 版权声明:本文为博主原创文章,未经博主允许不得转载. 新建项目,新建MusicRectangl ...
- MVC 5 + EF6 完整教程15 -- 使用DI进行解耦
如果大家研究一些开源项目,会发现无处不在的DI(Dependency Injection依赖注入). 本篇文章将会详细讲述如何在MVC中使用Ninject实现DI 文章提纲 场景描述 & 问题 ...
- [编织消息框架][JAVA核心技术]动态代理应用5-javassist
基础部份: 修改class我们用到javassist,在pom.xml添加 <properties> <javassist.version>3.18.2-GA</java ...
- mock.js-无需等待,随机产生数据,让前端独立于后端进行开发
mock.js所做的 基于 数据模板 生成模拟数据. 基于 HTML模板 生成模拟数据. 拦截并模拟 ajax 请求. Mock.js官方网址:http://mockjs.com/ 1.Mock.js ...