Openstack架设使用中问题汇总
来源:互联网 发布:高清直播网络电视 编辑:程序博客网 时间:2024/05/22 09:40
2012-04-23 18:42:55 CRITICAL nova [-] Unable to allow access for disk path /dev/disk/by-path/ip-192.168.1.14:3260-iscsi-iqn.2010-10.org.openstack:volume-00000002-lun-1: No such file or directory
这会导致nova-conpute无法正常运行,造成错误的原因有2,一是设置了compute在启动的时候自动启动(自动恢复)instance状态;二是使用nova-volume后重启服务(此时compute会自动恢复instance状态),就会出现找不到volume的错误。
解决方案:
修改 /etc/nova.conf,注释两个选项:#start_guests_on_host_boot = True#resume_guests_state_on_host_boot =True以后就手动启动instance比较稳定。
查看/dev/disk/by-path/下的文件root@Controller:~# ls -l /dev/disk/by-path/total 0lrwxrwxrwx 1 root root 9 Apr 23 21:17 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sdalrwxrwxrwx 1 root root 10 Apr 23 21:17 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1lrwxrwxrwx 1 root root 10 Apr 23 21:17 pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2lrwxrwxrwx 1 root root 10 Apr 23 21:17 pci-0000:00:1f.2-scsi-0:0:0:0-part5 -> ../../sda5lrwxrwxrwx 1 root root 10 Apr 23 21:17 pci-0000:00:1f.2-scsi-0:0:0:0-part6 -> ../../sda6
发现都是符号链接,执行:
root@Controller:~# tgtadm --lld iscsi --op show --mode targetTarget 2: iqn.2010-10.org.openstack:volume-00000003 System information: Driver: iscsi State: ready I_T nexus information: LUN information: LUN: 0 Type: controller SCSI ID: IET 00020000 SCSI SN: beaf20 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Readonly: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: disk SCSI ID: IET 00020001 SCSI SN: beaf21 Size: 10737 MB, Block size: 512 Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store path: /dev/nova-volumes/volume-00000003找到相应确实的东西,手动在by-path下建立链接,重启nova-compute服务即可。
- Openstack架设使用中问题汇总
- Openstack安装问题汇总
- OpenStack部署过程中遇到的问题汇总(1)
- openstack实践各种问题汇总
- ajax 使用中问题汇总
- volley使用中问题汇总
- openstack 单机安装问题汇总
- openstack neutron使用中遇到的问题总结
- QC使用中问题点汇总
- 汇总Xcode使用中几个小问题
- web.py中使用Jinja2问题汇总
- SVN使用问题汇总(积累中)
- Unity3D使用中发现问题汇总
- Eclipse中使用maven问题汇总
- oracle数据库使用过程中问题汇总
- Openstack中安全审计问题
- 使用openstack遇到的问题
- openstack中iptables的使用
- FindWindow使用技巧;解决FindWindow的lpClassName获取不到句柄
- 第十周实验报告1
- 第10周任务2
- 第十周实验报告(一)
- 2012xs
- Openstack架设使用中问题汇总
- 负载均衡技术列表
- 各种文档
- OpenCV码源笔记——Decision Tree决策树
- Build Your Programming Technical Skills
- 第十周 任务二
- oracle删除大量重复数据
- Python完全新手教程【经典】
- 在Oracle中查看各个表、表空间占用空间的大小