cinder 配置 安装:
1) 下载source code
2) pip install
3) yum install scsi-target-utils
4) yum install iscsi-initiator-utils.x86_64 (这两个相当于ubuntu下的 open-iscsi和tgt)
5) edit cinder config file:/etc/cinder/cinder.conf
[DEFAULT] sql_connection = mysql://cinder:password@localhost:3306/cinder rabbit_password = password
normally it includes :
1.database config
2.keystone access config
3.volumes config
4.message queue config
5. enable cinder api in nova.conf
enabled_apis=osapi_volume
osapi_volume_listen=0.0.0.0 #cinder server ip
osapi_volume_listen_port=8776
6) edit
/etc/lvm/lvm.conf
Add volume_list entry to /etc/lvm/lvm.conf to keep LVM from activating logical volumes created in VMs.
volume_list = ["VolGroup", "cinder-volumes" ]
volume_list should include your os related volume group.
附:
Volume Group: Any number of physical volumes or PV on different disk drives can be added together into a volume group (VG). 1)Create Volume Group VG1 with two Physical Volumes #vgcreate VG1 /dev/hda# /dev/hda# 2)Change Volume Group to ACTIVE(optional) #vgchange -a y VG1 3)查看现有的volume group # vgdisplay 4)扩展现有的vg #vgextend VolGroup00 /dev/sda3 Volume group "VolGroup00" successfully extended 5)For Short details output of Volume group #vgscan |
7)add volumes dir in /etc/tgt/targets.conf
执行命令:
sed -i '9a include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
8) restart tgtd service
执行 : service tgtd restart
9) init cinder db
mysql -uroot -ppassword -e 'create database cinder'
mysql -uroot -ppassword -e "grant select,insert,update,delete,create,alter,drop,index on cinder.* to cinder@'localhost' identified by 'cinder'"
cinder-manage db sync
10) test if cinder works
10.1 create one test loop file and mount it
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G
losetup /dev/loop2 cinder-volumes
losetup /dev/loop2 cinder-volumes
10.2 init pv and create vg
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
10.3 check if volume is created
pvscan
10.4 restart cinder service:
cinder api, scheduler, volume
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
10.3 check if volume is created
pvscan
10.4 restart cinder service:
cinder api, scheduler, volume
#service openstack-cinder-api restart 或者 /etc/init.d/openstack-cinder-api restart
#service openstack-cinder-scheduler restart 或者 /etc/init.d/openstack-cinder-scheduler restart
#service openstack-cinder-volume restart 或者 /etc/init.d/openstack-cinder-volume restart
10.5 use cinder to create volume
cinder create --display_name test 1
10.5 use cinder to create volume
cinder create --display_name test 1
10.6 verify volume created successfully
cinder list
cinder list
volume should in "available" statu
=====================
openstack Grizzly-g3单节点安装:http://longgeek.com/2013/03/11/openstack-grizzly-g3-for-ubuntu-12-04-all-in-one-installation/#Cinder
Ubuntu12.04.2 OpenStack Grizzly 安装(Bridge)http://www.chenshake.com/ubuntu12-04-2-installed-openstack-grizzly-bridge-mode/
Cinder几个错误和解决办法:http://www.xiaoyinzei.com/?p=520
相关推荐
Redhat6.3单机安装Oracle10g,注明相关缺失包问题。
RedHat 6.3 工作站版本,很难得
redhat6.3_64位配置dns记录,新手学习红帽子的经典教程。
RedHat 6.3 平台下安装 Oracle 11G ,安装描述清晰,成功安装。
RedHat_OpenStack搭建详细教程
redhat 6.3镜像文件,对应linux系统2.6.32版本,一直再用,比较稳定。
在redhat linux 6.3x64上安装oracle 11g RAC
redhat linux 9.0网络配置
vbox+redhat6.3+oracle11gRAC安装文档详细图解安装过程
redhat 企业版6.3安装kvm虚拟机
RedHat_Linux6.3下Oracle_11g安装图解教程
文字和界面详细描述红帽6.3安装过程,其中一些选择性的安装可根据自己使用情况进行选择。
redhat6.3 mongodb openssl
远程桌面vnc配置实战技术文档,通过实际例子演示linux远程桌面的配置。
linux redhat 6.3版本 安装gcc 4.3.2合集(三合一)测试通过
RedHat OpenStack 官方安装文档
最近在学Linux,很多问题也是参考了网上很多的资料,自己也是亲自测试...最后就没有安装vsftp,所以自己就从光盘(iso镜像)上再安装配置。 RedHat_Enterprise_Linux6_上安装及配置vsftp 其他版本应该也是大同小异吧。
Oracle 安装步骤: Redhat6.3 操作系统 详细描述了,数据库的安装。。
RedHat6.3安装oracle11GR2详细整理(针对初学linux者).pdf
Redhat 6.3中syslog信息丢失.docx