易陆发现互联网技术论坛

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

nova availability_zone的信息查看

[复制链接]
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中& C+ _/ [* J2 j# Y
OS_REGION_NAME='RegionOne'
! t+ n! s' ~0 [3 h+ Q# S# A  P; \: d3 b& m" G: D. r
# nova aggregate-list
; v% ^* f  B$ v3 f+----+------+-------------------+. X9 C9 h: [, Z+ `; b  m4 `
| Id | Name | Availability Zone |
5 Y! N( a* V) D+ |- ~+----+------+-------------------+
- w1 n# a$ ~/ z0 }7 t2 P1 w+----+------+-------------------+8 y$ n( F( N! t2 L$ e- {

* F1 Z* d# u4 _( \: y: X" B% v
( t+ t8 [8 d! I* G

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone
, \6 V8 d: [. K

      #nova host-list

      #nova service-list

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

      #nova aggregate-create aggregate2 az2: C2 x) L- V7 R& f

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list

2 \. U1 q0 U% K# H0 |' S


, C* R6 z& U! p  Z
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list
7 P6 @3 A: R" \( j- w+------------------+-------------+----------+* D! Q! |3 m/ Q+ b) B
| host_name        | service     | zone     |
7 J. B( Y3 @, h4 f+------------------+-------------+----------+5 L0 V; q6 N4 b3 r3 b- |
| EC-controle3 | conductor   | internal |# r. M, S& ~- R; O: S  o
| EC-controle2 | conductor   | internal |- d8 h- H  X. ?1 P* H2 T8 G. S1 e
| EC-controle1 | conductor   | internal |* `0 b4 X3 N1 I! k  C3 x& L
| EC-controle3 | scheduler   | internal |- q1 s5 a/ P0 O9 L( k, ^+ w) [
| EC-controle2 | scheduler   | internal |
% A. |, |5 V/ s/ }" V| EC-controle1 | scheduler   | internal |
' J9 f; Z6 a/ f- f! x| EC-controle1 | cert        | internal |+ B: O! W5 \7 r2 X$ G9 S. b6 o! Y
| EC-controle1 | consoleauth | internal |! L% q; \3 A& ^" a6 a
| EC-controle2 | cert        | internal |2 `( I6 o. m3 h' z2 o* t
| EC-controle2 | consoleauth | internal |
/ s$ ]( {1 o. h# g- W/ s| EC-controle3 | consoleauth | internal |
! p- ~( A& W: ]( b| EC-controle3 | cert        | internal |5 W2 S; ?/ @  _5 O
| EC-controle1 | console     | internal |
3 A, V" d9 r0 Y& D# _* l  O  L| EC-controle2 | console     | internal |
5 ^) J- i. v% F! A) K9 L; _' \3 O| EC-controle3 | console     | internal |) c9 O/ |( v8 r: s
| P1-P2          | compute     | nova     |( E' I% e( v' j, r' ]8 m# i
| O9-O1-P9-10    | compute     | nova     |
- W+ \4 m( I" S) o' o| P4            | compute     | nova     |8 `% [7 D8 K/ H! H4 C# ?
| O1-O1          | compute     | nova     |0 E8 `7 [2 y+ p+ F0 |
| P5P8            | compute     | nova     |
3 V3 V% Y; U3 p, j0 J& K: z+------------------+-------------+----------+
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  ) z: o" L1 ?+ P/ |& i# v( }+ z* \% r* T
usage: nova aggregate-create <name> [<availability-zone>]
3 q1 l. Q; Z4 K9 S4 y! @
0 [" v- i0 W1 |Create a new aggregate with the specified details.* ]0 ^0 c+ c. k8 F( }
& @4 g1 N( D7 N/ a) R
Positional arguments:: ^& w( [, w4 U6 r
  <name>               Name of aggregate.. X% r* ~* ?5 @3 ^3 E
  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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