Docs/存储/ceph/p版本安装/11-部署MDS元数据服务.md

26 lines
No EOL
863 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

MDS守护进程用于Cephfs(文件系统)MDS采用的是主备模式即cephfs仅使用1个活跃的MDS守护进程配置MDS服务有多种方法此处介绍2种大同小异。
> 先创建CephFS然后使用placement部署MDS
```shell
## 1. 先创建CephFS池
# ceph osd pool create cephfs_data 128 128
# ceph osd pool create cephfs_metadata 64 64
## 2. 为数据池和元数据池创建文件系统
# ceph fs new cephfs cephfs_metadata cephfs_data
new fs with metadata pool 5 and data pool 4
## 3. 使用ceph orch apply 命令部署MDS服务
# ceph orch apply mds cephfs --placement="3 ceph01 ceph02 ceph03"
Scheduled mds.cephfs update...
## 最后查看状态
# ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
# ceph fs status
# ceph orch ps --daemon_type=mds
# ceph -s
## 列出服务
# ceph orch ls
```