1 cephfs客户端挂载失败
1.1 kernel client挂载失败
即执行下述挂载命令
sudo mount -t ceph IP1,IP2,IP3:6789:/ /mnt/mycephfs
出现的错误。
-
wrong fs type
-
mount: wrong fs type, bad option, bad superblock on 11.154.211.212:6789:/, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so.
这种情况下说明系统缺少ceph驱动,解决方法是安装ceph。
sudo yum install ceph
-
-
mount error 5 = Input/output error
这种错误通常是ceph客户端的Linux内核版本跟ceph的版本不一致导致的。
集群使用的ceph版本是12.2.8 (ae699615bac534ea496ee965ac6192cb7e0e07c0) luminous (stable),通常情况下要求CentOS Linux内核的版本是4.0及以上。
1.2 解决方法
-
升级客户端系统内核到更高版本以匹配ceph版本
-
使用ceph-fuse进行挂载
安装ceph-fusesudo yum install ceph-fuse sudo ceph-fuse -m IP1:6789 /mnt/mycephfs