Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #systemctl enable lvm2-lvmetad.service
- #systemctl start lvm2-lvmetad.service
- [...] Edit file di configurazione...
- #systemctl restart lvm2-lvmetad.service
- Cinder Volume
- -------------
- #yum -y install openstack-cinder targetcli python-oslo-db python-oslo-log MySQL-python
- #openstack-config --set /etc/cinder/cinder.conf lvm volume_driver cinder.volume.drivers.lvm.LVMVolumeDriver
- #openstack-config --set /etc/cinder/cinder.conf lvm volume_group cinder-volumes
- #openstack-config --set /etc/cinder/cinder.conf lvm iscsi_protocol iscsi
- #openstack-config --set /etc/cinder/cinder.conf lvm iscsi_helper lioadm
- #openstack-config --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm
- #systemctl enable openstack-cinder-volume.service target.service
- #systemctl start openstack-cinder-volume.service target.service
- #cinder create 1
- [...]
- #cinder list
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- | 97eecb79-9713-464e-9cb4-3c7a2ccd8563 | available | | 1 | - | false | |
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- #nova volume-create --display-name myvol 2
- #cinder list
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- | 97eecb79-9713-464e-9cb4-3c7a2ccd8563 | available | | 1 | - | false | |
- | d8221109-4c8b-4b62-b33a-d83a53bd79ce | available | | 2 | - | false | |
- +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
- #vgdisplay
- # --- Volume group ---
- # VG Name cinder-volumes
- # System ID
- # Format lvm2
- # Metadata Areas 1
- # Metadata Sequence No 7
- # VG Access read/write
- # VG Status resizable
- # MAX LV 0
- # Cur LV 2
- # Open LV 0
- # Max PV 0
- # Cur PV 1
- # Act PV 1
- # VG Size 185.02 GiB
- # PE Size 4.00 MiB
- # Total PE 47364
- # Alloc PE / Size 768 / 3.00 GiB
- # Free PE / Size 46596 / 182.02 GiB
- # VG UUID cxT8id-Ucax-9CrY-w2Du-gHrf-lZ17-7IB7hB
- Servizio Dashboard: Horizon
- ---------------------------
- #yum -y install openstack-dashboard httpd mod_wsgi memcached python-memcached mod_ssl
- [...] edit file di configurazione...
- #chown -R apache:apache /usr/share/openstack-dashboard/static
- #cat << EOF >> /etc/security/limits.conf
- * soft nofile 4096
- * hard nofile 4096
- EOF
- #sed -i 's+^Listen.*+Listen <IP-PUBLIC_NODO_CONTROLLER>:80+' /etc/httpd/conf/httpd.conf
- #cp /etc/grid-security/hostcert.pem /etc/cert.pem
- #cp /etc/grid-security/hostkey.pem /etc/key.pem
- #chown apache:apache /etc/cert.pem /etc/key.pem
- #sed -i 's+^SSLCertificateFile.*+SSLCertificateFile /etc/cert.pem+' /etc/httpd/conf.d/ssl.conf
- #sed -i 's+^SSLCertificateKeyFile.*+SSLCertificateKeyFile /etc/key.pem+' /etc/httpd/conf.d/ssl.conf
- #cat << EOF >> /etc/openstack-dashboard/local_settings
- AUTH_USER_MODEL = 'openstack_auth.User'
- EOF
- #systemctl restart httpd.service memcached.service # restart perché già in esecuzione
- #firewall-cmd --add-port=443/tcp
- #firewall-cmd --permanent --add-port=443/tcp
- #systemctl restart firewalld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement