Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ============================== |
| 2 | Openstack Cinder Block Storage |
| 3 | ============================== |
| 4 | |
| 5 | Cinder 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 | |
| 7 | Sample pillars |
| 8 | ============== |
| 9 | |
| 10 | New 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 18 | default_volume_type: 7k2SaS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 19 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 40 | backend: |
| 41 | 7k2_SAS: |
| 42 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 43 | type_name: slow-disks |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 44 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 52 | |
| 53 | cinder: |
| 54 | volume: |
| 55 | enabled: true |
| 56 | version: juno |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 57 | default_volume_type: 7k2SaS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 58 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 79 | backend: |
| 80 | 7k2_SAS: |
| 81 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 82 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 83 | 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 Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 91 | w |
| 92 | |
| 93 | Client-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 | |
| 111 | Client-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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 128 | |
| 129 | Cinder setup with zeroing deleted volumes |
| 130 | |
| 131 | cinder: |
| 132 | controller: |
| 133 | enabled: true |
| 134 | wipe_method: zero |
| 135 | ... |
| 136 | |
| 137 | Cinder 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 | |
| 148 | Default Cinder setup with iSCSI target |
| 149 | |
| 150 | .. code-block:: yaml |
| 151 | |
| 152 | cinder: |
| 153 | controller: |
| 154 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 155 | version: mitaka |
| 156 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 157 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 178 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 179 | lvmdriver-1: |
| 180 | engine: lvm |
| 181 | type_name: lvmdriver-1 |
| 182 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 183 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 184 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 185 | |
| 186 | .. code-block:: yaml |
| 187 | |
| 188 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 189 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 190 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 191 | backend: |
| 192 | 7k2_SAS: |
| 193 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 194 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 195 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 205 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 206 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 216 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 217 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 225 | |
| 226 | Cinder setup with Hitachi VPS |
| 227 | |
| 228 | .. code-block:: yaml |
| 229 | |
| 230 | cinder: |
| 231 | controller: |
| 232 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 233 | backend: |
| 234 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 235 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 236 | backend: hus100_backend |
| 237 | engine: hitachi_vsp |
| 238 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 239 | |
| 240 | Cinder setup with CEPH |
| 241 | |
| 242 | .. code-block:: yaml |
| 243 | |
| 244 | cinder: |
| 245 | controller: |
| 246 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 247 | backend: |
| 248 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 249 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 250 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 256 | |
| 257 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 258 | |
| 259 | |
| 260 | Cinder setup with HP3par |
| 261 | |
| 262 | .. code-block:: yaml |
| 263 | |
| 264 | cinder: |
| 265 | controller: |
| 266 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 267 | backend: |
| 268 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 269 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 270 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 280 | |
| 281 | Cinder setup with Fujitsu Eternus |
| 282 | |
| 283 | .. code-block:: yaml |
| 284 | |
| 285 | cinder: |
| 286 | volume: |
| 287 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 288 | backend: |
| 289 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 290 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 291 | engine: fujitsu |
| 292 | pool: 10kThinPro |
| 293 | host: 192.168.0.1 |
| 294 | port: 5988 |
| 295 | user: username |
| 296 | password: pass |
| 297 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 298 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 299 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 300 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 301 | pool: SAS10K |
| 302 | engine: fujitsu |
| 303 | host: 192.168.0.1 |
| 304 | port: 5988 |
| 305 | user: username |
| 306 | password: pass |
| 307 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 308 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 309 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 310 | Cinder setup with IBM GPFS filesystem |
| 311 | |
| 312 | .. code-block:: yaml |
| 313 | |
| 314 | cinder: |
| 315 | volume: |
| 316 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 317 | backend: |
| 318 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 319 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 320 | engine: gpfs |
| 321 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 322 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 323 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 324 | engine: gpfs |
| 325 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 326 | |
| 327 | Cinder 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 Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 344 | Extra parameters for HP LeftHand |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 345 | |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 346 | .. code-block:: yaml |
| 347 | |
| 348 | cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full |
| 349 | |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 350 | Cinder setup with Solidfire |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 351 | |
| 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 366 | ## Read more |
| 367 | |
| 368 | * https://wiki.openstack.org/wiki/Cinder |
| 369 | * http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html |