Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Cinder – Block storage services – Storage Nodes

Posted on October 11, 2020October 21, 2020 by sandeep

In my case all the three compute nodes will also be storage nodes. In all the three nodes had created a single virtual disk in RAID controller. /dev/sda1 was use for efi boot and /dev/sda2 for OS installation. a new partition /dev/sda3 was created for the remaining space.

Install the supporting utility packages

apt install -y lvm2 thin-provisioning-tools

Create the LVM physical volume /dev/sda3

pvcreate /dev/sdb

Create the LVM volume group cinder-volumes

vgcreate cinder-volumes /dev/sdb

Reconfigure LVM to scan only the devices that contain the cinder-volumes volume group. Edit the /etc/lvm/lvm.conf

In the devices section, add a filter that accepts the /dev/sdb device and rejects all other devices

devices {
...
filter = [ "a/sdb/", "r/.*/"]

Install and configure components

apt install -y cinder-volume

Edit  /etc/cinder/cinder.conf and update configurations in respective sections

[database]
connection = mysql+pymysql://cinder:commonpass@controller/cinder
[DEFAULT]
transport_url = rabbit://openstack:commonpass@controller
auth_strategy = keystone
# Replace my_ip with compute nodes management IP address
my_ip = 10.1.1.x
glance_api_servers = http://controller:9292

# Add the following sections

[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = commonpass

[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
target_protocol = iscsi
target_helper = tgtadm

[oslo_concurrency]
lock_path = /var/lib/cinder/tmp

Restart the Block Storage volume service including its dependencies

service tgt restart
service cinder-volume restart

Recent Posts

  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server
  • Preparing custom Debian 11 server cloud image
  • Complile Linux Kernel (on Debian 11)
  • Openstack Xena – Test Home Lab
  • Openstack Xena on Ubuntu 20.04 – Horizon
  • Openstack Xena on Ubuntu 20.04 -Home Lab
  • Openstack Xena on Ubuntu 20.04 – Neutron
  • Openstack Xena on Ubuntu 20.04 – Nova

Archives

  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • September 2021
  • October 2020
  • February 2020
  • January 2020
  • December 2019
© 2022 Home Lab | Powered by Minimalist Blog WordPress Theme