分享

cinder错误, LVMVolumeDriver未初始化?

liqian 发表于 2017-11-11 11:01:35 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 10549
安装openstack的cinder部分出现问题重启cinder-scheduler和cinder-volume后,创建卷,cinder-volume有如下报错:

Stderr: u'  /usr/sbin/thin_check: execvp failed: No such file or directory\n  Check of pool cinder-volumes/cinder-volumes-pool failed (status:2). Manual repair required!\n'
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager Traceback (most recent call last):
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 430, in init_host
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     self.driver.check_for_setup_error()
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 308, in check_for_setup_error
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     self.configuration.lvm_suppress_fd_warnings))
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 127, in __init__
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     self.activate_lv(self.vg_thin_pool)
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 691, in activate_lv
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     run_as_root=True)
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/os_brick/executor.py", line 52, in _execute
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     result = self.__execute(*args, **kwargs)
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 123, in execute
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     return processutils.execute(*cmd, **kwargs)
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 400, in execute
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager     cmd=sanitized_cmd)
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvchange -a y --yes -K cinder-volumes/cinder-volumes-pool
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager Exit code: 5
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager Stdout: u''
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager Stderr: u'  /usr/sbin/thin_check: execvp failed: No such file or directory\n  Check of pool cinder-volumes/cinder-volumes-pool failed (status:2). Manual repair required!\n'
2017-11-11 10:28:02.753 30946 ERROR cinder.volume.manager
2017-11-11 10:28:02.802 30946 INFO cinder.volume.manager [req-0c20370a-1765-4354-8a6a-4b5ecee18684 - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0)
2017-11-11 10:28:02.803 30946 ERROR cinder.utils [req-0c20370a-1765-4354-8a6a-4b5ecee18684 - - - - -] Volume driver LVMVolumeDriver not initialized
2017-11-11 10:28:02.803 30946 ERROR cinder.volume.manager [req-0c20370a-1765-4354-8a6a-4b5ecee18684 - - - - -] Cannot complete RPC initialization because driver isn't initialized properly.: DriverNotInitialized: Volume driver not ready.


有关于卷组的报错,lvdisplay查看逻辑卷,显示不可用

  --- Logical volume ---
  LV Name                cinder-volumes-pool
  VG Name                cinder-volumes
  LV UUID                MegQSQ-KAAi-88Ik-Asz2-BmBR-TkqN-PbYnkF
  LV Write Access        read/write
  LV Creation host, time node-5, 2017-11-10 20:43:36 +0800
  LV Pool metadata       cinder-volumes-pool_tmeta
  LV Pool data           cinder-volumes-pool_tdata
  LV Status              NOT available
  LV Size                1.04 TiB
  Current LE             271730
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto


此外,还有关于驱动 LVMVolumeDriver未初始化的报错,请问这两者相关吗?怎么解决

已有(1)人评论

跳转到指定楼层
einhep 发表于 2017-11-11 13:04:12
cinder.conf核实下lvm标签,楼主找到对应版本的内容。类似下面
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = lioadm
lvm_type = auto


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条