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 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 91 | |
| 92 | Cinder setup with zeroing deleted volumes |
| 93 | |
| 94 | cinder: |
| 95 | controller: |
| 96 | enabled: true |
| 97 | wipe_method: zero |
| 98 | ... |
| 99 | |
| 100 | Cinder 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 | |
| 111 | Default Cinder setup with iSCSI target |
| 112 | |
| 113 | .. code-block:: yaml |
| 114 | |
| 115 | cinder: |
| 116 | controller: |
| 117 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 118 | version: mitaka |
| 119 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 120 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 141 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 142 | lvmdriver-1: |
| 143 | engine: lvm |
| 144 | type_name: lvmdriver-1 |
| 145 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 146 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 147 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 148 | |
| 149 | .. code-block:: yaml |
| 150 | |
| 151 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 152 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 153 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 154 | backend: |
| 155 | 7k2_SAS: |
| 156 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 157 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 158 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 168 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 169 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 179 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 180 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 188 | |
| 189 | Cinder setup with Hitachi VPS |
| 190 | |
| 191 | .. code-block:: yaml |
| 192 | |
| 193 | cinder: |
| 194 | controller: |
| 195 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 196 | backend: |
| 197 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 198 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 199 | backend: hus100_backend |
| 200 | engine: hitachi_vsp |
| 201 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 202 | |
| 203 | Cinder setup with CEPH |
| 204 | |
| 205 | .. code-block:: yaml |
| 206 | |
| 207 | cinder: |
| 208 | controller: |
| 209 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 210 | backend: |
| 211 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 212 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 213 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 219 | |
| 220 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 221 | |
| 222 | |
| 223 | Cinder setup with HP3par |
| 224 | |
| 225 | .. code-block:: yaml |
| 226 | |
| 227 | cinder: |
| 228 | controller: |
| 229 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 230 | backend: |
| 231 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 232 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 233 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 243 | |
| 244 | Cinder setup with Fujitsu Eternus |
| 245 | |
| 246 | .. code-block:: yaml |
| 247 | |
| 248 | cinder: |
| 249 | volume: |
| 250 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 251 | backend: |
| 252 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 253 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 254 | engine: fujitsu |
| 255 | pool: 10kThinPro |
| 256 | host: 192.168.0.1 |
| 257 | port: 5988 |
| 258 | user: username |
| 259 | password: pass |
| 260 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 261 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 262 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 263 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 264 | pool: SAS10K |
| 265 | engine: fujitsu |
| 266 | host: 192.168.0.1 |
| 267 | port: 5988 |
| 268 | user: username |
| 269 | password: pass |
| 270 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 271 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 272 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 273 | Cinder setup with IBM GPFS filesystem |
| 274 | |
| 275 | .. code-block:: yaml |
| 276 | |
| 277 | cinder: |
| 278 | volume: |
| 279 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 280 | backend: |
| 281 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 282 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 283 | engine: gpfs |
| 284 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 285 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 286 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 287 | engine: gpfs |
| 288 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 289 | |
| 290 | Cinder 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 Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 307 | Extra parameters for HP LeftHand |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 308 | |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 309 | .. code-block:: yaml |
| 310 | |
| 311 | cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full |
| 312 | |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 313 | Cinder setup with Solidfire |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 314 | |
| 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 329 | ## Read more |
| 330 | |
| 331 | * https://wiki.openstack.org/wiki/Cinder |
| 332 | * http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html |