https://ceph-users.ceph.narkive.com/EgcYJhbG/hammer-0-94-1-still-getting-feature-set-mismatch-for-cephfs-mount-requests

https://blog.51cto.com/michaelkang/1675822

Client挂载方式有两种:内核kernal方式和fuse方式。(内核挂载方式需要2.6.34及其以后的版本才支持)

使用fuse方式挂载(注意:此方式读写效率很低)

centos6.8要成功挂载cephfs
1需要升级内核
2需要在ceph节点执行ceph osd crush tunables hammer
3然后用mount挂载

设置好源

[root@cu-dbs-161 yum.repos.d]# cat ceph.repo
[ceph]
name=ceph
baseurl=http://download.ceph.com/rpm-hammer/el6/x86_64/
gpgcheck=0

[ceph-noarch]
name=cephnoarch
baseurl=http://download.ceph.com/rpm-hammer/el6/noarch/
gpgcheck=0
[root@cu-dbs-161 yum.repos.d]# cat 163.repo
[ceph]
name=Ceph noarch packages
baseurl=http://mirrors.163.com/ceph/rpm-hammer/el6/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.163.com/ceph/keys/release.asc

安装软件

yum install ceph-fuse

升级内核
[root@cu-dbs-161 ceph]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
[root@cu-dbs-161 ceph]#
[root@cu-dbs-161 ceph]# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

[root@cu-dbs-161 ceph]# yum --enablerepo=elrepo-kernel -y install kernel-lt

[root@cu-dbs-161 ceph]# vi /boot/grub/grub.conf
将内核修改为4.0的,其实就是将defaults=0就可以了
[root@cu-dbs-161 ceph]# reboot

[root@cu-dbs-151 ~]# modprobe ceph
[root@cu-dbs-151 ~]# lsmod |grep ceph
ceph 175251 0
libceph 161546 1 ceph
libcrc32c 1388 1 libceph
fscache 57792 1 ceph

在ceph节点上执行下面这个命令,客户端就可以挂载了
root@cu-pve04:/etc/ceph# ceph osd crush tunables hammer
adjusted tunables profile to hammer

==============================================
ceph osd crush tunables optimal

ceph osd crush show-tunables
ceph osd crush tunables legacy|argonaut|bobtail|firefly|hammer|jewel|optimal|default set crush tunables values to <profile>
ceph osd crush get-tunable straw_calc_version

May 13 17:52:24 cu-dbs-161 kernel: libceph: mon0 192.168.7.4:6789 feature set mismatch, my 107b84a842aca < server's 40107b84a842aca, missing 400000000000000
May 13 17:52:24 cu-dbs-161 kernel: libceph: mon0 192.168.7.4:6789 missing required protocol features
May 13 17:57:07 cu-dbs-161 kernel: libceph: no secret set (for auth_x protocol)
May 13 17:57:07 cu-dbs-161 kernel: libceph: error -22 on auth protocol 2 init
May 13 17:57:07 cu-dbs-161 kernel: libceph: client2428503 fsid 6e731e21-ac3a-493b-84bf-95f54481449c
May 13 17:58:07 cu-dbs-161 kernel: libceph: client2428569 fsid 6e731e21-ac3a-493b-84bf-95f54481449c
May 13 17:58:07 cu-dbs-161 kernel: libceph: mon0 192.168.7.4:6789 session established

==============================================

[root@cu-dbs-161 ceph]# mount -t ceph 192.168.7.4:6789:/ /ceph -o name=admin,secretfile=admin.keyring
[root@cu-dbs-161 ceph]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 83G 3.8G 75G 5% /
tmpfs 7.9G 72K 7.9G 1% /dev/shm
/dev/sda1 190M 74M 102M 42% /boot
192.168.7.4:6789:/ 53T 693G 52T 2% /ceph
[root@cu-dbs-161 ceph]# cd /ceph/
[root@cu-dbs-161 ceph]# ls
dump fileserver template
[root@cu-dbs-161 fileserver]# lsmod |grep ceph
ceph 174958 1
libceph 161546 1 ceph
libcrc32c 1388 1 libceph
fscache 57792 1 ceph

添加到开机启动项
vi /etc/fstab
192.168.7.4:6789,192.168.7.5:6789,192.168.7.6:6789:/ /ceph ceph name=admin,secretfile=/etc/ceph/admin.keyring 0 0

[root@cu-dbs-151 ceph]# cat admin.keyring
AQBR8NRcZL6tLhAAnuB+OPbBdI+t3G5B1beLHA==

这是个bug,不能用secretfile参数,或者直接在命令行上跟密钥。或者禁用ceph的认证

https://bugzilla.redhat.com/show_bug.cgi?id=1030402

[root@cu-dbs-151 ceph]# mount -t ceph 192.168.7.4:6789:/ /ceph -o name=admin,secretfile=admin.keyring
mount: wrong fs type, bad option, bad superblock on 192.168.7.4:6789:/,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@cu-dbs-151 ceph]# dmesg |tail
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Adding 16777212k swap on /dev/sda2. Priority:-1 extents:1 across:16777212k FS
audit: type=1305 audit(1561542914.822:3): audit_pid=3210 old=0 auid=4294967295 ses=4294967295 res=1
FS-Cache: Loaded
Key type ceph registered
libceph: loaded (mon/osd proto 15/24)
FS-Cache: Netfs 'ceph' registered for caching
ceph: loaded (mds proto 32)
libceph: bad option at 'secretfile=admin.keyring'
libceph: bad option at 'secretfile=admin.keyring'

[root@cu-dbs-151 ceph]# mount -t ceph 192.168.7.4:6789:/ /ceph -o name=admin,secret=AQBR8NRcZL6tLhAAnuB+OPbBdI+t3G5B1beLHA==
[root@cu-dbs-151 ceph]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 83G 3.6G 75G 5% /
tmpfs 16G 72K 16G 1% /dev/shm
/dev/sda1 190M 74M 103M 42% /boot
192.168.7.4:6789:/ 53T 945G 52T 2% /ceph

cs6.8-oracle挂载ceph的更多相关文章

  1. kubernetes挂载ceph rbd和cephfs的方法

    目录 k8s挂载Ceph RBD PV & PVC方式 创建secret 创建PV 创建PVC 创建deployment挂载PVC StorageClass方式 创建secret 创建Stor ...

  2. 记一次centos挂载ceph存储的坑

    起因 生产有两台服务器,准备用来跑工作流,执行的资源的是放在ceph存储集群中,第一步挂载ceph 执行命令:mount -t ceph xxx:xxx -o name=admin,secret=AQ ...

  3. kubernetes 容器挂载 ceph rbd 卷的平滑扩容方法

    https://blog.csdn.net/aixiaoyang168/article/details/79120095

  4. 架构设计:系统存储(28)——分布式文件系统Ceph(挂载)

    (接上文<架构设计:系统存储(27)--分布式文件系统Ceph(安装)>) 3. 连接到Ceph系统 3-1. 连接客户端 完毕Ceph文件系统的创建过程后.就能够让客户端连接过去. Ce ...

  5. Ceph的客户端安装

    Contents [hide] 1 参考 1.1 ceph端口访问控制 1.2 用Kernel方式挂载 1.2.1 安装ELRepo及kernel-lt 1.2.2 修改Grub引导顺序并重启动 1. ...

  6. Ceph的客户端丢失文件夹的解决办法

    原来的解决办法 更新linux内核,使用linux内核级的mount方式,一段时间后将会在客户端看不到部分长期不使用的文件夹 更正后的解决办法 参考Ceph的客户端安装设置ceph-fuse方式挂载c ...

  7. centos6.4 ceph安装部署之cephFS

    1,ceph fileSystem

  8. Ceph RBD CephFS 存储

    Ceph RBD  CephFS 存储 环境准备: (这里只做基础测试, ceph-manager , ceph-mon, ceph-osd 一共三台) 10.6.0.140 = ceph-manag ...

  9. CentOS 7 x64 安装 Ceph

    CentOS 7  x64 安装 Ceph 二, 实验环境 节点            IP                 主机名                  系统 MON         1 ...

随机推荐

  1. smart_ptr之shared_ptr

    智能指针的概念 c++11标准和boost都提供了智能指针的功能.智能指针是普通指针的封装,智能指针是一个对象,对象里面包含了原生指针.可以使用智能指针对象的get()方法可获得封装在里面的原生指针. ...

  2. Kubernetes的核心技术概念和API对象

    Kubernetes的核心技术概念和API对象 API对象是K8s集群中的管理操作单元.K8s集群系统每支持一项新功能,引入一项新技术,一定会新引入对应的API对象,支持对该功能的管理操作.例如副本集 ...

  3. 用js刷剑指offer(二维数组中的查找)

    题目描述 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序.请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数 ...

  4. #Python语言程序设计Demo - 七段数码管绘制

    Python设计七段数码管绘制 单个数码管效果: 设计总数码管效果: Pyhton 编程: #七段数码管绘制 import turtle as t import time as T def drawG ...

  5. pyqt pyside qcombobox disable wheel scrolling

    pyqt pyside qcombobox disable wheel scrolling import sys from PyQt5 import QtCore, QtWidgets import ...

  6. 0008SpringBoot中的spring.config.location对于运维的用处

    在工作过程中,若项目已经打好包,application.properties中的配置文件已经不能修改,但是还是需要修改一些参数或者新增一些参数的情况下怎么办? 可以单独再定义一个配置文件,比如定义名称 ...

  7. ACM-ICPC 2018 徐州赛区现场赛 I. Rikka with Sorting Networks (思维+DFS)

    题目链接:https://codeforces.com/gym/102012/problem/I 题意:问有多少个 1 到 n 的排列,使得用给定的 k 个比较器(使 au 和 av 有序)排序后,整 ...

  8. JQuery 实践---创建元素包装集

    1. 利用选择器,选择将被JQuery包装的元素 标识和选择DOM元素.JQuery采用我们已经知道的CSS语法并且扩展了一些.为了利用JQuery来选择元素,请把选择器包装在$()中. 基本CSS选 ...

  9. SIGAI深度学习第二集 人工神经网络1

    讲授神经网络的思想起源.神经元原理.神经网络的结构和本质.正向传播算法.链式求导及反向传播算法.神经网络怎么用于实际问题等 课程大纲: 神经网络的思想起源 神经元的原理 神经网络结构 正向传播算法 怎 ...

  10. Codeforces Round #590 (Div. 3)【D题:维护26棵树状数组【好题】】

    A题 题意:给你 n 个数 , 你需要改变这些数使得这 n 个数的值相等 , 并且要求改变后所有数的和需大于等于原来的所有数字的和 , 然后输出满足题意且改变后最小的数值. AC代码: #includ ...