易陆发现互联网技术论坛

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

nova availability_zone的信息查看

[复制链接]
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中
3 e! k6 i- c5 o. c0 N" EOS_REGION_NAME='RegionOne'3 d- }( Y# N% S
: @7 f1 R- ~/ r9 a4 F; O
# nova aggregate-list
- ~5 K3 _9 S  O7 ~  k+ A+----+------+-------------------+
4 I# S+ M2 r/ K# e; m| Id | Name | Availability Zone |
4 l! j* b* p% n- K8 R% D2 V/ ?+----+------+-------------------+
# `& s, d5 L. u, d+----+------+-------------------+
) X5 D, ~9 L  Y! S/ `/ B0 \$ @6 m. Y0 s) ]+ U

' A  C; I' H4 Y% [' M7 W

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone" c" F! M* |1 d7 X

      #nova host-list

      #nova service-list

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

      #nova aggregate-create aggregate2 az24 Q; [' j- D" G" }7 [9 I

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list


5 m& S0 c2 u; B8 `


; f* @* o8 ?4 K
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list6 t- D7 E  q; b0 |) F5 u1 G) k$ e
+------------------+-------------+----------+
: X: Y: P- F, `* E+ B9 D| host_name        | service     | zone     |3 @- k  w7 k" g2 f+ l! g  K
+------------------+-------------+----------+8 L2 J9 N9 i, `2 U! N. u
| EC-controle3 | conductor   | internal |/ Z5 N/ R9 ~8 z3 g1 D, o
| EC-controle2 | conductor   | internal |. C1 t" H" D3 o1 Q& }( \' O6 k+ S
| EC-controle1 | conductor   | internal |
  M: a$ A. z# P2 M$ O| EC-controle3 | scheduler   | internal |) s2 N4 }9 B( P/ c. J* Y3 l& f% `, Q
| EC-controle2 | scheduler   | internal |
+ D' U0 {! e: V' `. j2 Z5 [5 @2 p| EC-controle1 | scheduler   | internal |  e0 ?' U2 Y7 M( e4 `6 e3 A
| EC-controle1 | cert        | internal |
' k* g$ e7 ]+ m. R( E: O| EC-controle1 | consoleauth | internal |
. a+ O5 T/ p$ H2 Y+ Z| EC-controle2 | cert        | internal |
% {! [8 t( S5 a3 r| EC-controle2 | consoleauth | internal |+ ]3 ?: i5 s% E6 D5 U
| EC-controle3 | consoleauth | internal |9 \! a! ?. U) M- a2 m: v: m
| EC-controle3 | cert        | internal |
; R5 j: H- I( V) f5 ]4 o| EC-controle1 | console     | internal |3 E- H( z7 D$ M$ h% n
| EC-controle2 | console     | internal |1 ^2 I6 c' ]( M6 r9 E; L
| EC-controle3 | console     | internal |6 V5 _  X% K2 \
| P1-P2          | compute     | nova     |* {$ U; A) `& v+ M, u8 I  \7 {: I8 m
| O9-O1-P9-10    | compute     | nova     |  s* }' T  e) V/ ]8 f' |
| P4            | compute     | nova     |
, q% a/ a4 p: `| O1-O1          | compute     | nova     |
; Y+ I; |7 }* l, j, S% l6 D| P5P8            | compute     | nova     |( Q0 ?  n+ G3 ^  ]7 M) e
+------------------+-------------+----------+
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  5 L1 J/ g# J. F$ o  ^% a) b1 I
usage: nova aggregate-create <name> [<availability-zone>]6 G+ s6 {9 l4 J0 b& \

% g0 W: i; X7 f6 S0 P4 t& eCreate a new aggregate with the specified details.* b) U/ v% [* a% `9 [
- O4 |$ j- B/ P
Positional arguments:
. e5 r# g; s0 _, Q# t9 y  <name>               Name of aggregate.
# I( I) X/ r. ~. d% u5 e  m/ g  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:14 , Processed in 0.069886 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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