![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ceph
破竹15
技能简介
1.HTML/5
2.CSS/3
3.JavaScript/jQuery/Echarts/TypeScript
4.Java/Android
5.C/C++/graphics/Sgl/epoll/Qt
6.Python3/channels/Django
7.Linux/Shell
8.ceph/nfs-ganesha
9.opengl/CocosCreator3.x
展开
-
ceph配置部署
环境说明:ip服务主机名备注172.20.101.5cephceph-deploy\monadmin-node mon节点 集群节点172.20.101.13cephceph1osd172.20.101.15cephceph2osd环境准备:1关闭selinux和iptables systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i '/原创 2020-11-02 11:19:43 · 1497 阅读 · 1 评论 -
ceph问题整理
1. mount -t nfs4 127.0.0.1:/ /mnt/test/ 时,遇到mount.nfs4: Connection refused查看nfs服务是否开启systemctl status nfssystemctl start nfs2. mount -t nfs4 127.0.0.1:/ /mnt/test/ 时,遇到mount.nfs4: access denied by server while mounting 127.0.0.1:/修改配置文件/etc/expor原创 2020-11-03 13:34:14 · 516 阅读 · 0 评论 -
脚本一键部署ceph单节点集群(用于测试)
前提是先安装好ceph环境打开虚拟机前先增加20G磁盘,一般第一次添加的磁盘在centos中会命名为/dev/sda3,如果不符合,自己改下↓ #关闭selinux和iptables systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config setenforce 0 #设置时间同步 yum -y i原创 2020-12-24 15:55:21 · 1388 阅读 · 1 评论 -
ceph-mgr源码分析------MgrStandby类
1.MgrStandby类截取部分代码分析:MgrStandby::init()int MgrStandby::init(){ init_async_signal_handler(); register_async_signal_handler(SIGHUP, sighup_handler); std::lock_guard l(lock); // Start finisher finisher.start(); // Initialize Messenger cl原创 2021-04-29 17:32:28 · 575 阅读 · 0 评论 -
ceph命令执行源码IO路径
1.命令入口:脚本 /usr/bin/ceph/usr/bin/ceph 在源代码中的文件是ceph.in...import argparse import rados...from ceph_argparse import \ concise_sig, descsort_key, parse_json_funcsigs, \ validate_command, find_cmd_target, \ json_command, run_in_thread, Flag.原创 2021-04-29 10:22:17 · 341 阅读 · 0 评论 -
ceph集群整体iostat数据统计流程
osd收集stats数据代码位置:OSD.cc::collect_pg_stats()mgr接受reportbool DaemonServer::ms_dispatch(Message *m){ switch (m->get_type()) { case MSG_PGSTATS: cluster_state.ingest_pgstats(static_cast<MPGStats*>(m)); //填充PGMap::Incremental *pending_i原创 2021-04-08 15:58:07 · 732 阅读 · 0 评论 -
ceph命令收集
List itemsystemctl start ceph-mon@mon.ceph1.servicesystemctl start ceph-mds@mds.ceph1.servicesystemctl status ceph-radosgw@rgw.ceph1systemctl status ceph-osd@0.service停止集群systemctl stop ceph.target修改ceph的IP地址原创 2020-11-13 00:30:39 · 280 阅读 · 0 评论