易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3301|回复: 3
收起左侧

nova availability_zone的信息查看

[复制链接]
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中/ F# K! y! [6 b; x3 E: p& v2 [
OS_REGION_NAME='RegionOne'
0 r$ M& G* W: o* f: S1 x
+ t& `$ F, W+ J- x# nova aggregate-list
0 A" s& e# w: p/ W+----+------+-------------------+$ Y6 G- `1 h3 z# y: ^* R7 T; g5 P
| Id | Name | Availability Zone |- `! f; {# Y4 k
+----+------+-------------------+
$ J+ P) I' X+ z+----+------+-------------------+, Z8 c0 ]) s! ~5 J4 j3 ~
: w+ T3 @0 o" a1 v5 B: |

( ^" K9 v/ g! Z- y

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone
; F) }- s# |& |# K4 {! I

      #nova host-list

      #nova service-list

    4. 再将主机加入另一个aggregate,再次查询

      #nova aggregate-create aggregate2 az2
: r! ?6 B- l+ x: m/ S

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list


: k7 c4 V8 ]/ A& C. w. e


2 z, n% @6 g! I
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list
6 v; m. ~# b$ Y: r9 r, {& |+------------------+-------------+----------+
* S# g. Y( ?( J3 j| host_name        | service     | zone     |
$ l7 d# |9 k: A  t1 o/ |+------------------+-------------+----------+
5 c: D4 v3 b# J1 ^" n. Z: S! i| EC-controle3 | conductor   | internal |& n! i8 \$ g9 t9 E$ D9 V
| EC-controle2 | conductor   | internal |
) F* ]( u; `+ j9 U| EC-controle1 | conductor   | internal |
  K: b0 i! h$ G  L# x8 o- d| EC-controle3 | scheduler   | internal |7 j( i5 \1 O6 v$ J
| EC-controle2 | scheduler   | internal |+ @3 w$ v- C* m2 J8 x* l9 G
| EC-controle1 | scheduler   | internal |
) |% C* a2 c, A0 i| EC-controle1 | cert        | internal |
" b9 z, a9 {5 e) G) `7 L" {| EC-controle1 | consoleauth | internal |1 f& t( H9 C' t1 Y& a. O( c- y& p' J
| EC-controle2 | cert        | internal |# P$ C% q$ k# ^
| EC-controle2 | consoleauth | internal |
5 `5 ?3 d% k% \8 d5 O; l| EC-controle3 | consoleauth | internal |
! y$ Q( ~& B+ q0 `| EC-controle3 | cert        | internal |
$ {: c9 ?% A, q7 m| EC-controle1 | console     | internal |
. z/ m# c' J; z8 A$ F9 j; G# Q| EC-controle2 | console     | internal |
# X; m" ]7 D7 z& }| EC-controle3 | console     | internal |
5 @% e* R2 |( B$ m| P1-P2          | compute     | nova     |
- a4 }/ |6 p# `' B# @( \6 `) l| O9-O1-P9-10    | compute     | nova     |
( V: f! C6 r+ S. }4 V4 ], p' Q| P4            | compute     | nova     |
& f  }: ]5 s6 c7 z; q& m| O1-O1          | compute     | nova     |
: K, C7 _" ^( S. I; f) Q| P5P8            | compute     | nova     |
# }! f6 B/ f6 F1 W, ?  I+------------------+-------------+----------+
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  * J8 t6 w' n$ N9 U
usage: nova aggregate-create <name> [<availability-zone>]" P0 A4 ]9 n) Q4 D; G/ s7 G
6 i7 F4 ^2 U2 T/ S  V- X! v
Create a new aggregate with the specified details.- W( A: h9 g3 s& M5 ?
4 R0 n% I9 s. a6 b: c5 s& I
Positional arguments:" L" x* I9 Z4 i1 B
  <name>               Name of aggregate.8 V8 h$ ~6 B7 K5 ^* t
  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-10 16:22 , Processed in 0.043901 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表