Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1366562
  • 博文数量: 244
  • 博客积分: 3321
  • 博客等级: 中校
  • 技术积分: 2704
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-26 08:17
个人简介

微信公众号:杰夫弹弹看

文章分类

全部博文(244)

文章存档

2018年(4)

2017年(32)

2016年(25)

2015年(28)

2014年(27)

2013年(34)

2012年(25)

2011年(30)

2010年(39)

分类: 云计算

2013-01-31 22:18:01

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
normally it includes :
     database config
     keystone access config
     volumes config
     message queue config
also enable cinder api in nova.conf

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.

7)add volumes dir in /etc/tgt/targets.conf

include /var/lib/cinder/volumes/*

8) restart tgtd service

9) init cinder db
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

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

10.5 use cinder to create volume 
cinder create --display_name test 1

10.6 verify volume created successfully 
cinder list

volume should in "available" status

阅读(6340) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~