Advertisement
alvise72

Untitled

Feb 5th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.95 KB | None | 0 0
  1. #systemctl enable lvm2-lvmetad.service
  2. #systemctl start lvm2-lvmetad.service
  3. [...] Edit file di configurazione...
  4.  
  5. #systemctl restart lvm2-lvmetad.service
  6.  
  7. Cinder Volume
  8. -------------
  9. #yum -y install openstack-cinder targetcli python-oslo-db python-oslo-log MySQL-python
  10.  
  11. #openstack-config --set /etc/cinder/cinder.conf lvm volume_driver cinder.volume.drivers.lvm.LVMVolumeDriver
  12. #openstack-config --set /etc/cinder/cinder.conf lvm volume_group cinder-volumes
  13. #openstack-config --set /etc/cinder/cinder.conf lvm iscsi_protocol iscsi
  14. #openstack-config --set /etc/cinder/cinder.conf lvm iscsi_helper lioadm
  15. #openstack-config --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm
  16.  
  17. #systemctl enable openstack-cinder-volume.service target.service
  18. #systemctl start openstack-cinder-volume.service target.service
  19.  
  20.  
  21. #cinder create 1
  22. [...]
  23.  
  24. #cinder list
  25. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  26. |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
  27. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  28. | 97eecb79-9713-464e-9cb4-3c7a2ccd8563 | available |              |  1   |      -      |  false   |             |
  29. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  30.  
  31. #nova volume-create --display-name myvol 2
  32. #cinder list
  33. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  34. |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
  35. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  36. | 97eecb79-9713-464e-9cb4-3c7a2ccd8563 | available |              |  1   |      -      |  false   |             |
  37. | d8221109-4c8b-4b62-b33a-d83a53bd79ce | available |              |  2   |      -      |  false   |             |
  38. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  39.  
  40.  
  41. #vgdisplay
  42. #  --- Volume group ---
  43. #  VG Name               cinder-volumes
  44. #  System ID            
  45. #  Format                lvm2
  46. #  Metadata Areas        1
  47. #  Metadata Sequence No  7
  48. #  VG Access             read/write
  49. #  VG Status             resizable
  50. #  MAX LV                0
  51. #  Cur LV                2
  52. #  Open LV               0
  53. #  Max PV                0
  54. #  Cur PV                1
  55. #  Act PV                1
  56. #  VG Size               185.02 GiB
  57. #  PE Size               4.00 MiB
  58. #  Total PE              47364
  59. #  Alloc PE / Size       768 / 3.00 GiB
  60. #  Free  PE / Size       46596 / 182.02 GiB
  61. #  VG UUID               cxT8id-Ucax-9CrY-w2Du-gHrf-lZ17-7IB7hB
  62.  
  63.  
  64.  
  65. Servizio Dashboard: Horizon
  66. ---------------------------
  67.  
  68. #yum -y install openstack-dashboard httpd mod_wsgi memcached python-memcached mod_ssl
  69. [...] edit file di configurazione...
  70.  
  71. #chown -R apache:apache /usr/share/openstack-dashboard/static
  72.  
  73.  
  74. #cat << EOF >> /etc/security/limits.conf
  75. *                soft    nofile          4096
  76. *                hard    nofile          4096
  77. EOF
  78.  
  79. #sed -i 's+^Listen.*+Listen <IP-PUBLIC_NODO_CONTROLLER>:80+' /etc/httpd/conf/httpd.conf
  80. #cp /etc/grid-security/hostcert.pem /etc/cert.pem
  81. #cp /etc/grid-security/hostkey.pem /etc/key.pem
  82. #chown apache:apache /etc/cert.pem /etc/key.pem
  83. #sed -i 's+^SSLCertificateFile.*+SSLCertificateFile /etc/cert.pem+' /etc/httpd/conf.d/ssl.conf
  84. #sed -i 's+^SSLCertificateKeyFile.*+SSLCertificateKeyFile /etc/key.pem+' /etc/httpd/conf.d/ssl.conf
  85.  
  86. #cat << EOF >> /etc/openstack-dashboard/local_settings
  87. AUTH_USER_MODEL = 'openstack_auth.User'
  88. EOF
  89.  
  90. #systemctl restart httpd.service memcached.service # restart perché già in esecuzione
  91.  
  92. #firewall-cmd --add-port=443/tcp
  93. #firewall-cmd --permanent --add-port=443/tcp
  94. #systemctl restart firewalld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement