Openstack啓動nova-volume報錯解決方法

    啓動nova-volume服務報錯:node

opt_name is : network_topic
2012-08-28 10:35:06 AUDIT nova.service [-] Starting volume node (version 2012.2-LOCALBRANCH:LOCALREVISION)
Starting volume node (version 2012.2-LOCALBRANCH:LOCALREVISION)
2012-08-28 10:35:06 WARNING nova.common.deprecated [req-05c989c5-b5fb-4653-af86-53d964db7254 None None] Deprecated Config: The root_helper option (which lets you specify a root wrapper different from nova-rootwrap, and defaults to using sudo) is now deprecated. You should use the rootwrap_config option instead.
Deprecated Config: The root_helper option (which lets you specify a root wrapper different from nova-rootwrap, and defaults to using sudo) is now deprecated. You should use the rootwrap_config option instead.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/eventlet-0.9.17-py2.6.egg/eventlet/hubs/hub.py", line 336, in fire_timers
    timer()
  File "/usr/lib/python2.6/site-packages/eventlet-0.9.17-py2.6.egg/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/python2.6/site-packages/eventlet-0.9.17-py2.6.egg/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/service.py", line 132, in run_server
    server.start()
  File "/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/service.py", line 398, in start
    self.manager.init_host()
  File "/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/volume/manager.py", line 98, in init_host
    self.driver.check_for_setup_error()
  File "/usr/lib/python2.6/site-packages/nova-2012.2-py2.6.egg/nova/volume/driver.py", line 107, in check_for_setup_error
    % FLAGS.volume_group)
NovaException: volume group nova-volumes doesn't exist
2012-08-28 10:35:08 CRITICAL nova [-] volume group nova-volumes doesn't exist
volume group nova-volumes doesn't existpython

這個消息說明了一切嘛,這樣試一試:app

[root@xgtest scripts]# dd if=/dev/zero  of=/home/nova/nova_volumes.img bs=1M count=2048   
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 63.5693 s, 33.8 MB/s
[root@xgtest scripts]#
[root@xgtest scripts]#
[root@xgtest scripts]#
[root@xgtest scripts]# losetup -f /home/nova/nova_volumes.img 
[root@xgtest scripts]# losetup -a
/dev/loop0: [64769]:660875 (/home/nova/nova_volumes.img)
[root@xgtest scripts]#
[root@xgtest scripts]#
[root@xgtest scripts]#
[root@xgtest scripts]# vgcreate  nova-volumes  /dev/loop0
  No physical volume label read from /dev/loop0
  Writing physical volume data to disk "/dev/loop0"
  Physical volume "/dev/loop0" successfully created
  Volume group "nova-volumes" successfully created
[root@xgtest scripts]# vg
vgcfgbackup    vgchange       vgconvert      vgdisplay      vgextend       vgimportclone  vgmknodes      vgremove       vgs            vgsplit
vgcfgrestore   vgck           vgcreate       vgexport       vgimport       vgmerge        vgreduce       vgrename       vgscan        
[root@xgtest scripts]# vgdisplay
oop

相關文章
相關標籤/搜索