安装配置OpenStack时不常见错误及解决办法
(2013-07-15 13:02:18)
标签:
openvswitchopenstackiscsitargetfatalmodule |
分类: OpenStack |
1:运行service
openvswitch-switch start出错
出错的原因是:由于Open
vSwitch版本和Linux系统内核版本不匹配,因为在安装openvswitch之前已经将系统内核升级了
root@controller:~# uname -a
Linux
controller 3.2.0-36-generic
#57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 x86_64 x86_64 x86_64
GNU/Linux
root@ controller :~# service
openvswitch-switch start
解决办法:进一步更新系统相应的内核模块。
root@ controller :~#
module-assistant auto-install
openvswitch-datapath
或者
root@ controller :~#
m-a a-i openvswitch-datapath
2:在虚拟机安装OpenStack的cinder组件,出错service iscsitarget
start出错
出错:FATAL: Module iscsi_trgt not
found.原因是系统内核版本过高,与iscsitarge版本不匹配
解决办法:降级Linux系统内核版本
root@controller:~#
dpkg-reconfigure
iscsitarget-dkms
-------- Uninstall Beginning --------
Module: iscsitarget
Version: 1.4.20.2
Kernel: 3.2.0-36-virtual (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on
this kernel.
iscsi_trgt.ko:
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 1.4.20.2
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source
->
DKMS: add completed.
Error! Your kernel headers for kernel 3.2.0-32-virtual cannot
be found.
Please install the linux-headers-3.2.0-32-virtual
package,
or use the --kernelsourcedir option to tell DKMS where it's
located
安装匹配版本的内核
root@controller:~# apt-get
install linux-headers-3.2.0-32-virtual
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
The following NEW packages will be installed:
0 upgraded, 2 newly installed, 0 to remove and 55 not
upgraded.
Need to get 12.7 MB of archives.
After this operation, 67.5 MB of additional disk space will be
used.
Do you want to continue [Y/n]?
Get:1 http://10.1.199.5/ubuntu/ precise-updates/main
linux-headers-3.2.0-32 all 3.2.0-32.51 [11.7 MB]
Get:2 http://10.1.199.5/ubuntu/ precise-updates/main
linux-headers-3.2.0-32-virtual amd64 3.2.0-32.51 [990 kB]
Fetched 12.7 MB in 0s (26.9 MB/s)
Selecting previously unselected package
linux-headers-3.2.0-32.
(Reading database ... 67539 files and directories currently
installed.)
Unpacking linux-headers-3.2.0-32 (from
.../linux-headers-3.2.0-32_3.2.0-32.51_all.deb) ...
Selecting previously unselected package
linux-headers-3.2.0-32-virtual.
Unpacking linux-headers-3.2.0-32-virtual (from
.../linux-headers-3.2.0-32-virtual_3.2.0-32.51_amd64.deb) ...
Setting up linux-headers-3.2.0-32 (3.2.0-32.51) ...
Setting up linux-headers-3.2.0-32-virtual (3.2.0-32.51)
...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
3.2.0-32-virtual /boot/vmlinuz-3.2.0-32-virtual
重新启动iscsitarget服务
root@controller:~# /etc/init.d/iscsitarget
restart
前一篇:OpenStack初识

加载中…