ceph问题汇总
2024-10-07 01:11:39
1.
[ceph_deploy][ERROR ]RuntimeError: Failed to execute command: yum -y install epel-release
解决方案
进入/etc/yum.repos.d中删除epel.repo和epel-testing.repo
2.
[ceph_deploy][ERROR ]RuntimeError: NoSectionError: No section: 'ceph'
解决方案
#yum -y remove ceph-release
3.
[admin-node][WARNIN] Anotherapp is currently holding the yum lock; waiting for it to exit...
解决方案
#rm -f /var/run/yum.pid
4.
RuntimeError: Failed to executecommand: yum -y install ceph ceph-radosgw
解决方案
# rpm -ivh libunwind-1.1-.el7.x86_64.rpm
5.
[ceph_deploy][ERROR ]RuntimeError: Failed to execute command: yum -y install yum-plugin-priorities
解决方案
进入/etc/yum.repos.d中删除epel.repo和epel-testing.repo
6.
TTY报错
[node1][DEBUG ] connection detected need for sudo
sudo: sorry, you must have a tty to run sudo
[node1][DEBUG ] connected to host: node1
[ceph_deploy][ERROR ] RuntimeError: remoteconnection got closed, ensure ``requiretty`` is disabled for node1
解决方案
# visudo
#Defaults requiretty
Defaults:ceph !requiretty
7.
** ERROR: error creating emptyobject store in /var/local/osd0: (13) Permission denied
[admin-node][WARNIN]
[admin-node][ERROR ] RuntimeError: com
mand returned non-zero exitstatus: 1
[ceph_deploy][ERROR ] RuntimeError: Failedto execute command: /usr/sbin/ceph-disk -v activate --mark-init systemd --mount/var/local/osd0
解决方案
在各个节点上给/var/local/osd1/和/var/local/osd1/添加权限
如下:
chmod /var/local/osd0/
chmod /var/local/osd0/*
chmod 777 /var/local/osd1/
chmod 777 /var/local/osd1/*
8.
连接超时
解决方案
[root@admin-node my-cluster]#ceph-deploy osd activatenode1:/var/local/osd1
9.
osd节点起不来
查看节点状态
[root@admin-node my-cluster]# ceph -s
[root@admin-node my-cluster]# ceph osd tree
解决方案
. 关闭防火墙
. 检查ssh无密钥登录配置
. 一般情况下,osd节点启动较慢,等待5分钟左右即可。
最新文章
- Windows服务安装
- Extjs.FormPanel
- java实现串口通讯
- pushlet
- [转载]iOS9 使用CoreLocation
- 以Web Host的方式来寄宿Web API
- 百度站长工具进击site结果页面[SITE特型]
- gcc的-D和-U参数:宏的设置与取消
- Azure IoT
- unity中的[xxxxxx]特性(Attributes)
- ML02: 机器学习KNN 算法
- 有关Java字符集编码的问题
- 环境搭建文档——Windows下的Git搭建详解
- 线程:生命周期、实现方式、start()和run()的区别!
- Python遍历文件个文件夹
- struts2 错误:Dispatcher initialization failed java.lang.RuntimeException
- Linux命令: 编辑模式移动光标
- TEXTMETRICW 结构记录
- windows环境下配置tornado
- sass快速入门 - 笔记