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 |
| 118 | version: juno |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 119 | default_volume_type: 7k2SaS |
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: |
| 142 | 7k2_SAS: |
| 143 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 144 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 145 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 153 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 154 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 155 | |
| 156 | .. code-block:: yaml |
| 157 | |
| 158 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 159 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 160 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 161 | backend: |
| 162 | 7k2_SAS: |
| 163 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 164 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 165 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 175 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 176 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 186 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 187 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 195 | |
| 196 | Cinder setup with Hitachi VPS |
| 197 | |
| 198 | .. code-block:: yaml |
| 199 | |
| 200 | cinder: |
| 201 | controller: |
| 202 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 203 | backend: |
| 204 | hus100_backend: |
| 205 | name: HUS100 |
| 206 | backend: hus100_backend |
| 207 | engine: hitachi_vsp |
| 208 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 209 | |
| 210 | Cinder setup with CEPH |
| 211 | |
| 212 | .. code-block:: yaml |
| 213 | |
| 214 | cinder: |
| 215 | controller: |
| 216 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 217 | backend: |
| 218 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 219 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 220 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 226 | |
| 227 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 228 | |
| 229 | |
| 230 | Cinder setup with HP3par |
| 231 | |
| 232 | .. code-block:: yaml |
| 233 | |
| 234 | cinder: |
| 235 | controller: |
| 236 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 237 | backend: |
| 238 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 239 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 240 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 250 | |
| 251 | Cinder setup with Fujitsu Eternus |
| 252 | |
| 253 | .. code-block:: yaml |
| 254 | |
| 255 | cinder: |
| 256 | volume: |
| 257 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 258 | backend: |
| 259 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 260 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 261 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 269 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 270 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 277 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 278 | Cinder setup with IBM GPFS filesystem |
| 279 | |
| 280 | .. code-block:: yaml |
| 281 | |
| 282 | cinder: |
| 283 | volume: |
| 284 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 285 | backend: |
| 286 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 287 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 288 | engine: gpfs |
| 289 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
| 290 | GPFS-SILVER |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 291 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 292 | engine: gpfs |
| 293 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 294 | |
| 295 | Cinder 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 Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame^] | 312 | Extra parameters for HP LeftHand |
| 313 | cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full |
| 314 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 315 | ## Read more |
| 316 | |
| 317 | * https://wiki.openstack.org/wiki/Cinder |
| 318 | * http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html |