找回密码
 注册
查看: 4501|回复: 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存储)
  A+ x5 J) j' h; A控制节点的cinder.conf文件配置:. U9 m  K. f0 z- h) i
[DEFAULT]
0 G) d+ r; S5 Y- Crpc_backend = rabbit
$ Z' H7 }- @; S1 E0 v4 h  Vauth_strategy = keystone
. j- y1 G2 z, N0 ^; Sverbose = True
6 A  _- |1 i# o8 tmy_ip=192.168.12.2
5 a, ^* E% O. I& f4 kglance_host= 192.168.12.5
8 F1 J9 M0 \* F! U# Q. Yosapi_volume_listen=192.168.12.2
, K% X: j  O, Nosapi_volume_listen_port=8776
1 |; I8 ~, g  i- g: C/ Llogdir=/var/log/cinder4 G- [3 x2 J  D  @+ }1 q5 O
state_path=/var/lib/cinder$ m/ Z) l2 j% o* q- C" [  k% H+ L
lock_path = /var/lib/cinder/tmp
; Z5 A: ~" a, H1 _  |0 Rvolumes_dir = /etc/cinder/volumes: }) a9 z4 o& B" {
iscsi_helper = lioadm
7 T3 y: R4 c0 M5 E# [/ h  krootwrap_config = /etc/cinder/rootwrap.conf+ G0 \' s/ c- {; Q4 s3 B0 L
auth_strategy = keystone( @% ^) l  h) r3 F; W
os_region_name=RegionOne
" t6 Y6 j! W9 q2 Duse_syslog=False
" g0 G1 ]5 m$ S- l, j0 W  g4 Bglance_num_retries=0
- f( F; }: D& @' O' Lrpc_response_timeout=600
, J2 h7 Y. j4 vstorage_availability_zone=nova
- u" K6 T: V% N% H. q6 ^nova_catalog_info=compute:nova:internalURL6 W8 W2 V8 c2 q- a1 N( ?
os_privileged_user_name=cinder# ^/ t) g% @1 M3 [* V$ R* }, _& F7 F
os_privileged_user_password=c3dc20761f62d0cd19
0 Z$ g% L: O  i4 j/ P* _; kos_privileged_user_tenant=services
# _3 a4 f) S. t, z5 }; a" Z; q: M& yos_privileged_user_auth_url=http://192.168.112.51:5000/3 Z+ ~& S( d, K7 H4 z5 [" v# U
! _4 e/ b* H8 v2 x$ n
default_availability_zone=nova& A2 e  T7 k% [2 y/ h$ o4 |
control_exchange=cinder4 S2 C2 v6 ^7 ]1 J+ H( Z
enable_v1_api=True# t2 @& E$ w% M+ X
glance_api_version=2" y/ o5 n7 f" `# r0 N1 {
nova_catalog_admin_info=compute:nova:adminURL, L' f, l/ }/ C
kombu_reconnect_delay=5.08 ?# |; c! A5 J
notification_driver = messaging% j5 V% A! ^4 F; w) b
default_volume_type=ebs-sys" w, s3 G3 ]7 S1 K6 e
#volume_backend_name=ebs-sys-backend7 M8 F) E9 A5 [' a
use_chap_auth=false
* Y- h( X2 P+ F, {8 b#volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver4 ]( `. z" B' x  N7 `
; e0 Y$ y5 v% g
quota_volumes=1000 , w  R6 Z6 ]5 \. P% w3 C7 x
quota_snapshots=1000! ]$ M3 Y, z. E2 ]  j1 H$ ~$ ]
quota_gigabytes=100000
4 L/ _* \: d: y5 Fquota_backups=1000% ]& {1 k% p! z8 X$ `" {
quota_backup_gigabytes=100000, `! H# q" Y0 H2 K
use_default_quota_class=false
: A" W4 z# b# a9 e2 H1 w. q
) V( _/ t; y: j& P. i[ceph-sys]
7 X8 f$ |0 L! r6 J9 K" t& Zrbd_flatten_volume_from_snapshot=true' }' H- Q3 W8 P# x! W0 V
volume_driver=cinder.volume.drivers.rbd.RBDDriver* b9 @4 m) V+ l$ e# k
volume_backend_name=ceph-sys
6 s  Z. e! O# v& b8 ~+ N* \rbd_pool=vms, M& k1 k- m9 {' k2 X2 j/ X1 I
rbd_ceph_conf=/etc/ceph/ceph.conf. g2 A- Q! d+ [' Y
rbd_max_clone_depth=5% `$ W) I' o6 P% A# t
rbd_store_chunk_size=4
- n) \8 n& c9 y3 A5 b6 t* orados_connect_timeout=-1
) U4 E# J+ O$ W4 C% k6 _glance_api_version=2
7 r' M6 i$ O2 ?" h5 ^3 H8 o: V
, Q3 k* B1 ^  \: w[ceph-data]
6 l2 U+ l* J' [rbd_flatten_volume_from_snapshot=true& O( k2 s6 m" U4 g
volume_driver=cinder.volume.drivers.rbd.RBDDriver# `& t$ n: x4 g  l
volume_backend_name=ceph-data
" V8 B; Z4 z7 V' I7 a; \0 l3 vrbd_pool=volumes
5 I! }6 N. ?/ N) rrbd_ceph_conf=/etc/ceph/ceph.conf
5 W3 Z* _  t+ {. f4 I+ N/ Crbd_max_clone_depth=5
/ Q( {1 M9 B% m3 s4 ]5 n! nrbd_store_chunk_size=4; S* }8 A2 T  N
rados_connect_timeout=-1# O! g4 c! U5 u' z' j! C- B/ t( x
glance_api_version=2
+ g: R/ D& [1 A! s
3 V9 K: b9 W6 D$ G
2 G$ x$ d5 _, N, R[database]+ C8 U1 [$ C# G' f5 T4 a& ^; |
idle_timeout=36007 @+ n) w+ g# s" k' I  C! ]
max_pool_size=64
* x% S/ P2 R( C4 f7 G6 G) Iidle_timeout=3600
( c& k6 j* W8 n! n* |! Qmax_pool_size=30* E- M  h: k* O4 t# [8 o3 L9 Z
max_retries=-12 _3 B$ i+ \7 E4 U7 P6 E
retry_interval=10& W9 J* O: M7 R/ S" s- z! z$ O6 F
max_overflow=128* x8 N0 O) U7 k$ R% I7 F9 T) U
min_pool_size=1
" U0 I7 F# l5 o7 A' y/ ]: rconnection = mysql://cinder:f1eb153f803e7ad162@192.168.12.5/cinder
: T% C/ M( O' n2 s5 t4 U5 y) J; ^; V# X, r! J
[oslo_concurrency]
. t3 j: l0 X9 ~6 S2 plock_path = /var/lock/cinder0 t% X8 A/ L; v# B7 ]# g; Q" f6 J, y

2 M2 Z0 f/ {2 `: z0 k& J  A/ j- N% @[oslo_messaging_rabbit]* ~5 k' j5 M& o& L0 t
rabbit_hosts = 192.168.12.10:5672,192.168.12.6:5672,192.168.12.10:5672
* p. O" Z+ a) F, C$ Orabbit_userid = nova" t1 X4 {3 [0 y" Q6 U  u2 g
rabbit_password = 3de39b16b65a322b192 m: {% x6 b* d+ ^7 _' l- Y# t
rabbit_retry_interval=1% e+ W8 B* c: s+ ~5 @
rabbit_retry_backoff=2& l6 v7 r) x& y
rabbit_max_retries=01 T, `. M* j: E, [7 H
rabbit_durable_queues=true! r+ G# H7 {( {: p% T
rabbit_ha_queues=true% F" Z4 n+ O9 U' [
- D+ f9 A( N& m* F4 J: Y4 \, {0 n
[keystone_authtoken]
# o  V, t" G3 B4 p  Jsigning_dir=/tmp/keystone-signing-cinder; a, v9 a1 O" P; t( o
signing_dirname=/tmp/keystone-signing-cinder1 y0 c. p7 D4 W1 h
auth_uri = http://192.168.12.5:5000
" B* G" V' g3 r% K6 lauth_url = http://192.168.12.5:35357 . r! y6 d5 s1 ~* D
auth_plugin = password6 Z% _+ ^" n- d+ o/ r) K
project_domain_id = default
/ j1 q6 Z- H2 [" R3 P4 E% R6 ~user_domain_id = default/ i1 S$ N! U4 P4 W
project_name = service
, j- P; `& c  Y; Kusername = cinder
  `2 f! k$ z3 J0 {9 g1 E; o" [% cpassword = c3dc20761
4 b# O* s; V8 ^7 C( k- ]7 ~& B, I
& A, L" y% W, H0 `9 P# j/ x* M1 s, Y5 x( c( j! q

( f+ b# b% k: _1 ]( M# n3 Y% uvolume节点配置:
6 {9 S, c# H  K1 L4 { [DEFAULT]
& W( Y0 e* u4 `5 v) T* |/ Mdebug = False) l7 x8 e" v4 q6 K/ ~+ Y! N
verbose = True8 S9 R$ r9 @+ n0 ?
logdir=/var/log/cinder
8 U# Y# r# y( i7 I9 p8 n: L; Hstate_path=/var/lib/cinder
" V9 i, Z$ J6 G  alock_path = /var/lib/cinder/tmp4 H* D0 k1 d, G* G
volumes_dir = /etc/cinder/volumes' H  l) ?0 z4 F- }& S/ r" T: e
iscsi_helper = lioadm1 F! a! L. }  v, ]! G
rootwrap_config = /etc/cinder/rootwrap.conf
/ |. G" D  M+ n4 K# Yauth_strategy = keystone
6 z  ~. O7 X6 i' s$ @) }$ ]8 \# Yos_region_name=RegionOne
1 Y7 _' @( S3 M$ b( b4 D: W7 R% Huse_syslog=False
: o8 c+ x; H; J# t9 Fglance_num_retries=0! b3 c; N  O# ]$ i" j1 y
rpc_response_timeout=600* u2 U1 C: Y9 ]- \- Q- F% C: g
& D3 b; `- ^% j0 e( l  K  k/ y2 N
storage_availability_zone=nova& h- k& G3 O5 i3 c4 d" T4 g
nova_catalog_info=compute:nova:internalURL2 I! r# e, F  ]2 s
osapi_volume_listen=192.168.12.5- t9 {+ F& _" T9 O  a2 R
glance_api_servers=192.168.12.5:92929 t. T% c8 J5 v% u. j. D
os_privileged_user_name=cinder
# {0 L1 e8 [5 V$ J. r; dos_privileged_user_password=c3dc20761f62d0cd195 `# r/ j2 N. G7 j9 n0 x; H
os_privileged_user_tenant=services+ C# n: {& T9 G4 [( |) ^3 j, `; Q
os_privileged_user_auth_url=http://192.168.12.5:5000/+ B/ U3 k  A' `. }! y
default_availability_zone=nova
% \0 K4 P+ @: F/ Ncontrol_exchange=cinder
  M  \% G7 B- F9 ^9 b& Oenable_v1_api=True
5 m- j0 L" A4 X) X$ g+ g
3 t* g$ E; N0 X: o) t$ Cglance_api_version=23 {& w+ ?2 P. l& C7 z6 e
nova_catalog_admin_info=compute:nova:adminURL/ O6 h3 d8 }( z
kombu_reconnect_delay=5.0: M9 s" b, |0 b- J/ w5 R5 W( `
notification_driver = messaging* {0 ~' `% u& c, v
use_chap_auth=false
' Q. T8 m& r$ C1 _' I& kquota_volumes=1000
$ N( N" x7 L% h/ |3 `- ]quota_snapshots=1000
0 o, P# V% k( d  V! }quota_gigabytes=100000* ]- _" f! @* \7 t$ {
quota_backups=1000
% G' ?6 ~$ Z& x4 k$ Fquota_backup_gigabytes=100000
( V7 j. |  V8 Z5 x4 r  F5 r) _use_default_quota_class=false
# t' X5 N+ _1 y$ Q# s" n& A; ]0 suse_multipath=true
4 e+ ~# T5 b- z4 R# iuse_chap_auth=false
# V+ A* m. o5 ~* E: U7 ?enabled_backends=ceph-sys,ceph-data
7 ~8 K* t1 ^! b# u8 q6 p  K. |9 ~
8 j6 m7 U" l# T[oslo_messaging_rabbit]( V( j+ g$ \' g" O7 v7 c$ a" b5 i
rabbit_ha_queues=True6 d$ H6 ~- ]: p* H+ @6 T* Z) k
rabbit_hosts=192.168.12.10:5672,192.168.12.6:5672,192.168.12.2:5672
' M4 L7 Z9 l6 Q! mrabbit_virtual_host=/
: Q! b% m- s5 q$ Zrabbit_password= 3de39b16b653 C/ Y& k6 m& P, K
rabbit_userid=nova% j6 n0 Q$ D" h) B3 x4 ~
rabbit_use_sslt_retry_interval=12 k, N/ O4 l  Q. H8 H1 S
rabbit_retry_backoff=2* V. x0 M# p, o* ~* \& Y8 x
rabbit_max_retries=0" H: @- G  V( k: l+ |
rabbit_durable_queues=true( w$ z+ M; a( e" d3 t' G
heartbeat_timeout_threshold=60
( A# l$ j4 V& v9 F. h. w( d0 l4 S3 j6 z
[keystone_authtoken]5 q: Q5 K$ H" y  O4 [
signing_dir=/tmp/keystone-signing-cinder
7 o3 ]# J( A1 _3 ?signing_dirname=/tmp/keystone-signing-cinder
6 Y+ F* T; @& E$ S% Cauth_uri = http://192.168.12.5:5000
  I) l; y3 v# a% r" Yauth_url = http://192.168.12.5:35357
0 W0 ]6 n# W. ?3 a& h* I2 E, _2 [auth_plugin = password
, ~9 h+ G  l/ M! E0 O5 e  _9 hproject_domain_id = default! b7 h% {1 @1 _4 U
user_domain_id = default
( b/ F1 m2 ~7 m( L. B; pproject_name = service
: H$ W5 C3 ?. q0 b: ?" }/ }username = cinder. N# j) `- ~* e  }2 G* D
password = c3dc20761
9 i% E  I5 C; ^. k6 N' B! S% Y) F2 J( y/ b7 }4 c( a
[database]
  D% m! v# D9 Y. f. P% q2 f7 e9 Xidle_timeout=3600
/ q6 |* Q; s2 G+ J  omax_pool_size=649 m: g$ }, p) A' L% L+ l" D* Z
idle_timeout=3600
7 M8 Z$ C4 o8 n0 R: _max_pool_size=30( P& j, U! Y) k: P! L
max_retries=-1
5 @5 X+ r# J" Z) X( o6 F- b2 K8 Yretry_interval=100 y- ^: a  t7 I3 U  c: v  a
max_overflow=128
' }7 Y2 [1 W6 Wmin_pool_size=1& s! W4 \" \( Q3 z
connection = mysql://cinder:f1eb153f803@192.168.12.5/cinder
! Q: g, F9 D- W9 e/ k7 q& s: i3 X
[ceph-sys]
: Q8 @+ r* u" j# _. J( [, Crbd_flatten_volume_from_snapshot=true2 Y9 R, Z8 ?' W/ _& z
volume_driver=cinder.volume.drivers.rbd.RBDDriver$ K6 o! S4 O+ s& f% M9 S9 v
volume_backend_name=ceph-sys
+ H" S. Z8 e( z" T: }rbd_pool=vms8 u7 h, B: J( [( j
rbd_ceph_conf=/etc/ceph/ceph.conf3 y4 ^* I9 }# _6 x* J. g' W" [; N
rbd_max_clone_depth=5
3 q$ r; n  Z! X' ^8 U5 c0 vrbd_store_chunk_size=46 C! r, K. X; x; z. }; Y- e% x
rados_connect_timeout=-1, V) F% ?3 I, V, c4 R2 i; `
glance_api_version=2$ R. a# H  V% H
- `# P9 U$ a8 q2 S3 X  J( ~/ r
[ceph-data]) `& B7 S0 g. y+ V# u  h
rbd_flatten_volume_from_snapshot=true
; @$ m0 G$ h0 f7 D, lvolume_driver=cinder.volume.drivers.rbd.RBDDriver
/ \4 g, l' l  o% b' g' svolume_backend_name=ceph-data
. N4 D! ^; f2 }& hrbd_pool=volumes0 x5 ^2 \/ k* F1 n( W9 n( {
rbd_ceph_conf=/etc/ceph/ceph.conf
2 P7 V$ i( `" r1 y( [' Y" }rbd_max_clone_depth=5
  u0 W3 `$ B. ~- k! Nrbd_store_chunk_size=42 J- y$ q. d; n% c
rados_connect_timeout=-1% V4 f2 _) m  s2 I# J3 n
glance_api_version=2# U% X, b) r) |1 u+ E3 J
3 B! e3 g+ J1 Q! s/ }
仅供参考,需要自己测试。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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