CEPH安装教程(下)

创建 CEPH 文件系统

创建存储池

# ceph osd pool create cephfs_data 64
# ceph osd pool create cephfs_metadata 64

创建文件系统

# ceph fs new cephfs cephfs_metadata cephfs_data
# ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]

查询MDS服务

# ceph mds stat
cephfs-1/1/1 up  {0=anode=up:active}

挂载CephFS文件系统

创建挂载目录

# mkdir -p /mnt/cephfs

方式一

# mount -t ceph 92.0.0.11:6789,92.0.0.12:6789,92.0.0.13:6789:/ /mnt/cephfs

故障处理

mount失败

命令行报错信息:error 5 = Input/output error

集群状态正常:cluster(HEALTH_OK)、services(cephfs-1/1/1 up)、data(active+clean),日志没有ERR消息,但是mount节点的dmesg有错误信息,据此推断是CEPH内核模块版本不匹配导致的,需要重新安装CEPH

posted @ 2018-05-25 10:41  银魔术师  阅读(627)  评论(0编辑  收藏  举报