找回密码
 注册
查看: 3296|回复: 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文件中+ m8 f* V1 q5 A3 D% g. G' V
OS_REGION_NAME='RegionOne'
; F5 v5 P9 O2 J- X- F+ l0 ?8 m; k+ g; @- x! ?  P  C, v
# nova aggregate-list
, z) d( a) ^3 k  [! x+----+------+-------------------+/ m2 U2 }( E0 N$ {  }) ?
| Id | Name | Availability Zone |! x" Z! j0 a, g  f& Y! r
+----+------+-------------------+# k. |2 b$ ~/ H' }: a6 }) @5 I
+----+------+-------------------+( }% A' q0 Y8 b. R% n7 L8 _
8 D# ~# E8 D$ k& A

- S, @* l8 \; N/ |5 Y  Q* s

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone
5 f4 M: ?- h5 W- {4 p

      #nova host-list

      #nova service-list

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

      #nova aggregate-create aggregate2 az2
0 b' |+ D$ E0 {" W; b! ~( |- O

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list

/ a$ E% B( W1 d$ Q


$ O1 D& |3 C. h$ F8 b

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list+ {0 ^) B4 P  x* W: p
+------------------+-------------+----------+3 E# H5 |' b+ u. ?7 ^% K
| host_name        | service     | zone     |  }6 D7 ]) G+ G0 k4 p. [+ {
+------------------+-------------+----------+6 U$ L% N: z( R9 z0 M: I
| EC-controle3 | conductor   | internal |2 n7 {8 W. A2 r
| EC-controle2 | conductor   | internal |) W/ t+ R) L( f  L0 u- r4 c
| EC-controle1 | conductor   | internal |5 _8 U" H- T* P5 I  Q) p7 g
| EC-controle3 | scheduler   | internal |
- D" w1 l) S* [5 Q6 o| EC-controle2 | scheduler   | internal |
4 k7 F" `+ K# X2 l| EC-controle1 | scheduler   | internal |
0 c# z+ `: s# g, k8 P4 v3 q" X0 D| EC-controle1 | cert        | internal |
5 A9 M% t4 z6 [: c" U; V| EC-controle1 | consoleauth | internal |
) ^) \. s6 A9 p| EC-controle2 | cert        | internal |
( U( F* g1 G4 j3 c1 I0 u| EC-controle2 | consoleauth | internal |
! d0 a9 d, v& J' ~' `| EC-controle3 | consoleauth | internal |) t! X% }$ P: b% c. @. {; ?, O+ r- f
| EC-controle3 | cert        | internal |" G$ w- b+ v$ H# t8 D
| EC-controle1 | console     | internal |) @  E& Z  x2 K3 [- o. ?
| EC-controle2 | console     | internal |
8 M7 k" t& t+ O% d( g| EC-controle3 | console     | internal |0 \9 U+ R, O7 v' [2 [
| P1-P2          | compute     | nova     |8 \: i0 G- J9 q( S* z0 \" o3 u9 H2 e
| O9-O1-P9-10    | compute     | nova     |8 A4 j9 ^. G. J, p4 d) m& J5 W
| P4            | compute     | nova     |
( [- b, b/ A+ {# t/ T7 Y| O1-O1          | compute     | nova     |
# N' M; _8 _: g" `2 c| P5P8            | compute     | nova     |! _1 z4 ~# I/ b' `& K! F
+------------------+-------------+----------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  
* s; A, K% o) T" w7 `* ^# _usage: nova aggregate-create <name> [<availability-zone>]
9 @! f, J8 n1 |, N2 ^# h* t' u
. t' x" @) @; G9 FCreate a new aggregate with the specified details.
* g0 p8 w" K0 H8 R' ]3 ]* F' a' C$ ]- `- x6 w( O8 e
Positional arguments:
! [) M9 ^1 M1 u4 q( B* u  <name>               Name of aggregate.
1 M3 v: |/ ~& @# w, ~" ]  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:27 , Processed in 0.018067 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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