blob: 65d9f0d8254f231b06ca4415f7561cbae4e0c8cb [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
118 version: juno
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100119 default_volume_type: 7k2SaS
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:
142 7k2_SAS:
143 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100144 type_name: 7k2 SAS disk
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100145 host: 192.168.0.1
146 port: 22
147 user: username
148 password: pass
149 connection: FC/iSCSI
150 multihost: true
151 multipath: true
152 pool: SAS7K2
Filip Pytlounda2a0792015-10-06 16:28:31 +0200153
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100154Cinder setup for IBM Storwize
Filip Pytlounda2a0792015-10-06 16:28:31 +0200155
156.. code-block:: yaml
157
158 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100159 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200160 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100161 backend:
162 7k2_SAS:
163 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100164 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100165 host: 192.168.0.1
166 port: 22
167 user: username
168 password: pass
169 connection: FC/iSCSI
170 multihost: true
171 multipath: true
172 pool: SAS7K2
173 10k_SAS:
174 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100175 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100176 host: 192.168.0.1
177 port: 22
178 user: username
179 password: pass
180 connection: FC/iSCSI
181 multihost: true
182 multipath: true
183 pool: SAS10K
184 15k_SAS:
185 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100186 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100187 host: 192.168.0.1
188 port: 22
189 user: username
190 password: pass
191 connection: FC/iSCSI
192 multihost: true
193 multipath: true
194 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200195
196Cinder setup with Hitachi VPS
197
198.. code-block:: yaml
199
200 cinder:
201 controller:
202 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100203 backend:
204 hus100_backend:
205 name: HUS100
206 backend: hus100_backend
207 engine: hitachi_vsp
208 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200209
210Cinder setup with CEPH
211
212.. code-block:: yaml
213
214 cinder:
215 controller:
216 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100217 backend:
218 ceph_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100219 type_name: standard-iops
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100220 backend: ceph_backend
221 pool: volumes
222 engine: ceph
223 user: cinder
224 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
225 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
Filip Pytlounda2a0792015-10-06 16:28:31 +0200226
227http://ceph.com/docs/master/rbd/rbd-openstack/
228
229
230Cinder setup with HP3par
231
232.. code-block:: yaml
233
234 cinder:
235 controller:
236 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100237 backend:
238 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100239 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100240 backend: hp3par_backend
241 user: hp3paruser
242 password: something
243 url: http://10.10.10.10/api/v1
244 cpg: OpenStackCPG
245 host: 10.10.10.10
246 login: hp3paradmin
247 sanpassword: something
248 debug: True
249 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200250
251Cinder setup with Fujitsu Eternus
252
253.. code-block:: yaml
254
255 cinder:
256 volume:
257 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100258 backend:
259 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100260 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100261 engine: fujitsu
262 pool: 10kThinPro
263 host: 192.168.0.1
264 port: 5988
265 user: username
266 password: pass
267 connection: FC/iSCSI
268 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100269 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100270 pool: SAS10K
271 engine: fujitsu
272 host: 192.168.0.1
273 port: 5988
274 user: username
275 password: pass
276 connection: FC/iSCSI
Filip Pytlounda2a0792015-10-06 16:28:31 +0200277
Jakub Pavlik9703c602015-10-15 18:52:47 +0200278Cinder setup with IBM GPFS filesystem
279
280.. code-block:: yaml
281
282 cinder:
283 volume:
284 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100285 backend:
286 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100287 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100288 engine: gpfs
289 mount_point: '/mnt/gpfs-openstack/cinder/gold'
290 GPFS-SILVER
Jakub Pavlikedd46102016-01-08 16:20:38 +0100291 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100292 engine: gpfs
293 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100294
295Cinder setup with HP LeftHand
296
297.. code-block:: yaml
298
299 cinder:
300 volume:
301 enabled: true
302 backend:
303 HP-LeftHand:
304 type_name: normal-storage
305 engine: hp_lefthand
306 api_url: 'https://10.10.10.10:8081/lhos'
307 username: user
308 password: password
309 clustername: cluster1
310 iscsi_chap_enabled: false
311
Jakub Pavlika63764f2016-01-11 14:41:06 +0100312Extra parameters for HP LeftHand
313cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
314
Filip Pytlounda2a0792015-10-06 16:28:31 +0200315## Read more
316
317* https://wiki.openstack.org/wiki/Cinder
318* http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html