扩展mgr节点
Ceph Manager守护进程以“Active/Standby”模式运行,部署其它ceph-mgr守护程序可确保在Active节点或其上的ceph-mgr守护进程故障时,其中的一个Standby实例可以在不中断服务的情况下接管其任务 。“ceph-deploy mgr create {new-manager-nodes}”命令可以一次添加多个Manager节点 。
把ceph-mon01节点添加为mgr节点
[cephadm@ceph-admin ceph-cluster]$ ceph-deploy mgr create ceph-mon01[ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephadm/.cephdeploy.conf[ceph_deploy.cli][INFO] Invoked (2.0.1): /bin/ceph-deploy mgr create ceph-mon01[ceph_deploy.cli][INFO] ceph-deploy options:[ceph_deploy.cli][INFO]username: None[ceph_deploy.cli][INFO]verbose: False[ceph_deploy.cli][INFO]mgr: [('ceph-mon01', 'ceph-mon01')][ceph_deploy.cli][INFO]overwrite_conf: False[ceph_deploy.cli][INFO]subcommand: create[ceph_deploy.cli][INFO]quiet: False[ceph_deploy.cli][INFO]cd_conf: <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fba72e66950>[ceph_deploy.cli][INFO]cluster: ceph[ceph_deploy.cli][INFO]func: <function mgr at 0x7fba736df230>[ceph_deploy.cli][INFO]ceph_conf: None[ceph_deploy.cli][INFO]default_release: False[ceph_deploy.mgr][DEBUG ] Deploying mgr, cluster ceph hosts ceph-mon01:ceph-mon01[ceph-mon01][DEBUG ] connection detected need for sudo[ceph-mon01][DEBUG ] connected to host: ceph-mon01[ceph-mon01][DEBUG ] detect platform information from remote host[ceph-mon01][DEBUG ] detect machine type[ceph_deploy.mgr][INFO] Distro info: CentOS Linux 7.9.2009 Core[ceph_deploy.mgr][DEBUG ] remote host will use systemd[ceph_deploy.mgr][DEBUG ] deploying mgr bootstrap to ceph-mon01[ceph-mon01][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf[ceph-mon01][WARNIN] mgr keyring does not exist yet, creating one[ceph-mon01][DEBUG ] create a keyring file[ceph-mon01][DEBUG ] create path recursively if it doesn't exist[ceph-mon01][INFO] Running command: sudo ceph --cluster ceph --name client.bootstrap-mgr --keyring /var/lib/ceph/bootstrap-mgr/ceph.keyring auth get-or-create mgr.ceph-mon01 mon allow profile mgr osd allow * mds allow * -o /var/lib/ceph/mgr/ceph-ceph-mon01/keyring[ceph-mon01][INFO] Running command: sudo systemctl enable ceph-mgr@ceph-mon01[ceph-mon01][WARNIN] Created symlink from /etc/systemd/system/ceph-mgr.target.wants/ceph-mgr@ceph-mon01.service to /usr/lib/systemd/system/ceph-mgr@.service.[ceph-mon01][INFO] Running command: sudo systemctl start ceph-mgr@ceph-mon01[ceph-mon01][INFO] Running command: sudo systemctl enable ceph.target[cephadm@ceph-admin ceph-cluster]$查看集群状态
文章插图
提示:可以看到现在集群有3个mgr;对应我们刚才加的cehp-mon01以standby的形式运行着;到此一个完整的RADOS集群就搭建好了,该集群现在有3个mon节点,3个mgr节点,10个osd;
经验总结扩展阅读
- 电脑启动不能进入系统
- ERP 系统的核心是什么?有什么作用?
- 分布式存储系统之Ceph基础
- 小米手机如何修改手机系统背景
- linux双系统启动
- 适合生产制造企业用的ERP系统有哪些?
- 制造业数字化转型,本土云ERP系统如何卡位?
- 手机系统崩溃是怎么回事?
- MES系统和ERP系统的区别是什么?
- MES系统与ERP系统信息集成有哪些原则?