CentOS8.3 N版cephFS配置

cephFS的配置

部署好ceph后,配置ceph MDS

su - ceph -s /bin/bash
id=$(hostname)
mkdir -p /var/lib/ceph/mds/ceph-${id}
exit

id=$(hostname)
ceph auth get-or-create mds.${id} mon 'profile mds' mgr 'profile mds' mds 'allow *' osd 'allow *' > /var/lib/ceph/mds/ceph-${id}/keyring

systemctl start ceph-mds@${id}

配置cephFS

ceph fs volume create cephfs01

ceph fs status cephfs01 #查到状态正常则cephFS完成

cephFS配置完成后,客户端需要像使用nfs一样来使用,我们去另外一台机器安装客户端

dnf install centos-release-ceph-nautilus -y
dnf install ceph-fuse ceph-common -y

从ceph节点把配置文件和kering拷贝过去

scp /etc/ceph/ceph.conf ${client_ip}:/etc/ceph/ceph.conf
scp /etc/ceph/ceph.client.admin.keyring ${client_ip}:/etc/ceph/ceph.client.admin.keyring

去客户端节点进行配置,并进行挂载测试

ceph-authtool -p /etc/ceph/ceph.client.admin.keyring > admin.key
chmod 600 admin.key 
mount -t ceph ${ceph_ip}:6789:/ /mnt -o name=admin,secretfile=admin.key 
df -h  #看到挂载成功则完成

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值