blob: 15c19cd7abcf95c7c32417f98cc46831986016a9 [file] [log] [blame]
Filip Pytlounda2a0792015-10-06 16:28:31 +02001==============================
2Openstack Cinder Block Storage
3==============================
4
5Cinder provides an infrastructure for managing volumes in OpenStack. It was originally a Nova component called nova-volume, but has become an independent project since the Folsom release.
6
7Sample pillars
8==============
9
10New structure divides cinder-api,cinder-scheduler to role controller and cinder-volume to role volume.
11
12.. code-block:: yaml
13
14 cinder:
15 controller:
16 enabled: true
17 version: juno
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010018 default_volume_type: 7k2SaS
Filip Pytlounda2a0792015-10-06 16:28:31 +020019 database:
20 engine: mysql
21 host: 127.0.0.1
22 port: 3306
23 name: cinder
24 user: cinder
25 password: pwd
26 identity:
27 engine: keystone
28 host: 127.0.0.1
29 port: 35357
30 tenant: service
31 user: cinder
32 password: pwd
33 message_queue:
34 engine: rabbitmq
35 host: 127.0.0.1
36 port: 5672
37 user: openstack
38 password: pwd
39 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010040 backend:
41 7k2_SAS:
42 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +010043 type_name: slow-disks
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010044 host: 192.168.0.1
45 port: 22
46 user: username
47 password: pass
48 connection: FC/iSCSI
49 multihost: true
50 multipath: true
51 pool: SAS7K2
Filip Pytlounda2a0792015-10-06 16:28:31 +020052
53 cinder:
54 volume:
55 enabled: true
56 version: juno
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010057 default_volume_type: 7k2SaS
Filip Pytlounda2a0792015-10-06 16:28:31 +020058 database:
59 engine: mysql
60 host: 127.0.0.1
61 port: 3306
62 name: cinder
63 user: cinder
64 password: pwd
65 identity:
66 engine: keystone
67 host: 127.0.0.1
68 port: 35357
69 tenant: service
70 user: cinder
71 password: pwd
72 message_queue:
73 engine: rabbitmq
74 host: 127.0.0.1
75 port: 5672
76 user: openstack
77 password: pwd
78 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010079 backend:
80 7k2_SAS:
81 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +010082 type_name: 7k2 SAS disk
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010083 host: 192.168.0.1
84 port: 22
85 user: username
86 password: pass
87 connection: FC/iSCSI
88 multihost: true
89 multipath: true
90 pool: SAS7K2
Jiri Konecny2dce35f2016-04-19 16:29:52 +020091 w
92
93Client-side RabbitMQ HA setup for controller
94
95.. code-block:: yaml
96
97 cinder:
98 controller:
99 ....
100 message_queue:
101 engine: rabbitmq
102 members:
103 - host: 10.0.16.1
104 - host: 10.0.16.2
105 - host: 10.0.16.3
106 user: openstack
107 password: pwd
108 virtual_host: '/openstack'
109 ....
110
111Client-side RabbitMQ HA setup for volume component
112
113.. code-block:: yaml
114
115 cinder:
116 volume:
117 ....
118 message_queue:
119 engine: rabbitmq
120 members:
121 - host: 10.0.16.1
122 - host: 10.0.16.2
123 - host: 10.0.16.3
124 user: openstack
125 password: pwd
126 virtual_host: '/openstack'
127 ....
Filip Pytlounda2a0792015-10-06 16:28:31 +0200128
129Cinder setup with zeroing deleted volumes
130
131 cinder:
132 controller:
133 enabled: true
134 wipe_method: zero
135 ...
136
137Cinder setup with shreding deleted volumes
138
139.. code-block:: yaml
140
141 cinder:
142 controller:
143 enabled: true
144 wipe_method: shred
145 ...
146
147
148Default Cinder setup with iSCSI target
149
150.. code-block:: yaml
151
152 cinder:
153 controller:
154 enabled: true
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200155 version: mitaka
156 default_volume_type: lvmdriver-1
Filip Pytlounda2a0792015-10-06 16:28:31 +0200157 database:
158 engine: mysql
159 host: 127.0.0.1
160 port: 3306
161 name: cinder
162 user: cinder
163 password: pwd
164 identity:
165 engine: keystone
166 host: 127.0.0.1
167 port: 35357
168 tenant: service
169 user: cinder
170 password: pwd
171 message_queue:
172 engine: rabbitmq
173 host: 127.0.0.1
174 port: 5672
175 user: openstack
176 password: pwd
177 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100178 backend:
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200179 lvmdriver-1:
180 engine: lvm
181 type_name: lvmdriver-1
182 volume_group: cinder-volume
Filip Pytlounda2a0792015-10-06 16:28:31 +0200183
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100184Cinder setup for IBM Storwize
Filip Pytlounda2a0792015-10-06 16:28:31 +0200185
186.. code-block:: yaml
187
188 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100189 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200190 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100191 backend:
192 7k2_SAS:
193 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100194 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100195 host: 192.168.0.1
196 port: 22
197 user: username
198 password: pass
199 connection: FC/iSCSI
200 multihost: true
201 multipath: true
202 pool: SAS7K2
203 10k_SAS:
204 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100205 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100206 host: 192.168.0.1
207 port: 22
208 user: username
209 password: pass
210 connection: FC/iSCSI
211 multihost: true
212 multipath: true
213 pool: SAS10K
214 15k_SAS:
215 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100216 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100217 host: 192.168.0.1
218 port: 22
219 user: username
220 password: pass
221 connection: FC/iSCSI
222 multihost: true
223 multipath: true
224 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200225
226Cinder setup with Hitachi VPS
227
228.. code-block:: yaml
229
230 cinder:
231 controller:
232 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100233 backend:
234 hus100_backend:
marcodaa52fa2016-01-25 23:49:50 +0100235 type_name: HUS100
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100236 backend: hus100_backend
237 engine: hitachi_vsp
238 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200239
240Cinder setup with CEPH
241
242.. code-block:: yaml
243
244 cinder:
245 controller:
246 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100247 backend:
248 ceph_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100249 type_name: standard-iops
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100250 backend: ceph_backend
251 pool: volumes
252 engine: ceph
253 user: cinder
254 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
255 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
Filip Pytlounda2a0792015-10-06 16:28:31 +0200256
257http://ceph.com/docs/master/rbd/rbd-openstack/
258
259
260Cinder setup with HP3par
261
262.. code-block:: yaml
263
264 cinder:
265 controller:
266 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100267 backend:
268 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100269 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100270 backend: hp3par_backend
271 user: hp3paruser
272 password: something
273 url: http://10.10.10.10/api/v1
274 cpg: OpenStackCPG
275 host: 10.10.10.10
276 login: hp3paradmin
277 sanpassword: something
278 debug: True
279 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200280
281Cinder setup with Fujitsu Eternus
282
283.. code-block:: yaml
284
285 cinder:
286 volume:
287 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100288 backend:
289 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100290 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100291 engine: fujitsu
292 pool: 10kThinPro
293 host: 192.168.0.1
294 port: 5988
295 user: username
296 password: pass
297 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100298 name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100299 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100300 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100301 pool: SAS10K
302 engine: fujitsu
303 host: 192.168.0.1
304 port: 5988
305 user: username
306 password: pass
307 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100308 name: 10k_SAS
Filip Pytlounda2a0792015-10-06 16:28:31 +0200309
Jakub Pavlik9703c602015-10-15 18:52:47 +0200310Cinder setup with IBM GPFS filesystem
311
312.. code-block:: yaml
313
314 cinder:
315 volume:
316 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100317 backend:
318 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100319 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100320 engine: gpfs
321 mount_point: '/mnt/gpfs-openstack/cinder/gold'
marcodaa52fa2016-01-25 23:49:50 +0100322 GPFS-SILVER:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100323 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100324 engine: gpfs
325 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100326
327Cinder setup with HP LeftHand
328
329.. code-block:: yaml
330
331 cinder:
332 volume:
333 enabled: true
334 backend:
335 HP-LeftHand:
336 type_name: normal-storage
337 engine: hp_lefthand
338 api_url: 'https://10.10.10.10:8081/lhos'
339 username: user
340 password: password
341 clustername: cluster1
342 iscsi_chap_enabled: false
343
Jakub Pavlika63764f2016-01-11 14:41:06 +0100344Extra parameters for HP LeftHand
Jakub Pavlika63764f2016-01-11 14:41:06 +0100345
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100346.. code-block:: yaml
347
348 cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
349
marcodaa52fa2016-01-25 23:49:50 +0100350Cinder setup with Solidfire
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100351
352.. code-block:: yaml
353
354 cinder:
355 volume:
356 enabled: true
357 backend:
358 solidfire:
359 type_name: normal-storage
360 engine: solidfire
361 san_ip: 10.10.10.10
362 san_login: user
363 san_password: password
364 clustername: cluster1
365 sf_emulate_512: false
Filip Pytlounda2a0792015-10-06 16:28:31 +0200366## Read more
367
368* https://wiki.openstack.org/wiki/Cinder
369* http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html