After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 167 of 317

Chapter 8 157 How it works... In order for us to use nova-volume, we need to prepare a suitable disk or partition that has been configured as an LVM volume and that is specifically named nova-volumes. For our virtual environment, we simply add a new disk that we can then set up to be part of this LVM volume group. In a physical installation, the steps are no different. We simply configure a partition to be of type 8e (Linux LVM) in fdisk and then add this partition to a volume group named nova-volumes. Once done, we then install the required nova-volume packages and supporting services. As nova-volume uses iSCSI as the mechanism for attaching a volume to an instance, we install the appropriate packages that are required to run iSCSI targets. Configuring OpenStack Compute for nova-volume We now need to tell our OpenStack Compute service about our new nova-volume service. Getting ready Ensure you are logged in to your compute nodes, so we can install and configure the appropriate packages in order to use the nova-volume attached storage. How to do it... Configuring OpenStack Compute nodes to use nova-volume involves installing the appropriate package (that can communicate back to the iSCSI target) on our node. 1. First, install the open-iscsi package on our OpenStack Compute host. The OpenStack Compute host is known as an iSCSI Initiator. sudo apt-get -y install open-iscsi 2. Start the iSCSI service through the following command: sudo service open-iscsi start 3. Finally, we instruct OpenStack Compute to use this iSCSI service for nova-volume, by adding the following lines to our /etc/nova/nova.conf file: iscsi_ip_address=172.16.0.1 --iscsi_helper=tgtadm www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook