易陆发现互联网技术论坛

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

nova availability_zone的信息查看

[复制链接]
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中
8 j, X9 ~, E1 Z" M+ bOS_REGION_NAME='RegionOne'
$ L9 k5 G( |- b* r1 o. B
* L7 Q5 i# K$ D* [( t. S2 ~7 t# nova aggregate-list
& w( L4 \) h" n. J2 a' j+----+------+-------------------+. B7 [7 _3 t! w$ @
| Id | Name | Availability Zone |9 a5 y$ s4 q! r6 P7 l+ l. a, }
+----+------+-------------------+
0 K$ d+ F% W: \, T+----+------+-------------------+3 l/ c; W! G" {. E: k7 U
  H4 I! q" `$ H

. i9 }& A5 Z/ o& C; K) ~1 b; Z

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone
) O7 c# n# w0 x9 u& E. ?5 s

      #nova host-list

      #nova service-list

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

      #nova aggregate-create aggregate2 az2- X# G* \/ w  R& m% t) o

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list


( G9 y3 C7 e4 ]$ z5 ]9 k


9 M+ k5 T* w3 F1 H
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list$ A* [2 Q" P) u$ E4 {% d6 q( S& `
+------------------+-------------+----------+2 h* {6 b) [* z1 u7 h- e
| host_name        | service     | zone     |3 e2 \  b/ J6 s; h( P
+------------------+-------------+----------+
8 w- q8 ^$ F. I| EC-controle3 | conductor   | internal |7 R2 F8 }: q2 V( q
| EC-controle2 | conductor   | internal |
- g1 Q4 ^' ?1 s  V) |- p- N| EC-controle1 | conductor   | internal |
9 \4 g' {, s8 f8 ?8 B& f5 m( o, D| EC-controle3 | scheduler   | internal |
! O3 j( _, @, G0 w) g0 a) p" y| EC-controle2 | scheduler   | internal |
# I' j3 P* c% l2 |: l" I+ i| EC-controle1 | scheduler   | internal |: \1 G/ D2 ]: X$ x. {( c3 t
| EC-controle1 | cert        | internal |
0 O4 L6 R* S; ~9 v| EC-controle1 | consoleauth | internal |
5 F5 y6 D8 X. M9 d; O( L! ~| EC-controle2 | cert        | internal |( u8 w- h0 [5 k5 T- w! w3 M
| EC-controle2 | consoleauth | internal |$ ~4 q5 T5 t1 ]% Z  J. Q
| EC-controle3 | consoleauth | internal |
' D5 c4 U6 D, {! N5 G/ c3 s| EC-controle3 | cert        | internal |
% m8 q) F, v( c& G, }1 k8 w3 q| EC-controle1 | console     | internal |
* x" [- x: d/ p6 P| EC-controle2 | console     | internal |
  g, d: [2 @" c  U| EC-controle3 | console     | internal |) \% H' B% `# `: o9 p
| P1-P2          | compute     | nova     |2 l$ ~$ U% _- j6 g& Q7 v6 Q9 f
| O9-O1-P9-10    | compute     | nova     |
4 {0 X* U% E/ x6 B3 y- M& D| P4            | compute     | nova     |: s% r4 \$ F) W, _& {  k0 r. n% q# `
| O1-O1          | compute     | nova     |
7 Y# o$ K# |+ c6 `: z' j| P5P8            | compute     | nova     |
0 J  _; `8 D# W' J) J/ `+------------------+-------------+----------+
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  8 ?* `* E$ P7 e5 D
usage: nova aggregate-create <name> [<availability-zone>]
. q1 q% |8 O$ }4 F3 u! \
$ K6 Z; V8 q" W6 {4 _7 pCreate a new aggregate with the specified details.
' W4 J" b4 G9 q7 d5 n9 f4 h
4 p9 K0 j% J0 u% r% ePositional arguments:
7 W  J5 |6 O. q3 l5 M! F/ \8 o  <name>               Name of aggregate.
$ U, o* }" ?7 r. F5 w- Z+ c  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 15:22 , Processed in 0.119366 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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