ceph問題彙總

1.        node

[ceph_deploy][ERROR ]RuntimeError: Failed to execute command: yum -y install epel-release

 

解決方案app

進入/etc/yum.repos.d中刪除epel.repo和epel-testing.repo

2.ssh

[ceph_deploy][ERROR ]RuntimeError: NoSectionError: No section: 'ceph'

解決方案ui

#yum -y remove ceph-release

3.spa

[admin-node][WARNIN] Anotherapp is currently holding the yum lock; waiting for it to exit...

解決方案code

#rm -f /var/run/yum.pid

4.blog

RuntimeError: Failed to executecommand: yum -y install ceph ceph-radosgw

解決方案rem

# rpm -ivh libunwind-1.1-10.el7.x86_64.rpm

5.it

[ceph_deploy][ERROR ]RuntimeError: Failed to execute command: yum -y install yum-plugin-priorities

解決方案io

進入/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 777  /var/local/osd0/
chmod 777  /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

解決方案

1.      關閉防火牆
2.      檢查ssh無密鑰登陸配置
3.      通常狀況下,osd節點啓動較慢,等待5分鐘左右便可。
相關文章
相關標籤/搜索