Kubernetes/存储/Ceph/Ceph挂载文件系统.md
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

509 B

本文作者:丁辉

Ceph挂载文件系统

本文拿默认 cephfs 举例

  1. 本地安装 ceph 客户端

    • Centos

      yum install -y ceph-common
      
    • Ubuntu

      apt install -y ceph-common
      
  2. 查看 cephfs 用户密钥

    ceph auth get client.cephfs
    
  3. 挂载文件系统到本地 /mnt/ 下测试

    mount -t ceph ceph-node-1:6789:/ /mnt/ -o name=cephfs,secret=AQAHjRdmdrPAAxAAuCtGNkM/W5XAVU2rWkUz+w==