Files
Kubernetes/存储/Ceph/Ceph挂载文件系统.md
2025-08-25 17:53:08 +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==