Configure Cinder on OpenStack Pike standalone with Kolla
words - read.

Configure Cinder on OpenStack Pike standalone with Kolla

Cinder is an OpenStack project which provides block storage to your cloud infrastructure. It allows you to configure and manage persistent storage for your virtual machine instances.

OpenStack Kolla Logo

Prerequisites

If you haven't done so yet, you need to Install and configure OpenStack Pike with Kolla as a standalone.

You also need to add a new 100 GB disk to the Ubuntu 16.04 virtual machine built in the previous article. In this lab, the new 100 GB disk will be /dev/sdb.

Prepare Ubuntu for Cinder LVM

1- Create a physical volume.

$ sudo pvcreate /dev/sdb

2- Create a volume group.

$ sudo vgcreate cinder-volumes /dev/sdb

3- Edit the modules configuration file.

$ sudo vim /etc/modules

4- Add the configfs module.

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
configfs

5- Rebuild the initramfs.

$ sudo update-initramfs -u

6- Reload the daemon configurations.

$ sudo systemctl daemon-reload

7- Stop and disable open-iscsi.

$ sudo systemctl stop open-iscsi

$ sudo systemctl disable open-iscsi

8- Stop and disable iscsid.

$ sudo systemctl stop iscsid

$ sudo systemctl disable iscsid

9- Reboot the server.

$ sudo reboot

Install Cinder

1- Edit the /etc/kolla/globals.yml configuration file.

$ sudo vim /etc/kolla/globals.yml

2- Add the following lines to enable Cinder LVM2 backend.

enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"

3- Pull the Cinder container images.

$ sudo kolla-ansible pull

4- Deploy Cinder.

$ sudo kolla-ansible deploy

Comments

comments powered by Disqus