「Rook-Ceph」- 创建共享文件系统

  CREATED BY JENKINSBOT

本文将介绍如何在Rook-Ceph之上创建共享文件系统。

挂载共享文件系统

如果想要查看共享文件系统中的数据,我们应该怎么查看呢?

首先,安装 Rook Toolbox 工具。然后进入容器执行,执行如下命令:

# Create the directory
mkdir -pv /tmp/registry

# Detect the mon endpoints and the user secret for the connection
mon_endpoints=$(grep mon_host /etc/ceph/ceph.conf | awk '{print $3}')
my_secret=$(grep key /etc/ceph/keyring | awk '{print $3}')

# Mount the file system
mount -t ceph -o mds_namespace=myfs,name=admin,secret=$my_secret $mon_endpoints:/ /tmp/registry

# See your mounted file system
df -h

参考文献

GitHub/rook/Documentation/ceph-filesystem.md
ROOK/Documentation/Ceph Storage/Shared File System
Direct Tools/Shared Filesystem Tools