找回密码
 注册
查看: 4500|回复: 1

块存储服务Cinder部署

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-7-9 11:08:40 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-7-9 11:25:55 | 显示全部楼层
两个配置文件模板:(对接EBS存储)3 D: T3 u# D+ v0 [7 ]
控制节点的cinder.conf文件配置:
- S' R" a) @" e# ?' I* C# R3 r [DEFAULT]+ _( A5 q- R. R- }
rpc_backend = rabbit8 D7 }; L( n8 Z" S. z8 s  x
auth_strategy = keystone+ b( r; q: ?7 {0 s0 v# W4 j% G
verbose = True
, l4 {- F$ w$ e/ j5 ?9 O* {my_ip=192.168.12.2
' Y. _0 B2 h& [3 i9 g9 ^+ e. X/ _glance_host= 192.168.12.5
) V5 |; y* v$ Aosapi_volume_listen=192.168.12.2
* q/ Z. C9 g9 L8 Bosapi_volume_listen_port=8776
3 J( N9 `% x7 c. Tlogdir=/var/log/cinder  N$ o" z# W5 z9 A
state_path=/var/lib/cinder( T7 }0 R: A* l0 }
lock_path = /var/lib/cinder/tmp; M: t2 E- h  V5 p/ E$ t7 x
volumes_dir = /etc/cinder/volumes
- q/ d- v& G% C/ J) N0 V( m0 ciscsi_helper = lioadm* o% k6 H7 n. X
rootwrap_config = /etc/cinder/rootwrap.conf
3 ^6 ^4 c- F4 P3 r6 V  ^) I& f0 Iauth_strategy = keystone
2 i( N; y* d; O: Sos_region_name=RegionOne  {8 V. e# x: x6 `9 }7 ]4 v. B
use_syslog=False& j/ u- n( M( m& y5 |3 \, Q
glance_num_retries=0: _9 a3 R; }$ y+ @6 p" I$ R
rpc_response_timeout=600
1 w0 ]6 h) d! L6 ~storage_availability_zone=nova) a5 b; i2 |8 b( K7 h+ M9 q' _
nova_catalog_info=compute:nova:internalURL) u9 W6 s* F6 B) K$ O$ J6 L
os_privileged_user_name=cinder* v6 h5 m7 W. i3 H
os_privileged_user_password=c3dc20761f62d0cd199 B9 g, v" h" E- }
os_privileged_user_tenant=services8 S1 N$ t  u+ J0 T9 I# y
os_privileged_user_auth_url=http://192.168.112.51:5000/
/ _/ Q9 r9 _/ d; N
9 g- c2 G7 Z/ ]/ S# qdefault_availability_zone=nova
5 }! V9 a" R' ?6 {$ I1 s- Fcontrol_exchange=cinder: d6 f' k/ s7 a9 {& Q
enable_v1_api=True. G8 H- e8 C' ~5 J4 w
glance_api_version=2
  b% `- m. ?+ L) H1 x& r2 i; Knova_catalog_admin_info=compute:nova:adminURL
$ C' `( ~+ z6 Y2 Q: Dkombu_reconnect_delay=5.01 b0 ]4 M" h; ]+ s' j
notification_driver = messaging
2 T3 P/ l) U; p2 X( Ydefault_volume_type=ebs-sys4 h( [# a  E0 H
#volume_backend_name=ebs-sys-backend
' V0 _6 |, R. fuse_chap_auth=false/ c- x0 u; G; }+ a
#volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver
4 }) U0 `. W& g- Z  a
0 ~" X2 Y1 A; A- c/ jquota_volumes=1000 % P4 O0 o1 [/ N7 M4 E4 F
quota_snapshots=1000  @5 _, E6 f  h% \
quota_gigabytes=100000
8 g# {9 {% ]/ i9 u# S" v; q# f0 aquota_backups=1000( [/ H# B4 v- h
quota_backup_gigabytes=100000
' @1 \- u1 z3 z7 w3 nuse_default_quota_class=false
& E7 V3 R! R% t4 e+ E
4 K7 ^; Y- u2 ]' F% `[ceph-sys]
$ d% I+ H8 a" y- l4 c1 H, irbd_flatten_volume_from_snapshot=true$ G# r! |! w' H1 W' x
volume_driver=cinder.volume.drivers.rbd.RBDDriver. A# s+ s' L: o1 U
volume_backend_name=ceph-sys& a3 }# ?! {0 ]. F
rbd_pool=vms
" a3 m6 _7 r9 w3 {8 J( K  lrbd_ceph_conf=/etc/ceph/ceph.conf
: ~" k$ k* D" Y1 t; O( W) ]rbd_max_clone_depth=5" m0 N; C# ]7 M$ \$ N; u5 b
rbd_store_chunk_size=4* O9 E, J4 X) W; U# x8 e. d
rados_connect_timeout=-1
! \4 B) {5 J- u" M5 |) e" e- xglance_api_version=2
) J; K, H4 b+ T( L7 ?0 M8 T. a5 u% \/ J+ ^
[ceph-data]
8 G9 m( M' K; s9 O2 L4 @. ?9 @- |rbd_flatten_volume_from_snapshot=true  ~% b: ~  ^! ?0 ?
volume_driver=cinder.volume.drivers.rbd.RBDDriver! _6 f- \8 C3 r" h! j
volume_backend_name=ceph-data/ c4 @2 u5 L  S2 I5 s
rbd_pool=volumes, P% x$ w* G+ \) Z' F
rbd_ceph_conf=/etc/ceph/ceph.conf) s, p( t1 c+ r/ h
rbd_max_clone_depth=5
$ `  J2 j1 H, J, _rbd_store_chunk_size=43 J, u+ J. [0 S: \. q/ ?
rados_connect_timeout=-1
' U1 F3 m8 L/ r) Z1 e! Tglance_api_version=2( y. H/ L- v8 E0 c" _/ c

# K  i! _$ I3 y% I. y9 `8 H0 u# C" C
0 [, N4 e$ K) _7 m9 k[database]
* ^$ ~! E, N8 Q* u) fidle_timeout=3600
" Q6 r( o  X7 z3 C8 C! A$ A$ Nmax_pool_size=64
5 b+ t0 D2 T9 h4 F) @6 Tidle_timeout=3600
, d" f* @4 D7 W1 n' g) `max_pool_size=30
# L& x% z. U$ k: d( R# k% j5 Imax_retries=-1) ]6 t5 u& Q+ w+ w/ c  e) [
retry_interval=10
: m7 Q# u& Q6 a1 q6 @# Dmax_overflow=128; }: v4 I1 o0 E( G6 r: ?) g5 H4 F
min_pool_size=1
. `& i' d2 y: Y) s( qconnection = mysql://cinder:f1eb153f803e7ad162@192.168.12.5/cinder9 g' w, I  C2 u( N, n! W8 \7 y4 o
1 v1 K" G! g1 q. E8 U
[oslo_concurrency]" F' \9 V: |" i: B* L- B) Z3 @- C
lock_path = /var/lock/cinder/ a" d* ~  G5 W$ e5 y9 o8 F4 g

& A( t; U; i) v' x* X7 N& ?[oslo_messaging_rabbit]% _( s( i. `. I) Q; [
rabbit_hosts = 192.168.12.10:5672,192.168.12.6:5672,192.168.12.10:5672
! J! |: S6 s1 Z  T( P6 i& wrabbit_userid = nova
4 H& ^2 s, n2 prabbit_password = 3de39b16b65a322b19# u+ F. _* D" G7 D! X8 M
rabbit_retry_interval=1
* G$ M4 v3 P, y5 ~) rrabbit_retry_backoff=2
2 y' X9 e0 y  irabbit_max_retries=0
1 h% ?; r# w5 u  |rabbit_durable_queues=true) R1 U4 E6 P4 G$ E" N( W3 ]7 X- f
rabbit_ha_queues=true! t" Z! H, ^  x

- V5 o5 f5 g$ {6 J' u! }8 I6 }: u[keystone_authtoken]
" t3 e& D8 ]; P5 H! ~! L9 o1 |8 S4 nsigning_dir=/tmp/keystone-signing-cinder
) ^5 G4 Z$ g; S1 r, ]- qsigning_dirname=/tmp/keystone-signing-cinder
- s0 a; ^' q; y# fauth_uri = http://192.168.12.5:5000 % }4 c' k- e; y1 N  n1 P* u: n& u$ g
auth_url = http://192.168.12.5:35357
7 A3 v# a1 H/ k- Pauth_plugin = password, H3 n3 ~" V. L- }" |  k
project_domain_id = default7 l) s5 v# q) L$ ~$ Z8 [1 p6 l
user_domain_id = default
% m& A6 }) x) e& G, }project_name = service
; O& ]+ p  B! ~1 ^2 f7 F. wusername = cinder$ S8 a8 o: n  l, E) R
password = c3dc20761' W. o9 O& e& B% I
9 n' T8 B6 I7 b/ {+ o+ a
1 H5 i0 d8 T0 O& b: f6 F$ v
0 T% y% ]5 F, u" B
volume节点配置:, Q' ]7 r& z# G  p$ {+ w2 U
[DEFAULT]
  k9 m) Y, k! B$ K5 B( Jdebug = False
$ V5 ]" x. E* d0 b% s# Dverbose = True3 e9 ]. E3 H: Z' L! n
logdir=/var/log/cinder' p5 c9 S( ^& t. v& k7 L; G
state_path=/var/lib/cinder6 e6 O8 V7 o- W! y( i2 D6 r* c! `
lock_path = /var/lib/cinder/tmp
5 y) T9 N9 u: pvolumes_dir = /etc/cinder/volumes, n  Z7 A: ]$ Y- C/ Y# E
iscsi_helper = lioadm, F/ E! ?# H' o7 N+ n
rootwrap_config = /etc/cinder/rootwrap.conf' ]/ j1 Q9 g, Q4 _
auth_strategy = keystone
% G- Z1 t  v' i. E! G4 m4 `: n, nos_region_name=RegionOne
0 l/ l5 ^( G1 ~/ _+ D) N: A* s' M% Cuse_syslog=False& j) o* M, r3 l* D0 \' f* w5 L$ w8 V
glance_num_retries=0" t4 }9 r, C. _. f7 x: K
rpc_response_timeout=6009 @$ d% S$ @$ y0 B  g+ a) A( @* k$ b

, V2 f; A8 X/ L' O' a+ G6 Qstorage_availability_zone=nova
  v6 K1 [9 a  z' D  Ynova_catalog_info=compute:nova:internalURL* f8 c- W; O+ B" O2 ^
osapi_volume_listen=192.168.12.5
) t9 ]  h; t# X5 h7 A: Vglance_api_servers=192.168.12.5:9292
0 H/ f. w: c- q; k2 N" m- G3 bos_privileged_user_name=cinder
6 b  Z' y1 n6 T  G8 Pos_privileged_user_password=c3dc20761f62d0cd19
- U- I( W7 l: H+ M! kos_privileged_user_tenant=services& f  ?: H; a/ a( S! A
os_privileged_user_auth_url=http://192.168.12.5:5000/
; F6 J! l$ }( bdefault_availability_zone=nova
! ~/ i- K8 |6 mcontrol_exchange=cinder+ B; F7 f- Z* e" C3 H& n
enable_v1_api=True
, y# c" @! H' N, M1 Y5 b9 q" X6 f8 W4 T" B. P
glance_api_version=2
- |; I9 t2 c- anova_catalog_admin_info=compute:nova:adminURL( X6 s. z* U; J% j7 z  O4 }# K1 B
kombu_reconnect_delay=5.0/ Z2 A3 n- E9 C8 i2 _$ R4 C
notification_driver = messaging5 @* P6 r( D8 {) J; S: K
use_chap_auth=false
' _+ ^! r* \# d- t; z( u8 h9 }  Tquota_volumes=1000; X' t( W5 S, a
quota_snapshots=1000
3 C+ J1 g3 F7 k1 `+ Vquota_gigabytes=100000) a" W) ?+ f7 `% U0 ?  R) H0 t
quota_backups=1000
+ t; C3 k- \3 H; Y" {; T9 D: {quota_backup_gigabytes=100000
/ t% k6 e* g' P" z/ ruse_default_quota_class=false
8 p! S/ {1 x4 n  Puse_multipath=true
% A5 l; x& G; f2 n0 h" h( X9 Q% P& Tuse_chap_auth=false
* y0 i% b, T% Q1 ^6 s$ W' jenabled_backends=ceph-sys,ceph-data
+ B' r& E% g; Z5 n
# p& b* y6 e7 Y" L5 V- ?8 m[oslo_messaging_rabbit]
' ?3 y' N  F  |+ V) ~0 Crabbit_ha_queues=True
3 N; E6 J# H. p2 I: f; }6 ~rabbit_hosts=192.168.12.10:5672,192.168.12.6:5672,192.168.12.2:56727 }) f& F- z2 }3 A
rabbit_virtual_host=/) N2 [) L' |; H+ P
rabbit_password= 3de39b16b65: b: _/ T9 S4 T; H. t  l
rabbit_userid=nova
  _7 x& ?" Y) S6 B. H6 A3 y* A: Frabbit_use_sslt_retry_interval=1" I) [/ U3 }* }: R8 h- G5 C* S
rabbit_retry_backoff=2
' r1 D$ o. {7 r9 ]5 U; w. p# c8 ?rabbit_max_retries=05 q2 R+ p: p( Z2 ^2 X- Y* y
rabbit_durable_queues=true1 @  U4 D! a+ a& F
heartbeat_timeout_threshold=60
2 Q5 q  \/ S* L: ~; s8 e: a8 v
. O# X( P% j, D, E[keystone_authtoken]
# R  f- J& t3 z2 M6 Dsigning_dir=/tmp/keystone-signing-cinder  r2 d% O) b0 k) {
signing_dirname=/tmp/keystone-signing-cinder( b& F4 T) Y! u% d2 Y8 G* j
auth_uri = http://192.168.12.5:5000; i6 W* m" T! I8 N
auth_url = http://192.168.12.5:35357
# h9 z% S9 v7 H% ^' v; [1 pauth_plugin = password
8 l3 L' l. ], `9 O+ e5 Cproject_domain_id = default* ~% M$ _+ [6 S% L9 u/ T& O
user_domain_id = default0 {: E  J. @; Z) h
project_name = service8 ?* V# m" n6 N! K
username = cinder- f/ F/ o+ a7 V* K
password = c3dc20761' R* }8 }- g# O

5 S) c* U' u6 v+ o9 E( `% _[database]
: I5 \8 u6 \! j, L' U$ N  I2 midle_timeout=3600
4 t* L2 @, j0 h& \- w, zmax_pool_size=64
; P# c% N' ~- p  W+ M$ Tidle_timeout=36004 h9 U  D; N6 z; d8 e" _! n! M4 ~) h
max_pool_size=30# M: \$ Y9 w- S( o# [# {
max_retries=-1
) N: P& `0 G6 F  Z7 zretry_interval=10
+ V7 U, j) U" M2 k$ m# u+ s6 j" G8 zmax_overflow=128. }7 q$ p" S' V  Q* P
min_pool_size=1' Q4 q! i" E5 }
connection = mysql://cinder:f1eb153f803@192.168.12.5/cinder* m( [7 t/ x1 ?* i4 r; J. K5 E
! W* a+ Q% ^3 \* D
[ceph-sys]
+ `3 J! f; G% z. frbd_flatten_volume_from_snapshot=true6 s5 I5 `9 w+ v
volume_driver=cinder.volume.drivers.rbd.RBDDriver
" H5 H$ R9 ]7 _  Ivolume_backend_name=ceph-sys
7 n, ?- Z/ m, J# |rbd_pool=vms
% F- m$ I3 j' }- V" P9 t; x& erbd_ceph_conf=/etc/ceph/ceph.conf6 O: B2 R1 K0 f. `: Y
rbd_max_clone_depth=5
; V, L. x7 F, ?0 T6 ]9 erbd_store_chunk_size=44 z7 z1 z0 r, A$ K
rados_connect_timeout=-18 k! {; n0 P9 f; _5 K3 K1 Q
glance_api_version=2
; k- ]( q1 g- f5 v  y3 D. G" s7 A( y" }; _( ]6 x5 u0 H
[ceph-data]+ i8 A/ i3 t# Y: T
rbd_flatten_volume_from_snapshot=true0 i( k* U+ }% b" j, Y
volume_driver=cinder.volume.drivers.rbd.RBDDriver
! V4 E( U9 g. U6 `' W# `* \volume_backend_name=ceph-data, C8 v# N9 I, o- }
rbd_pool=volumes+ e. t8 \0 ^  [2 X
rbd_ceph_conf=/etc/ceph/ceph.conf4 K( }/ }$ `" m6 V8 l( _
rbd_max_clone_depth=5, b' v* T6 N; a4 r7 e$ d  j
rbd_store_chunk_size=4$ h( K# E4 _4 c% M* [
rados_connect_timeout=-11 _) T0 p1 k; c* G. @
glance_api_version=2* y$ t2 `. {/ g
& r  Z7 Y% {3 ]/ F- k  X5 F
仅供参考,需要自己测试。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:04 , Processed in 0.023167 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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