Cinder的安装配置注意事项
2013-07-24 20:26
411 查看
Cinder的安装配置注意事项
安装参考教程:
https://github.com/ist0ne/OpenStack-Grizzly-Install-Guide-CN/blob/OVS_Quantum_MutliNode/OpenStack_Grizzly_Install_Guide.rst
注意事项:
需要指定rabbit server,在配置文件中cinder.conf添加
如果在日志中出现权限问题,如下所示:
那么,可以在cinder.conf中添加
当把volume attach到instance时,如果在计算节点的/var/log/nova/nova-compute.log中出现
问题原因1:可能是iscsi target的配置不正确,ubuntu系统中用于生成target的软件有两种:tgt和iscsitarget,需要分别在/etc/nova/nova.conf和/etc/cinder/cinder.conf中根据实际情况指定iscsi_helper 。指定一种iscsi_helper后最好将另一种停掉或者干脆卸载掉,避免互相干扰。(本人倾向于使用tgt)
可以通过
命令来查看,占用3260端口的到底是tgt还是iscsitarget。得到结果可能如下
问题原因2:没有为volume配置正确的ip。在我的环境中,cinder服务器有两个ip,一个用于openstack集群,另一个用于连接外部网络。cinder将volume 的provider_location设置成了用于外部链接的ip,导致compute无法通过iscsi连接到volume上,attach失败。解决方法是在/etc/cinder/cinder.conf加入一行
安装参考教程:
https://github.com/ist0ne/OpenStack-Grizzly-Install-Guide-CN/blob/OVS_Quantum_MutliNode/OpenStack_Grizzly_Install_Guide.rst
注意事项:
需要指定rabbit server,在配置文件中cinder.conf添加
rabbit_host=10.10.10.2 rabbit_port=5672
如果在日志中出现权限问题,如下所示:
Permission denied: '/usr/lib/python2.7/dist-packages/volumes'
那么,可以在cinder.conf中添加
state_path=/var/lib/cinder volumes_dir=/var/lib/cinder/volumes
当把volume attach到instance时,如果在计算节点的/var/log/nova/nova-compute.log中出现
2013-07-24 05:14:36.195 6042 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-6816d4f2-a02a-4a44-99d0-9715e7b7afa4 -p 10.10.10.7:3260 --rescan 2013-07-24 05:14:36.195 6042 TRACE nova.openstack.common.rpc.amqp Stderr: 'iscsiadm: No portal found.\n'
问题原因1:可能是iscsi target的配置不正确,ubuntu系统中用于生成target的软件有两种:tgt和iscsitarget,需要分别在/etc/nova/nova.conf和/etc/cinder/cinder.conf中根据实际情况指定iscsi_helper 。指定一种iscsi_helper后最好将另一种停掉或者干脆卸载掉,避免互相干扰。(本人倾向于使用tgt)
iscsi_helper = tgtadm (tgt) iscsi_helper = ietadm (iscsitarget)
可以通过
lsof -i:3260
命令来查看,占用3260端口的到底是tgt还是iscsitarget。得到结果可能如下
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME tgtd 21619 root 4u IPv4 715407 0t0 TCP *:3260 (LISTEN) tgtd 21619 root 5u IPv6 715408 0t0 TCP *:3260 (LISEN) tgtd 21621 root 4u IPv4 715407 0t0 TCP *:3260 (LISTEN) tgtd 21621 root 5u IPv6 715408 0t0 TCP *:3260 (LISTEN)
问题原因2:没有为volume配置正确的ip。在我的环境中,cinder服务器有两个ip,一个用于openstack集群,另一个用于连接外部网络。cinder将volume 的provider_location设置成了用于外部链接的ip,导致compute无法通过iscsi连接到volume上,attach失败。解决方法是在/etc/cinder/cinder.conf加入一行
iscsi_ip_address=10.10.10.7
相关文章推荐
- LAMP环境配置安装注意安装步骤及说明事项
- LAMP环境配置安装注意安装步骤及说明事项。
- CodeBlocks安装及配置注意事项
- wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-32b.exe 安装 配置 注意事项
- windows server 2003 r2 64位web服务器安装配置注意事项
- VC++中安装OpenGL的配置过程及注意事项
- RTX2016的安装及网卡配置注意事项
- Silverlight安装配置与注意事项
- Hudson插件安装错误(变通方案)和配置注意事项
- windows下Redis的安装配置以及注意事项
- 数据库安装、配置注意事项
- gxpm的安装配置注意事项
- xenapp 6.5 安装配置注意事项。
- win7下hadoop安装配置注意事项
- PhpStorm +xdebug 调试安装配置注意事项
- Eclipse下配置Github安装环境注意事项
- Haproxy的详细安装配置及注意事项
- tokuDB存储引擎的安装、配置、使用及注意事项
- Opentaps 1.5.0安装配置笔记(附ant命令源码安装)及ofbiz 12.04.02安装特别注意事项