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分钟左右即可。
  • 相关阅读:
    Zephyr网络协议
    Zephyr启动过程与中断响应
    CortexM处理器的一些特性记录
    qemu 使用记录
    Request与Response详解
    http请求头(Header)参数详解
    win10java环境变量配置
    逻辑运算符:与、或、非、异或
    SQL注入相关知识整理
    网页是否存在SQL注入的简单判断
  • 原文地址:https://www.cnblogs.com/navysummer/p/11016686.html
Copyright © 2011-2022 走看看