【openstack N版】——摘除一个计算节点

1.查看计算节点

1 #查看所有计算节点
2 [[email protected] ~]# 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.选择要删除的计算节点

1 #删除open-compute04的ID
2 [[email protected] ~]# nova service-delete 11

3.查看网络

1 #查看网络
2 [[email protected] ~]# 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的网络

1 #删除网络(ID)
2 [[email protected] ~]# neutron agent-delete 231b4151-79ae-403c-9634-22fb84504012
3 Deleted agent(s): 231b4151-79ae-403c-9634-22fb84504012

5.停止计算节点nova、neutron相关服务

1 #停止服务
2 [[email protected] ~]# systemctl stop libvirtd.service openstack-nova-compute.service
3 [[email protected] ~]# systemctl stop neutron-linuxbridge-agent

6.登录数据库

1 #用nova用户登录数据库
2 [[email protected] ~]# mysql -unova -pnovapasswd
3 #使用nova库
4 MariaDB [(none)]> use nova;
5 #查询nova主机
6 MariaDB [nova]> select host from nova.services;+--------------------+| host               |+--------------------+| open-compute01     || open-compute02     || open-compute03     || open-compute04     || open-control01     || open-control01     || open-control01     |+--------------------+
7 MariaDB [nova]> select hypervisor_hostname from compute_nodes;+---------------------+| hypervisor_hostname |+---------------------+| open-compute01      || open-compute02      || open-compute03      || open-compute04      || open-compute04      |+---------------------+

7.删除查询的数据

1 #删除
2 MariaDB [nova]> delete from nova.services where host="open-compute04";
3 Query OK, 1 row affected (0.02 sec)
4 MariaDB [nova]> delete from compute_nodes where hypervisor_hostname="open-compute04";
5 Query OK, 2 rows affected (0.01 sec)

8.检查

1 #nova列表
2 [[email protected] ~]# 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 | -               |+----+------------------+--------------------+----------+---------+-------+----------------------------+-----------------+
3 #neutron列表
4 [[email protected] ~]# 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

— 欢迎大家随时来交流

—原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。

时间: 2024-10-26 11:01:24

【openstack N版】——摘除一个计算节点的相关文章

openstack云计算(二):Openstack rocky 部署三 nova计算节点部署

Openstack 云计算(二): Openstack Rocky部署三 nova 部署与验证 (计算节点) 标签(空格分隔): openstack系列 一:nova计算节点初始化 二:nova 计算节点配置 一: nova计算节点初始化 1.1 配置主机名 login: 10.0.0.31 cat /etc/hosts --- 10.0.0.11 controller 10.0.0.31 computer1 10.0.0.41 block1 10.0.0.51 object1 10.0.0.5

openstack部署(四)-计算节点(Networking)

计算节点增加Networking及配置 安装组件 yum install -y openstack-neutron openstack-neutron-linuxbridge ebtables ipset 配置普通组件  vim /etc/neutron/neutron.conf //更改或增加 [DEFAULT] rpc_backend = rabbit auth_strategy = keystone verbose = True [oslo_messaging_rabbit] rabbit

openstack O版 配置nova计算服务

1.创建数据库,并且授权数据库,库名为:nova_api 用户名:nova 密码:devops[[email protected] ~]# mysql -uroot -pdevopsMariaDB [(none)]> CREATE DATABASE nova_api;MariaDB [(none)]> CREATE DATABASE nova;MariaDB [(none)]> CREATE DATABASE nova_cell0;MariaDB [(none)]> GRANT A

openstack部署安装(Icehouse版本)-计算节点(compute)

在将计算服务(nova)配置在控制器节点上之后,必须将另一个系统配置为计算节点.计算节点接收来自控制器节点的请求并承载虚拟机实例.也可以在单一节点上运行所有服务,但在此次部署时,将计算节点单独部署,使得很容易在规模声场中水平增加额外的计算节点. 5.1 Configure a compute node(安装配置计算节点) 5.1.1 安装compute服务 # yum install openstack-nova-compute 5.1.2 编辑nova配置文件 # openstack-conf

openstack中彻底删除计算节点的操作记录

在使用openstack的过程中,我们经常会添加好几台计算节点来部署虚拟机,在后续使用中由于某些原因,一些计算节点出现了问题,需要将这些出了问题的计算节点从openstack的控制节点中踢出去!但是很多时候,在删除计算节点的时候由于删除不彻底而导致了后面使用openstack出现了诸多问题. 下面记录了在openstack中彻底删除计算节点linux-node2.openstack的操作: 在控制节点上操作 查看计算节点 [[email protected] src]# openstack ho

超千个节点OpenStack私有云案例(1):CERN 5000+ 计算节点私有云

CERN:欧洲核子研究组织 本文根据以下几篇文章整理而来: https://www.openstack.org/summit/tokyo-2015/videos/presentation/unveiling-cern-cloud-architecture https://www.mybookworld.info/view/lcl9u/cern-cloud-architecture-february-2016.html http://openstack-in-production.blogspot

OpenStack运维(二):计算节点的故障和维护

1.计划中的维护 举例:需要升级某一个计算节点的硬件配置,需要将计算节点上的虚拟机迁移后在对其进行操作,分为两种情况. 1.1 云系统使用了共享存储 a. 获取虚拟机列表:nova list --host compute01-node-Name --all-tenant b. 将每个虚拟机迁移至另一台计算节点:nova live-migration <uuid> compute02-node-Name c. 停止nova-compute服务:stop nova-compute d. 维护工作完

openstack M 版 neutron网络组件基础入门

在我们openstack学习当中,网络组件neutron无疑是令很多人很难理解的,可以说要深入理解 了neutron组件,你基本完成了openstack 60%的学习,存储方面只要不涉及到分布式,剩下的基本都比较简单了 相信很多人第一次看到这种图的时候都会被吓一跳,没错,这就是openstack  neutron组件里面涉及到的数据流程,里面涉及到的知识点很多很多 Openstack网络模型中的几个概念网络: Management Network: 管理网络,连接所有节点. External N

提升Exadata 计算节点本地IO性能

1.问题概述 某客户有一台Exadata X2-2,每个计算节点是4块普通的本地SAS硬盘做成的RAID5,然后在RAID5的本地硬盘上创建了一个文件系统来存放DSG数据同步软件,在后续的运维过程中,发现DSG数据同步软件在进行数据同步时的延时非常严重. DSG进行检查和性能分析后,确认是由于Exadata的本地硬盘提供的IOPS无法满足DSG软件的要求,大量的时间都在等待本地磁盘的读写IO上. 通过磁盘性能分析工具也可以发现,本地盘的IO使用率基本上是在90%以上,严重时长时间100%,客户希