In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
OpenStack is composed of four parts: control node, compute node, network node and storage node. The previous blog post detailed the horizon component in the control node service controller, and this blog post will detail the deployment of the storage node cinder. Divided into two parts: control node and storage node
OpenStack Storage Node Architecture
Storage nodes include services such as Cinder and Swift.
Cinder: Block storage service provides corresponding block storage. In simple terms, it is a virtual disk that can be mounted on the corresponding virtual machine without being affected by factors such as file system. For virtual machines, this operation is like adding a new hard disk, which can complete any operation on the disk, including mounting, unmounting, formatting, converting file system, etc. Swift: Object storage service provides corresponding object storage. Simply put, it is to create a virtual disk space in which files can be stored, only files can be stored, and formatting cannot be performed. File system conversion is mostly applied to cloud disks/files.
Storage nodes contain a minimum of two network interfaces
eth0: Communicate with control node, accept control node tasks, and be uniformly deployed by control node
eth2: Communicate with computing/network nodes and complete various tasks issued by control nodes. The host system IP address is angle-color controller CentOS7192.168.37.128keystone, nova, glare, neutron, horizon, cinder, ntp, mariadb, rabbitmq, memcached, etcd, apachecomputeCentOS7192.168.37.130nova, neutron, ntpcinderCentOS7192.168.37.131cinder, ntp Experimental process
++ Install and configure Cinder nodes ++
1. Add or create a disk sdb
fdisk /dev/sdb
2. Create LVM physical logical volume/dev/sdb1
pvcreate /dev/sdb1
3. Create a cinder-volumes logical volume group
vgcreate cinder-volumes /dev/sdb1
4, yum install the Cinder software package
yum install openstack-cinder targetcli python-keystone -y
5. Edit configuration files
vim /etc/cinder/cinder.conf
[DEFAULT]#1302transport_url = rabbit://openstack:123456@controller#399auth_strategy = keystone#291my_ip = 192.168.175.155#403enabled_backends = lvm #Supported format #296glance_api_servers = http://controller:9292[database]#3586connection = mysql+pymysql://cinder:123456@controller/cinder[keystone_authtoken]#3850auth_uri = http://www.mymysql.com//controller:5000auth_url = http://controller:35357#3901memcached_servers = controller:11211#4008auth_type = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = cinderpassword = 1 23456 [oslo_concurrency]#4125lock_path = /var/lib/cinder/tmp#Add the [lvm] module at the end to configure the LVM backend using the LVM driver, cinder-volumes volume groups, iSCSI protocol and corresponding iSCSI services. [lvm] volume_driver = cinder.volume.drivers.lvm.LVMVolumeDrivervolume_group = cinder-volumesiscsi_protocol = iscsiiscsi_helper = lioadm
6. Turn on the Cinder service and set it to boot automatically.
systemctl enable openstack-cinder-volume.service target.service
systemctl start openstack-cinder-volume.service target.service
++ Install and configure controller nodes ++
1. Configuration database
mysql -u root -p
create database cinder;
grant all privileges on cinder. to 'cinder'@'localhost' identified by '123456';
grant all privileges on cinder. to 'cinder'@'%' identified by '123456';
2. Create a user finder
source ~/admin-openrc
openstack user create --domain default --password-prompt cinder
Password: 123456
3. Add roles
openstack role add --project service --user cinder admin
4. Create cinderv2 and cinderv3 service entities
openstack service create --name cinderv2 --description "OpenStack Block Storage" volumev2
openstack service create --name cinderv3 --description "OpenStack Block Storage" volumev3
5. Create a Block Storage Service API
openstack endpoint create --region RegionOne volumev2 public http://controller:8776/v2/%\(project_id\)sopenstack endpoint create --region RegionOne volumev2 internal http://controller:8776/v2/%\(project_id\)sopenstack endpoint create --region RegionOne volumev2 admin http://controller:8776/v2/%\(project_id\)sopenstack endpoint create --region RegionOne volumev3 public http://controller:8776/v3/%\(project_id\)sopenstack endpoint create --region RegionOne volumev3 internal http://controller:8776/v3/%\(project_id\)sopenstack endpoint create --region RegionOne volumev3 admin http://controller:8776/v3/%\(project_id\)s
6. Install the Cinder software package
yum install openstack-cinder -y
7. Edit configuration files
vim /etc/cinder/cinder.conf
[database]#3586connection = mysql+pymysql://cinder:123456@controller/cinder[DEFAULT]#1302transport_url = rabbit://openstack:123456@controller#399auth_strategy = keystone#291my_ip = 192.168.175.145[keystone_authtoken]#3850auth_uri = http://controller:5000auth_url = http://controller:35357#3901memcached_servers = controller:11211#4008auth_type = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = cinderpassword = 123456[oslo_concurrency]#4126lock_path = /var/lib/cinder/tmp
8. Synchronous database
su -s /bin/sh -c "cinder-manage db sync" cinder
9. Edit nova profile
vim /etc/nova/nova.conf
[cinder]#4237os_region_name = RegionOne
10. Restart the openstack-nova-api service and start the finder service.
systemctl restart openstack-nova-api.service
systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service
systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service
11. View User Cinder
12. View service entity
So far, the cinder component part has been deployed completely, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.