学习是一个逐步发现自己无知的过程!

kernel client 形式挂载 CephFS

创建挂载目录 cephfs

  1. mkdir /cephfs

挂载目录(注意这里的key和ip)

  1. mount -t ceph 10.211.55.170:6789,10.211.55.171:6789,10.211.55.172:6789:/ /cephfs/ -o name=cephfs,secret=AQBE3ANg+SIRGxAAA+KWONcgeFAkkiGUF/gWvA==

自动挂载

  1. echo "cephnode01:6789,cephnode02:6789,cephnode03:6789:/ /cephfs ceph name=cephfs[,secretfile=/etc/ceph/cephfs.key],_netdev,noatime 0 0" | sudo tee -a /etc/fstab

验证是否挂载成功

  1. stat -f /cephfs
赞(0)
未经允许不得转载:劉大帥 » kernel client 形式挂载 CephFS
分享到: 更多 (0)

来都来了,不说点什么可不好喔! 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址