redhatDocument

Posted Jason__Zhou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhatDocument相关的知识,希望对你有一定的参考价值。

红帽文档阅读

redhat ceph 文档

发布说明

  • 通过Ansible进行安装
  • OSD BLUESTORE技术预览

安装说明

在redhat上安装ceph

  • 全局设置

[global]
fsid =
mon initial members = [, ]
mon host = [, ]
public network = [, ]
cluster network = [, ]
auth cluster required = cephx
auth service required = cephx
auth client required = cephx
osd journal size =
filestore xattr use omap = true
osd pool default size = # Write an object n times.
osd pool default min size = # Allow writing n copy in a
degraded state.
osd pool default pg num =
osd pool default pgp num =
osd crush chooseleaf type =

  • osd设置

    • 创建osd默认目录

    mkdir /var/lib/ceph/osd/ceph-0

    • 准备作为硬盘的osd,挂载到创建的目录上.

    parted /dev/sdb mklabel gpt

    parted /dev/sdb mkpart primary 1 10000

    parted /dev/sdb mkpart primary 10001 15000

    mkfs -t xfs /dev/sdb1

    mount -o noatime /dev/sdb1 /var/lib/ceph/osd/ceph-0

    echo “/dev/sdb1 /var/lib/ceph/osd/ceph-0 xfs defaults,noatime

    1 2” >> /etc/fstab

管理员指导手册

  • 用户管理

    [ceph_user@admin-node my-cluster] cephosddfIDWEIGHTREWEIGHTSIZEUSEAVAIL00.039991.0000039508M8082M31426M20.461.0010.039991.0000039508M8081M31427M20.451.0020.039991.0000039508M8081M31427M20.451.00TOTAL115G24244M94281M20.45MIN/MAXVAR:1.00/1.00STDDEV:0.00[cephuser@adminnodemycluster]

  • 显示规则

    ceph osd crush rule list
    ceph osd crush rule ls

  • pool 快照

    [ceph_user@admin-node ~] cephosdpoolmksnaptestsnaptestcreatedpooltestsnapsnaptest[cephuser@adminnode ]

    • 删除pool快照

    ceph osd pool rmsnap

以上是关于redhatDocument的主要内容,如果未能解决你的问题,请参考以下文章