zoukankan      html  css  js  c++  java
  • ceph问题汇总

    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-10.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 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分钟左右即可。
  • 相关阅读:
    JSON 序列化类 南京酷得软件
    哈哈哈哈哈哈 找回记忆
    Presto
    (转)在Total Commander下使用SVN
    在ubuntu12.04,64位中安装lnmp一键包mysql的问题
    阿里云服务器上搭建php环境+redis
    在ubuntu12.04,64位中安装nginx+php+redis+mysql
    Redis篇:单线程I/O模型
    工具篇:apachehttpClient 和 jdk11HttpClient的使用
    技能篇:关于缓存数据的一致性探讨
  • 原文地址:https://www.cnblogs.com/navysummer/p/11016686.html
Copyright © 2011-2022 走看看