找回密码
 注册
查看: 3295|回复: 3

nova availability_zone的信息查看

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中! B6 j- ~0 y5 Q. n/ G" ^" W
OS_REGION_NAME='RegionOne'
8 }& h3 s5 D2 D
  t, o: n" H: p# nova aggregate-list 3 O( c/ _+ Z$ ?* G: r
+----+------+-------------------+# |$ @# m( u% F; r3 n5 \# R
| Id | Name | Availability Zone |
1 w  {) \' M! r. g6 u$ K1 r  D+----+------+-------------------+
, P6 ^* h7 U1 p6 w- ?+----+------+-------------------+# m; Q* O! X) r2 k. g& n

6 I) i! P+ H5 N, c; _4 _7 e& y* [6 e9 X, Z+ T# u) Z% K" R' A

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone
! W# p) M- B8 @% ~% U" ^, r4 W

      #nova host-list

      #nova service-list

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

      #nova aggregate-create aggregate2 az2
6 C3 \) ]% }* A) ]  J) t* |

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list

8 |: l; A: a+ K) P% H# L* D  n

# A/ q" v& A) c8 r

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list
  Y: d( E+ O- r5 P+------------------+-------------+----------+0 R) G' @6 R( T: B% ^
| host_name        | service     | zone     |( G8 j8 h0 A. r
+------------------+-------------+----------+
1 J. ]9 A% m( C$ O8 }| EC-controle3 | conductor   | internal |
! s6 X# R6 Y! G# e& |* b0 O| EC-controle2 | conductor   | internal |
  L1 i( T% s# s$ L1 f* p1 A| EC-controle1 | conductor   | internal |) ]0 n: C% _  F) W$ Y
| EC-controle3 | scheduler   | internal |; ?% H* G! R- E) _& U: G
| EC-controle2 | scheduler   | internal |
, z' X/ K, {% k& x" c5 j0 O| EC-controle1 | scheduler   | internal |' n' [9 {0 I2 c; E, g5 L
| EC-controle1 | cert        | internal |' o5 F% C3 Z1 Z2 E. o8 @2 |
| EC-controle1 | consoleauth | internal |
; d' y$ D& x  E$ v| EC-controle2 | cert        | internal |; o$ B; W8 N, e/ _/ K# e4 e
| EC-controle2 | consoleauth | internal |+ H( [! ^( Q  Q4 Z, Q
| EC-controle3 | consoleauth | internal |
1 `; U8 b( g# ~/ N| EC-controle3 | cert        | internal |
* v& S5 `% s9 n1 k! i. W| EC-controle1 | console     | internal |' k( I: I! [6 ?8 f2 b9 B
| EC-controle2 | console     | internal |0 Z1 F8 l; I6 c: ]* m
| EC-controle3 | console     | internal |# C# D2 x' @$ f, l, x: ~
| P1-P2          | compute     | nova     |  M  F" Y) k% D2 L5 _/ c% \# T
| O9-O1-P9-10    | compute     | nova     |6 I0 C4 b) @( n
| P4            | compute     | nova     |* V' U, j) q! A# Z) }
| O1-O1          | compute     | nova     |
5 G6 d9 b; U$ M$ T. b| P5P8            | compute     | nova     |# X0 K7 A9 O4 a' ]1 x6 u
+------------------+-------------+----------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  7 k; a7 W  {' X
usage: nova aggregate-create <name> [<availability-zone>]6 l' Q  I: S/ D

  o, j, X/ Z* V, {Create a new aggregate with the specified details.3 P3 Z0 y3 ^7 ?" d

. r9 H7 K; ^- u0 z; xPositional arguments:5 h$ |1 c$ |$ Q. D( F4 S1 e
  <name>               Name of aggregate.
) Q* n: x5 g1 H  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:29 , Processed in 0.022993 second(s), 26 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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