blob: 6d6eeb01b53f6601657dbc986c38bdfe863e404a [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
Filip Pytlounda2a0792015-10-06 16:28:31 +020091
92Cinder setup with zeroing deleted volumes
93
94 cinder:
95 controller:
96 enabled: true
97 wipe_method: zero
98 ...
99
100Cinder setup with shreding deleted volumes
101
102.. code-block:: yaml
103
104 cinder:
105 controller:
106 enabled: true
107 wipe_method: shred
108 ...
109
110
111Default Cinder setup with iSCSI target
112
113.. code-block:: yaml
114
115 cinder:
116 controller:
117 enabled: true
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200118 version: mitaka
119 default_volume_type: lvmdriver-1
Filip Pytlounda2a0792015-10-06 16:28:31 +0200120 database:
121 engine: mysql
122 host: 127.0.0.1
123 port: 3306
124 name: cinder
125 user: cinder
126 password: pwd
127 identity:
128 engine: keystone
129 host: 127.0.0.1
130 port: 35357
131 tenant: service
132 user: cinder
133 password: pwd
134 message_queue:
135 engine: rabbitmq
136 host: 127.0.0.1
137 port: 5672
138 user: openstack
139 password: pwd
140 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100141 backend:
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200142 lvmdriver-1:
143 engine: lvm
144 type_name: lvmdriver-1
145 volume_group: cinder-volume
Filip Pytlounda2a0792015-10-06 16:28:31 +0200146
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100147Cinder setup for IBM Storwize
Filip Pytlounda2a0792015-10-06 16:28:31 +0200148
149.. code-block:: yaml
150
151 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100152 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200153 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100154 backend:
155 7k2_SAS:
156 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100157 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100158 host: 192.168.0.1
159 port: 22
160 user: username
161 password: pass
162 connection: FC/iSCSI
163 multihost: true
164 multipath: true
165 pool: SAS7K2
166 10k_SAS:
167 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100168 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100169 host: 192.168.0.1
170 port: 22
171 user: username
172 password: pass
173 connection: FC/iSCSI
174 multihost: true
175 multipath: true
176 pool: SAS10K
177 15k_SAS:
178 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100179 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100180 host: 192.168.0.1
181 port: 22
182 user: username
183 password: pass
184 connection: FC/iSCSI
185 multihost: true
186 multipath: true
187 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200188
189Cinder setup with Hitachi VPS
190
191.. code-block:: yaml
192
193 cinder:
194 controller:
195 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100196 backend:
197 hus100_backend:
marcodaa52fa2016-01-25 23:49:50 +0100198 type_name: HUS100
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100199 backend: hus100_backend
200 engine: hitachi_vsp
201 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200202
203Cinder setup with CEPH
204
205.. code-block:: yaml
206
207 cinder:
208 controller:
209 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100210 backend:
211 ceph_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100212 type_name: standard-iops
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100213 backend: ceph_backend
214 pool: volumes
215 engine: ceph
216 user: cinder
217 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
218 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
Filip Pytlounda2a0792015-10-06 16:28:31 +0200219
220http://ceph.com/docs/master/rbd/rbd-openstack/
221
222
223Cinder setup with HP3par
224
225.. code-block:: yaml
226
227 cinder:
228 controller:
229 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100230 backend:
231 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100232 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100233 backend: hp3par_backend
234 user: hp3paruser
235 password: something
236 url: http://10.10.10.10/api/v1
237 cpg: OpenStackCPG
238 host: 10.10.10.10
239 login: hp3paradmin
240 sanpassword: something
241 debug: True
242 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200243
244Cinder setup with Fujitsu Eternus
245
246.. code-block:: yaml
247
248 cinder:
249 volume:
250 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100251 backend:
252 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100253 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100254 engine: fujitsu
255 pool: 10kThinPro
256 host: 192.168.0.1
257 port: 5988
258 user: username
259 password: pass
260 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100261 name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100262 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100263 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100264 pool: SAS10K
265 engine: fujitsu
266 host: 192.168.0.1
267 port: 5988
268 user: username
269 password: pass
270 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100271 name: 10k_SAS
Filip Pytlounda2a0792015-10-06 16:28:31 +0200272
Jakub Pavlik9703c602015-10-15 18:52:47 +0200273Cinder setup with IBM GPFS filesystem
274
275.. code-block:: yaml
276
277 cinder:
278 volume:
279 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100280 backend:
281 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100282 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100283 engine: gpfs
284 mount_point: '/mnt/gpfs-openstack/cinder/gold'
marcodaa52fa2016-01-25 23:49:50 +0100285 GPFS-SILVER:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100286 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100287 engine: gpfs
288 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100289
290Cinder setup with HP LeftHand
291
292.. code-block:: yaml
293
294 cinder:
295 volume:
296 enabled: true
297 backend:
298 HP-LeftHand:
299 type_name: normal-storage
300 engine: hp_lefthand
301 api_url: 'https://10.10.10.10:8081/lhos'
302 username: user
303 password: password
304 clustername: cluster1
305 iscsi_chap_enabled: false
306
Jakub Pavlika63764f2016-01-11 14:41:06 +0100307Extra parameters for HP LeftHand
Jakub Pavlika63764f2016-01-11 14:41:06 +0100308
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100309.. code-block:: yaml
310
311 cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
312
marcodaa52fa2016-01-25 23:49:50 +0100313Cinder setup with Solidfire
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100314
315.. code-block:: yaml
316
317 cinder:
318 volume:
319 enabled: true
320 backend:
321 solidfire:
322 type_name: normal-storage
323 engine: solidfire
324 san_ip: 10.10.10.10
325 san_login: user
326 san_password: password
327 clustername: cluster1
328 sf_emulate_512: false
Filip Pytlounda2a0792015-10-06 16:28:31 +0200329## Read more
330
331* https://wiki.openstack.org/wiki/Cinder
332* http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html