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 |
| 18 | database: |
| 19 | engine: mysql |
| 20 | host: 127.0.0.1 |
| 21 | port: 3306 |
| 22 | name: cinder |
| 23 | user: cinder |
| 24 | password: pwd |
| 25 | identity: |
| 26 | engine: keystone |
| 27 | host: 127.0.0.1 |
| 28 | port: 35357 |
| 29 | tenant: service |
| 30 | user: cinder |
| 31 | password: pwd |
| 32 | message_queue: |
| 33 | engine: rabbitmq |
| 34 | host: 127.0.0.1 |
| 35 | port: 5672 |
| 36 | user: openstack |
| 37 | password: pwd |
| 38 | virtual_host: '/openstack' |
| 39 | storage: |
| 40 | engine: file |
| 41 | types: |
| 42 | - name: 7k2_SAS |
| 43 | - name: 10k_SAS |
| 44 | - name: 15k_SAS |
| 45 | |
| 46 | cinder: |
| 47 | volume: |
| 48 | enabled: true |
| 49 | version: juno |
| 50 | database: |
| 51 | engine: mysql |
| 52 | host: 127.0.0.1 |
| 53 | port: 3306 |
| 54 | name: cinder |
| 55 | user: cinder |
| 56 | password: pwd |
| 57 | identity: |
| 58 | engine: keystone |
| 59 | host: 127.0.0.1 |
| 60 | port: 35357 |
| 61 | tenant: service |
| 62 | user: cinder |
| 63 | password: pwd |
| 64 | message_queue: |
| 65 | engine: rabbitmq |
| 66 | host: 127.0.0.1 |
| 67 | port: 5672 |
| 68 | user: openstack |
| 69 | password: pwd |
| 70 | virtual_host: '/openstack' |
| 71 | storage: |
| 72 | engine: file |
| 73 | types: |
| 74 | - name: 7k2_SAS |
| 75 | - name: 10k_SAS |
| 76 | - name: 15k_SAS |
| 77 | |
| 78 | Cinder setup with zeroing deleted volumes |
| 79 | |
| 80 | cinder: |
| 81 | controller: |
| 82 | enabled: true |
| 83 | wipe_method: zero |
| 84 | ... |
| 85 | |
| 86 | Cinder setup with shreding deleted volumes |
| 87 | |
| 88 | .. code-block:: yaml |
| 89 | |
| 90 | cinder: |
| 91 | controller: |
| 92 | enabled: true |
| 93 | wipe_method: shred |
| 94 | ... |
| 95 | |
| 96 | |
| 97 | Default Cinder setup with iSCSI target |
| 98 | |
| 99 | .. code-block:: yaml |
| 100 | |
| 101 | cinder: |
| 102 | controller: |
| 103 | enabled: true |
| 104 | version: juno |
| 105 | database: |
| 106 | engine: mysql |
| 107 | host: 127.0.0.1 |
| 108 | port: 3306 |
| 109 | name: cinder |
| 110 | user: cinder |
| 111 | password: pwd |
| 112 | identity: |
| 113 | engine: keystone |
| 114 | host: 127.0.0.1 |
| 115 | port: 35357 |
| 116 | tenant: service |
| 117 | user: cinder |
| 118 | password: pwd |
| 119 | message_queue: |
| 120 | engine: rabbitmq |
| 121 | host: 127.0.0.1 |
| 122 | port: 5672 |
| 123 | user: openstack |
| 124 | password: pwd |
| 125 | virtual_host: '/openstack' |
| 126 | storage: |
| 127 | engine: file |
| 128 | types: |
| 129 | - name: 7k2_SAS |
| 130 | - name: 10k_SAS |
| 131 | - name: 15k_SAS |
| 132 | |
| 133 | Cinder setup with IBM Storwize |
| 134 | |
| 135 | .. code-block:: yaml |
| 136 | |
| 137 | cinder: |
| 138 | controller: |
| 139 | enabled: true |
| 140 | types: |
| 141 | - name: 7k2_SAS |
| 142 | engine: storwize |
| 143 | pool: SAS7K2 |
| 144 | - name: 10k_SAS |
| 145 | pool: SAS10K |
| 146 | engine: storwize |
| 147 | - name: 15k_SAS |
| 148 | pool: SAS15K |
| 149 | engine: storwize |
| 150 | storage: |
| 151 | engine: storwize |
| 152 | host: 192.168.0.1 |
| 153 | port: 22 |
| 154 | user: username |
| 155 | password: pass |
| 156 | connection: FC/iSCSI |
| 157 | multihost: true |
| 158 | multipath: true |
| 159 | |
| 160 | Cinder setup with Hitachi VPS |
| 161 | |
| 162 | .. code-block:: yaml |
| 163 | |
| 164 | cinder: |
| 165 | controller: |
| 166 | enabled: true |
| 167 | types: |
| 168 | - name: HUS100 |
| 169 | backend: hus100_backend |
| 170 | storage: |
| 171 | engine: hitachi_vsp |
| 172 | connection: FC |
| 173 | |
| 174 | Cinder setup with CEPH |
| 175 | |
| 176 | .. code-block:: yaml |
| 177 | |
| 178 | cinder: |
| 179 | controller: |
| 180 | enabled: true |
| 181 | types: |
| 182 | - name: ceph |
| 183 | backend: ceph_backend |
| 184 | pool: volumes |
| 185 | storage: |
| 186 | engine: ceph |
| 187 | user: cinder |
| 188 | secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e |
| 189 | client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw== |
| 190 | |
| 191 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 192 | |
| 193 | |
| 194 | Cinder setup with HP3par |
| 195 | |
| 196 | .. code-block:: yaml |
| 197 | |
| 198 | cinder: |
| 199 | controller: |
| 200 | enabled: true |
| 201 | types: |
| 202 | - name: hp3par |
| 203 | backend: hp3par_backend |
| 204 | storage: |
| 205 | user: hp3paruser |
| 206 | password: something |
| 207 | url: http://10.10.10.10/api/v1 |
| 208 | cpg: OpenStackCPG |
| 209 | host: 10.10.10.10 |
| 210 | login: hp3paradmin |
| 211 | sanpassword: something |
| 212 | debug: True |
| 213 | snapcpg: OpenStackSNAPCPG |
| 214 | |
| 215 | Cinder setup with Fujitsu Eternus |
| 216 | |
| 217 | .. code-block:: yaml |
| 218 | |
| 219 | cinder: |
| 220 | volume: |
| 221 | enabled: true |
| 222 | types: |
| 223 | - name: 10kThinPro |
| 224 | engine: fujitsu |
| 225 | pool: 10kThinPro |
| 226 | - name: 10k_SAS |
| 227 | pool: SAS10K |
| 228 | engine: fujitsu |
| 229 | storage: |
| 230 | engine: fujitsu |
| 231 | host: 192.168.0.1 |
| 232 | port: 5988 |
| 233 | user: username |
| 234 | password: pass |
| 235 | connection: FC/iSCSI |
| 236 | |
| 237 | ## Read more |
| 238 | |
| 239 | * https://wiki.openstack.org/wiki/Cinder |
| 240 | * http://docs.openstack.org/juno/config-reference/content/hitachi-configuration.html |