创建 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

CEPH安装教程(下)

相关文章:

  • 2021-08-30
  • 2021-04-21
  • 2021-11-22
  • 2021-11-20
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-05-26
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案