Ubuntu/GlusterFS:无法使用 lvcreate 从先前创建的池中创建精简配置的卷

Pri*_*ABC 3 ubuntu lvm glusterfs thinpool

我正在测试 glusterfs,并且正在遵循有关创建设置卷的指南。我在尝试创建精简配置卷时遇到错误。这是部分

使用 lvcreate 命令从先前创建的池中创建一个精简配置的卷:

例如:

lvcreate -V 1G -T gfs_vg/gfs_pool -n gfs_lv

建议在精简池中只创建一个 LV。

这是我遇到的错误:

/usr/sbin/thin_check: execvp failed: No such file or directory
Check of pool gfs_vg/gfs_pool failed (status:2). Manual repair required!
Aborting. Failed to locally activate thin pool gfs_vg/gfs_pool.
Run Code Online (Sandbox Code Playgroud)

谷歌搜索这个问题。我试图通过 修复它lvconvert,但它似乎不起作用

root@DSI:/home/main# lvconvert --repair gfs_vg/gfs_pool
/usr/sbin/thin_repair: execvp failed: No such file or directory
Repair of thin metadata volume of thin pool gfs_vg/gfs_pool failed (status:2). Manual repair required!
Run Code Online (Sandbox Code Playgroud)

有谁知道是什么问题?

Emm*_*osa 6

这两个错误都是由于缺少二进制文件。您缺少/usr/sbin/thin_check/usr/sbin/thin_repair,它们是thin-provisioning-tools软件包附带的工具。以下应该修复它:

apt-get -y install thin-provisioning-tools
Run Code Online (Sandbox Code Playgroud)