pve 中 ceph的配置
13 January 2024
PVE 中 Ceph的配置
ceph 删除 cephFS
# 1.Display the CephFS status to determine the MDS ranks.
ceph fs status
# 2.Mark the CephFS as down:
ceph fs set FS_NAME down true
# 3.Display the status of the CephFS to determine it has stopped:
ceph fs status
# 4.Fail all MDS ranks shown in the status of step one:
ceph mds fail RANK
# 5.Remove the CephFS:
ceph fs rm FS_NAME --yes-i-really-mean-it
# 6.Verify that the file system is removed:
ceph fs ls
# 7.Optional: Remove the pools that were used by CephFS.
# i.On a Ceph Monitor node, list the pools:
ceph osd pool ls
# ii.Remove the metadata pool:
ceph osd pool delete CEPH_METADATA_POOL CEPH_METADATA_POOL --yes-i-really-really-mean-it
# iii.Remove the data pool:
ceph osd pool delete CEPH_DATA_POOL CEPH_DATA_POOL --yes-i-really-really-mean-it
参考:Removing a Ceph File System using the command-line interface
Ceph操作常命令
ceph fs --help
fs fail <fs_name> bring the file system down and all of its ranks
fs reset <fs_name> [--yes-i-really-mean-it] disaster recovery only: reset to a single-MDS map
fs rm <fs_name> [--yes-i-really-mean-it] disable the named filesystem
fs rm_data_pool <fs_name> <pool> remove data pool <pool>
# 网卡启停工具
apt install ifupdown2
# debian/ubuntu安装ntp服务
apt-get install ntp
# 设置开启自启动ntp服务
systemctl enable ntpd
# 启动ntp服务命令
systemctl start ntpd
# 查看 ntp状态
systemctl status ntp.service
# 重启mon服务
systemctl restart ceph-mon.target
# 检验
ceph -s
参考:
cephfs创建和删除pool
