OpenStack安装cinder组件之后,报错
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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-12-18 10:49:02.417 18474 ERROR cinder.volume.manager [req-c11f4674-a11e-4192-9de3-126277fe177e - - - - -] Failed to initialize driver.: ProcessExecutionError: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvchange -a y --yes -K cinder-volumes/cinder-volumes-pool
Exit code: 5
Stdout: u''
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-12-18 10:49:02.417 18474 ERROR cinder.volume.manager Traceback (most recent call last):
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 431, in init_host
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager self.driver.check_for_setup_error()
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 308, in check_for_setup_error
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager self.configuration.lvm_suppress_fd_warnings))
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 127, in __init__
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager self.activate_lv(self.vg_thin_pool)
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 691, in activate_lv
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager run_as_root=True)
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/os_brick/executor.py", line 52, in _execute
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager result = self.__execute(*args, **kwargs)
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 123, in execute
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager return processutils.execute(*cmd, **kwargs)
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 400, in execute
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager cmd=sanitized_cmd)
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvchange -a y --yes -K cinder-volumes/cinder-volumes-pool
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager Exit code: 5
2017-12-18 10:49:02.417 18474 ERROR cinder.volume.manager Stdout: u''
2017-12-18 10:49:02.417 18474 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-12-18 10:49:02.417 18474 ERROR cinder.volume.manager
2017-12-18 10:49:02.494 18474 INFO cinder.volume.manager [req-c11f4674-a11e-4192-9de3-126277fe177e - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0)
2017-12-18 10:49:02.494 18474 ERROR cinder.utils [req-c11f4674-a11e-4192-9de3-126277fe177e - - - - -] Volume driver LVMVolumeDriver not initialized
2017-12-18 10:49:02.495 18474 ERROR cinder.volume.manager [req-c11f4674-a11e-4192-9de3-126277fe177e - - - - -] Cannot complete RPC initialization because driver isn't initialized properly.: DriverNotInitialized: Volume driver not ready.
-----------------------------------------------------------------------------------------------------------------------------------
利用LVM创建了,逻辑卷:
这是我重启后显示的
Suse-linux:/opt/dataspace # lvdisplay
--- Logical volume ---
LV Name /dev/dataspace/db2
VG Name dataspace
LV UUID MvSeQH-TnNJ-WOX5-0Ga2-aLBa-WFS5-6ZFAjm
LV Write Access read/write
LV Status NOT available
LV Size 4.98 GiB
Current LE 1275
Segments 5
Allocation inherit
Read ahead sectors auto
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
找到原因
Ubuntu's LVM packaging doesn't seem to be setup right to support thin provisioning by default.
/usr/sbin/thin_check: execvp failed: No such file or directory
/usr/sbin/thin_check is in the thin-provisioning-tools package:
http://packages.ubuntu.com/search?suite=xenial&arch=any&mode=exactfilename&searchon=contents&keywords=thin_check
The lvm2 package only Suggests thin-provisioning-tools rather than requiring it:
http://packages.ubuntu.com/xenial/lvm2
Installing the thin-provisioning-tools package should fix this.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------解决方法:
apt install thin-provisioning-tools