Openstack-liberty version Ciner Deployment (ix)

Source: Internet
Author: User
Tags symlink

Categories of storage:
Block Storage:
Hard disk
Lvm
DAS (Direct Attach Storage)
is a direct connection to the host server, a storage method, each host server has a separate storage device, each host server storage device can not be interoperable.
In a single network environment, the data exchange volume is not high, the performance requirements are low, can be said to be an application of earlier technology implementation
SAN
1, Fc-san
2, Ip-san
Distributed Storage-ceph
Ceph is a PB-level Distributed file system implemented by open source, and its distributed object storage mechanism provides a file interface, block storage interface, and object storage interface for the upper layer.
DAS (Direct Attach Storage)
File storage:
Fs
Object storage:
SAN (storage area Network)
Nas

Cinder components:

Chnder-api. Accept the API request and route the request to Cinder-volume to execute.
Cinder-volume. The corresponding request, read or write to the block storage database, is maintained state, interacts with other processes through the information queuing mechanism (such as cinder-scheduler), or interacts directly with the hardware or software provided by the upper block storage. By driving the structure, he can interact with a multitude of storage providers.
Cinder-scheduler. Daemon process. Type in Nova-scheduler, selecting the optimal block storage provisioning node for the instance of the storage volume.

There is no cinder when the virtual machine disk storage location;

[[email protected] linux-node2 ~]# ls /var/lib/nova/instances/_base  compute_nodes  e7585ece-c8e9-4ad8-8796-8a58bca459bf  locks  snapshots[[email protected] linux-node2 ~]# ls /var/lib/nova/instances/e7585ece-c8e9-4ad8-8796-8a58bca459bf/console.log  disk  disk.info  libvirt.xml

To install the Cinder control node:
[[email protected] ~]# yum -y install openstack-cinder python-cinderclient

See if the cinder database has been created and I have created it here at Keystone installation time;

[[email protected] ~]# mysql -uroot -psmoke520Welcome to the MariaDB monitor.  Commands end with ; or \g.Your MariaDB connection id is 264Server version: 10.1.20-MariaDB MariaDB ServerCopyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.MariaDB [(none)]> show databases;+--------------------+| Database           |+--------------------+| cinder             || glance             || information_schema || keystone           || mysql              || neutron            || nova               || performance_schema |+--------------------+8 rows in set (1.25 sec)MariaDB [(none)]> exit;Bye

Configuration cinder:

[[email protected] ~]# vim /etc/cinder/cinder.conf [database]connection = mysql://cinder:[email protected]/cinder

Synchronize database:
[[email protected] ~]# su-s/bin/sh-c "cinder-manage db sync" cinder

  [[email protected] ~]# mysql-ucinder-pcinder-h192.168.56.11-e "use cinder;show tables;" +----------------------------+| Tables_in_cinder |+----------------------------+| backups | | Cgsnapshots | | consistencygroups | | Driver_initiator_data | | Encryption | | image_volume_cache_entries | | Iscsi_targets | | migrate_version | | Quality_of_service_specs | | quota_classes | | Quota_usages | | quotas | | Reservations | | Services | | Snapshot_metadata | | Snapshots | | Transfers | | Volume_admin_metadata | | volume_attachment | | Volume_glance_metadata | | Volume_metadata | | Volume_type_extra_specs | | volume_type_projects | | Volume_types | | Volumes |+----------------------------+  

To create a user:
[[email protected] ~]# source admin-openrc.sh

User name cinder, password cinder;

[[email protected] ~]# openstack user create --domain default --password-prompt cinderUser Password:Repeat User Password:+-----------+----------------------------------+| Field     | Value                            |+-----------+----------------------------------+| domain_id | default                          || enabled   | True                             || id        | 5ffa5acdd3d8438e994a6fcd9319708a || name      | cinder                           |+-----------+----------------------------------+

Add the cinder user to the service project and assign the admin role;
[[email protected] ~]# openstack role add --project service --user cinder admin

To change the Chinder configuration file:

  [[email protected] ~]# vim/etc/cinder/cinder.conf [default]auth_strategy = Keystonerpc_backend = Rabbitglance_host = 192.168.56.11[keystone_authtoken]auth_uri = Http://192.168.56.11:5000auth_url =/http 192.168.56.11:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultproject_name = Serviceusername = Cinderpassword = Cinder[oslo_messaging_rabbit]rabbit_host = 192.168.56.11rabbit_port = 5672rabbit_ UserID = Openstackrabbit_password = Openstack[oslo_concurrency]lock_path =/var/lib/cinder/tmp  
[[email protected] ~]# grep ‘^[a-z]‘ /etc/cinder/cinder.conf glance_host = 192.168.56.11auth_strategy = keystonerpc_backend = rabbitconnection = mysql://cinder:[email protected]/cinderauth_uri = http://192.168.56.11:5000auth_url = http://192.168.56.11:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = cinderpassword = cinder lock_path = /var/lib/cinder/tmprabbit_host = 192.168.56.11rabbit_port = 5672rabbit_userid = openstackrabbit_password = openstack
[[email protected] ~]# vim /etc/nova/nova.conf [cinder]os_region_name = RegionOne

Restart Service:

[[email protected] ~]# systemctl restart openstack-nova-api.service[[email protected] ~]# systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.serviceCreated symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-api.service to /usr/lib/systemd/system/openstack-cinder-api.service.Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-scheduler.service to /usr/lib/systemd/system/openstack-cinder-scheduler.service.[[email protected] ~]# systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service

Registration Cinder:
To create the Cinder V1 service:

[[email protected] ~]# openstack service create --name cinder --description "OpenStack Block Storage" volume+-------------+----------------------------------+| Field       | Value                            |+-------------+----------------------------------+| description | OpenStack Block Storage          || enabled     | True                             || id          | 44c68286553947049187cd9886a85807 || name        | cinder                           || type        | volume                           |+-------------+----------------------------------+

To create the Cinder V2 service:

[[email protected] ~]# openstack service create --name cinderv2 --description "OpenStack Block Storage" volumev2+-------------+----------------------------------+| Field       | Value                            |+-------------+----------------------------------+| description | OpenStack Block Storage          || enabled     | True                             || id          | 9bc7d84ec806418d9046635275518741 || name        | cinderv2                         || type        | volumev2                         |+-------------+----------------------------------+

Create V1 endpoint:
Public Network registration:

[[email protected] ~]# openstack endpoint create --region RegionOne >  volume public http://192.168.56.11:8776/v1/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | 22d5172503014abc99e1448e8990fe01           || interface    | public                                     || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 44c68286553947049187cd9886a85807           || service_name | cinder                                     || service_type | volume                                     || url          | http://192.168.56.11:8776/v1/%(tenant_id)s |+--------------+--------------------------------------------+

Private Network registration:

[[email protected] ~]# openstack endpoint create --region RegionOne  volume internal http://192.168.56.11:8776/v1/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | 184ede7d6cb64e52a14e884cd90b8455           || interface    | internal                                   || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 44c68286553947049187cd9886a85807           || service_name | cinder                                     || service_type | volume                                     || url          | http://192.168.56.11:8776/v1/%(tenant_id)s |+--------------+--------------------------------------------+

Admin registration:

[[email protected] ~]# openstack endpoint create --region RegionOne  volume admin http://192.168.56.11:8776/v1/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | 38796e145c55401e8140815af281d0fd           || interface    | admin                                      || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 44c68286553947049187cd9886a85807           || service_name | cinder                                     || service_type | volume                                     || url          | http://192.168.56.11:8776/v1/%(tenant_id)s |+--------------+--------------------------------------------+

Create V2 endpoint:
Public Network registration:

[[email protected] ~]# openstack endpoint create --region RegionOne  volumev2 public http://192.168.56.11:8776/v2/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | c7246b6f7c8d4227b2cb0b03c7ffe694           || interface    | public                                     || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 9bc7d84ec806418d9046635275518741           || service_name | cinderv2                                   || service_type | volumev2                                   || url          | http://192.168.56.11:8776/v2/%(tenant_id)s |+--------------+--------------------------------------------+

Private Network registration:

[[email protected] ~]# openstack endpoint create --region RegionOne  volumev2 internal http://192.168.56.11:8776/v2/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | e738d99d2a7a46e5a122ed6b006de63e           || interface    | internal                                   || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 9bc7d84ec806418d9046635275518741           || service_name | cinderv2                                   || service_type | volumev2                                   || url          | http://192.168.56.11:8776/v2/%(tenant_id)s |+--------------+--------------------------------------------+

Admin registration:

[[email protected] ~]# openstack endpoint create --region RegionOne  volumev2 admin http://192.168.56.11:8776/v2/%\(tenant_id\)s+--------------+--------------------------------------------+| Field        | Value                                      |+--------------+--------------------------------------------+| enabled      | True                                       || id           | c7c6845176214a64ab9abefb7cc7acf8           || interface    | admin                                      || region       | RegionOne                                  || region_id    | RegionOne                                  || service_id   | 9bc7d84ec806418d9046635275518741           || service_name | cinderv2                                   || service_type | volumev2                                   || url          | http://192.168.56.11:8776/v2/%(tenant_id)s |+--------------+--------------------------------------------+

To install the Cinder storage node:

Version Openstack-liberty Ciner deployment (ix)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.