Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装失败 #14

Closed
renatozhang opened this issue Jul 20, 2020 · 22 comments
Closed

安装失败 #14

renatozhang opened this issue Jul 20, 2020 · 22 comments
Labels
question Further information is requested

Comments

@renatozhang
Copy link

General Question

安装过程中总是提示创建文件被拒绝

@renatozhang renatozhang added the question Further information is requested label Jul 20, 2020
@bai-charisu
Copy link
Contributor

你好,可以进一步描你的问题吗?安装是指部署集群吗?操作系统,ansible版本,截图补充一下呢

@renatozhang
Copy link
Author

renatozhang commented Jul 20, 2020 via email

@renatozhang
Copy link
Author

单机部署

@aspirer
Copy link
Contributor

aspirer commented Jul 20, 2020

你好 @renatozhang ,麻烦提供下详细的安装环境信息,如操作系统发行版、ansible版本等。

@aspirer
Copy link
Contributor

aspirer commented Jul 20, 2020

https://github.com/opencurve/opencurve.github.io/blob/master/image/curve-wechat.jpeg
方便的话可以加上我们的沟通群,那边回复你的问题会比较及时。

@renatozhang
Copy link
Author

renatozhang commented Jul 20, 2020 via email

@renatozhang
Copy link
Author

image

@bai-charisu
Copy link
Contributor

ansible版本是多少?我们目前只支持ansible 2.5.9下的安装

@renatozhang
Copy link
Author

renatozhang commented Jul 21, 2020 via email

@aspirer
Copy link
Contributor

aspirer commented Jul 21, 2020

能否把集群状态详情贴一下过来?

@renatozhang
Copy link
Author

renatozhang commented Jul 21, 2020 via email

@renatozhang
Copy link
Author

renatozhang commented Jul 21, 2020 via email

@renatozhang
Copy link
Author

renatozhang commented Jul 21, 2020 via email

@bai-charisu
Copy link
Contributor

硬盘怎么添加到curve中去$ curve_ops_tool status curve_ops_tool: /lib64/libcurl.so.4: no version information available (required by /lib64/libaws-cpp-sdk-core.so) Cluster status: Get status metric from 127.0.0.1:8081 fail No snapshot-clone-server is active snapshot-clone-server 127.0.0.1:5556 is offline cluster is not healthy total copysets: 100, unhealthy copysets: 0, unhealthy_ratio: 0% physical pool number: 1, logical pool number: 1 total space = 0GB, logical used = 0GB(0.00%, can be recycled = 0GB(0.00%)), physical used = 0GB(0.00%) Client status:  MDS status: version: 0.1.1 current MDS: 127.0.0.1:6666 online mds list: 127.0.0.1:6666 offline mds list:  Etcd status: version: 3.4.0 current etcd: 127.0.0.1:2379 online etcd list: 127.0.0.1:2379 offline etcd list:  SnapshotCloneServer status: no version found! GetAndCheckSnapshotCloneVersion fail Get status metric from 127.0.0.1:8081 fail current snapshot-clone-server:  online snapshot-clone-server list:  offline snapshot-clone-server list: 127.0.0.1:5556 ChunkServer status: version: 0.1.1 chunkserver: total num = 3, online = 3, offline = 0(recoveringout = 0, chunkserverlist: []) left size: min = 0GB, max = 0GB, average = 0.00GB, range = 0GB, variance = 0.00

------------------ 原始邮件 ------------------ 发件人: "Wangpan"<notifications@github.com>; 发送时间: 2020年7月21日(星期二) 晚上6:39 收件人: "opencurve/curve"<curve@noreply.github.com>; 抄送: "Z"<865548937@qq.com>; "Mention"<mention@noreply.github.com>; 主题: Re: [opencurve/curve] 安装失败 (#14) 能否把集群状态详情贴一下过来? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

你好,从工具的显示来看是正常的,集群不健康是因为快照克隆服务没有部署,如果不需要快照功能,可以忽略这个错误。
你说的添加磁盘到curve是指添加物理磁盘给chunkserver用吗?还是创建一个curve的云硬盘?

@renatozhang
Copy link
Author

renatozhang commented Jul 21, 2020 via email

@bai-charisu
Copy link
Contributor

chunkserver和磁盘对应是在部署的时候就指定的,部署结束以后只能通过扩容的方式增加磁盘以及对应的chunkserver。
我们的curve-ansible目前提供了两种部署方式,单机部署和多机部署。单机部署默认是不挂盘的,只是创建一个data目录,多机部署默认是预格式化所有磁盘,有几个磁盘就部署几个chunkserver。
请问你是单机部署还是多机部署,是只想挂载一部分磁盘还是全部数据盘?

@renatozhang
Copy link
Author

部署结束以后只能通过扩容的方式增加磁盘以及对应的chunkserver 是不是重新执行playbook 还是怎么操作

@bai-charisu
Copy link
Contributor

单机部署只是个demo,不支持扩容。多机部署的情况扩容比较复杂,文档和自动化都还在整理中。

@renatozhang
Copy link
Author

renatozhang commented Jul 22, 2020 via email

@bai-charisu
Copy link
Contributor

在实际的生产环境中,chunkserver需要将盘的部分空间(我们一般是80%)格式化成chunkFilePool,剩余的空间用于存放braft的WAL等数据。因此chunkserver能够用到的容量不是分区的容量大小而是chunkFilePool的容量。curve_ops_tool中统计的容量是chunkFilePool的容量,单机部署的情况下没有chunkFilePool,所以显示为0。

如果想要挂载全部数据盘的话,参考部署文档 中的多机部署步骤,格式化chunkFilePool,挂盘都可以自动化完成的。

我们是通过文件系统读写的,所以nvme也是支持的

@renatozhang
Copy link
Author

[curve@curve curve-ansible]$ sudo curve create --filename /test --length 10 --user curve
Traceback (most recent call last):
File "curvefs_tool.py", line 20, in
import curvefs
File "/usr/curvefs/curvefs.py", line 37, in
_curvefs = swig_import_helper()
File "/usr/curvefs/curvefs.py", line 36, in swig_import_helper
return importlib.import_module('_curvefs')
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: libunwind.so.8: cannot open shared object file: No such file or directory

@wu-hanqing
Copy link
Contributor

[curve@curve curve-ansible]$ sudo curve create --filename /test --length 10 --user curve
Traceback (most recent call last):
File "curvefs_tool.py", line 20, in
import curvefs
File "/usr/curvefs/curvefs.py", line 37, in
_curvefs = swig_import_helper()
File "/usr/curvefs/curvefs.py", line 36, in swig_import_helper
return importlib.import_module('_curvefs')
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: libunwind.so.8: cannot open shared object file: No such file or directory

查看一下libunwind软件包有没有安装,如果没有尝试从软件源或者编译安装。
如果已经安装,看一下libunwind.so.8的目录,把目录加到LD_LIBRARY_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants