
Ceph
Ceph是一个统一的分布式存储系统
mixboot
“种一棵树最好的时间是十年前,其次是现在。”
展开
-
CentOS本机配置为时间源 chrony
CentOS本机配置为时间源原创 2025-02-11 20:35:28 · 474 阅读 · 0 评论 -
ceph 数据恢复和回填速度 重建osd 加快数据恢复
ceph 数据恢复和回填速度 重建osd 加快数据恢复原创 2022-11-03 16:00:28 · 2410 阅读 · 0 评论 -
ceph 删除 osd 重新添加 osd down 重建
ceph 删除 osd 重新添加 osd down 重建原创 2022-11-03 14:37:02 · 1927 阅读 · 0 评论 -
ceph 同步时间
health: HEALTH_WARN 32 slow ops, oldest one blocked for 4107 sec, daemons [mon.k093,mon.k094,mon.k095] have slow ops.# ceph health detailHEALTH_WARN 32 slow ops, oldest one blocked for 4422 sec, daemons [mon.k093,mon.k094,mon.k095] have slow原创 2021-10-07 11:34:50 · 986 阅读 · 0 评论 -
ceph 卸载
apt install -y ceph-deployceph-deploy purge hostnameceph-deploy purge `hostname`umount /var/lib/ceph/osd/*umount /var/lib/ceph/osd/*rm -rf /var/lib/ceph/osd/*rm -rf /var/lib/ceph/mon/*rm -rf /var/lib/ceph/mds/*rm -rf /var/lib/ceph/bootstrap-mds原创 2021-05-10 11:39:48 · 1223 阅读 · 0 评论 -
ceph 13.2.10 在线修改参数 osd 心跳时间设置 内存限制
ceph 在线修改参数修改OSD心跳OSD设置维护模式osd_heartbeat_intervalosd_heartbeat_gracemon_osd_min_down_reporters修改OSD心跳OSD 抖动严重ceph -vceph version 13.2.10OSD设置维护模式ceph osd set nooutosd_heartbeat_interval同一个PG的OSD 才会相互心跳检测默认值ceph daemon mon.k213 config show | g原创 2021-04-15 02:23:06 · 1449 阅读 · 2 评论 -
ceph-deploy 安装报错 wget 安装
ceph-deploy 安装报错1.ceph-deploy 安装报错2.wget 没有正常安装1.ceph-deploy 安装报错# ceph-deploy install k021[k021][INFO ] installing Ceph on k021[k021][INFO ] using custom repository location: http://mirrors.163.com/ceph/debian-mimic/[k021][INFO ] Running command:原创 2021-02-22 13:43:47 · 361 阅读 · 0 评论 -
ceph clock skew detected on mon
# ceph -sclock skew detected on mon# ceph health detailclock skew 0.0573631s > max 0.05s (latency 0.000725198s)ubuntuapt install ntpsec -y参考:NTP原创 2021-02-20 17:02:49 · 1008 阅读 · 0 评论 -
OSD_SLOW_PING_TIME_BACK Long heartbeat ping times on back interface seen
health: HEALTH_WARN Long heartbeat ping times on back interface seen, longest is 22355.097 msec Long heartbeat ping times on front interface seen, longest is 22418.068 msec# ceph health detailHEALTH_WARN Long heartbeat ping t...原创 2021-01-10 10:38:50 · 4019 阅读 · 1 评论 -
ceph HEALTH_ERR 1 scrub errors
ceph HEALTH_ERR 1 scrub errorsceph health detailceph pg repairpg repair 需要等待几分钟ceph health detail# ceph health detailHEALTH_ERR 1 scrub errors; Possible data damage: 1 pg inconsistentOSD_SCRUB_ERRORS 1 scrub errorsPG_DAMAGED Possible data damage: 1 pg原创 2021-01-07 10:04:29 · 1259 阅读 · 0 评论 -
ceph HEALTH_WARN slow ops
ceph HEALTH_WARN slow opsHEALTH_WARN重启monHEALTH_WARN health: HEALTH_WARN 2 slow ops, oldest one blocked for 116154 sec, mon.k093 has slow opsceph health detail# ceph health detailHEALTH_WARN 2 slow ops, oldest one blocked for 116369 s原创 2021-01-05 10:04:21 · 2216 阅读 · 0 评论 -
ceph 调整 PG 平衡 集群数据分布自动进行调整
ceph 调整 PG 平衡ceph mgr module ls# ceph mgr module ls{ "enabled_modules": [ "balancer", "crash", "dashboard", "iostat", "restful", "status" ], "disabled_modules": [ { "name":原创 2021-01-02 10:56:04 · 1694 阅读 · 0 评论 -
osd max backfills
ceph version# ceph -vceph version 13.2.10 mimic (stable)osd max backfills# ceph daemon osd.0 config show | grep osd_max_backfills 一个OSD允许的最大backfills数 "osd_max_backfills": "1", # ceph daemon osd.0 config show | grep osd_recovery_max_active 同一时间内活原创 2020-12-29 16:35:03 · 1301 阅读 · 0 评论 -
too few PGs per OSD (21 < min 30)
too few PGs per OSD 21 < min 30ceph versionceph version# ceph -vceph version 13.2.10 mimic (stable)原创 2020-12-28 14:31:37 · 452 阅读 · 0 评论 -
Ubuntu 18.04.5 安装 Ceph mimic 13.2.10 CephFS 自动挂载
Ubuntu 18.04.5 安装 Ceph mimic 13.2.10 CephFS 自动挂载1,CephFS 内核挂载2,CephFS 开机自动挂载1,CephFS 内核挂载查看key,保存到/etc/ceph/admin.secretceph auth export client.admin查看monceph mon dump内核挂载mount -t ceph 192.168.1.3:6789,192.168.1.4:6789,192.168.1.5:6789:/ /ce原创 2020-09-24 11:13:21 · 616 阅读 · 0 评论 -
ceph mimic 13.2.10 mon 添加报错
报错[ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directoryceph-deploy new --public-network 192.168.1.0/24 node1 node2 node3ceph-deploy --overwrite-conf mon create-initial参考:ceph-deploy部署ceph集群...原创 2020-09-23 23:59:11 · 1245 阅读 · 0 评论 -
ceph 删除 osd
# ceph --versionceph version 12.2.13 luminous (stable)# ceph osd tree0 hdd 7.27739 osd.0 up 1.00000 1.00000# ceph osd out 0marked out osd.0.# ceph osd tree 0 hdd 7.27739 osd.0 up 0 1.00000等待数据迁移# ceph原创 2020-08-28 17:28:13 · 1622 阅读 · 1 评论 -
ceph osd down
# ceph --versionceph version 12.2.13 luminous (stable)ceph osd tree原创 2020-08-27 10:11:17 · 470 阅读 · 1 评论 -
ceph fuse 挂载
ceph fuse 挂载1,ceph fuse 挂载1,ceph fuse 挂载# mkdir -p /etc/ceph# scp root@192.168.1.100:/etc/ceph/ceph.conf /etc/ceph/ceph.conf# scp root@192.168.1.100:/etc/ceph/ceph.client.admin.keyring /etc/ceph/ceph.client.admin.keyring# mkdir /cephfs/# apt inst原创 2020-08-15 16:13:22 · 2052 阅读 · 0 评论 -
ceph mon 重启 osd 状态
systemctl status ceph-mon@k02.servicesystemctl restart ceph-mon@k02.service原创 2020-07-21 23:54:16 · 2691 阅读 · 0 评论 -
CEPH仪表板监控
# ceph mgr module enable dashboardvim ceph.conf 增加配置[mgr]mgr modules = dashboard默认监听端口7000# netstat -antp | grep 7000tcp6 0 0 :::7000 :::* LISTEN 104863/ceph-mgr参考:CEPH仪表板Ceph可视化管理dashboa原创 2020-07-17 10:58:51 · 560 阅读 · 0 评论 -
Ceph 运维手册
Ceph 运维手册原创 2020-07-17 09:24:02 · 788 阅读 · 0 评论 -
Ubuntu 18.04.4 安装 ceph v12.2.13 Luminous
Ubuntu 18.04.4 安装 ceph1,安装`ceph-deploy`2,`ceph-deploy`节点配置免密钥登陆到其它节点3,ceph搭建~~3.1,清除ceph配置~~3.2,创建集群1,安装ceph-deploy# wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -OK# echo deb https://download.ceph.com/debian-luminous/ $(原创 2020-07-16 18:03:40 · 3369 阅读 · 8 评论 -
ceph 版本
最新版本v12.2.5 LuminousCEPH RELEASES原创 2020-07-15 18:00:54 · 609 阅读 · 0 评论 -
ubuntu 18.04 搭建ceph luminous 12.2.12 Ceph 文件系统
ubuntu 18.04 搭建ceph luminous 12.2.12 Ceph 文件系统1,ubuntu 18.04 搭建ceph luminous 12.2.12 Ceph 文件系统2,挂载 CEPH 文件系统1,ubuntu 18.04 搭建ceph luminous 12.2.12 Ceph 文件系统# ceph -s cluster: id: 5df0ea22-...原创 2020-04-01 14:24:53 · 881 阅读 · 0 评论 -
ceph luminous 12.2.12 HEALTH_WARN
ceph luminous 12.2.12 HEALTH_WARN1,ceph luminous 12.2.12 HEALTH_WARN1,ceph luminous 12.2.12 HEALTH_WARN health: HEALTH_WARN application not enabled on 1 pool(s)# ceph health detail...原创 2020-03-15 17:50:55 · 358 阅读 · 0 评论 -
ubuntu 18.04 搭建ceph luminous 12.2.12 创建存储池 块设备
ceph 搭建 ubuntu 18.04 块设备 创建1,ceph 搭建 ubuntu 18.04 块设备 创建1,ceph 搭建 ubuntu 18.04 块设备 创建参考:ceph 搭建 ubuntu 18.04 osd 创建原创 2020-03-11 20:07:07 · 807 阅读 · 0 评论 -
ubuntu 18.04 搭建ceph luminous 12.2.12 创建OSD
ceph 搭建1,ubuntu搭建ceph1,ubuntu搭建ceph参考:Ceph文档Github Ceph原创 2020-03-08 16:07:28 · 2199 阅读 · 0 评论 -
systemctl 管理ceph进程
1. 重启monitor# systemctl status vcfs-mon@node1systemctl status vcfs-mon[tab自动补全]systemctl status vcfs-mon@主机名原创 2017-08-30 19:26:34 · 542 阅读 · 0 评论 -
ceph 统计集群文件数
1. ceph 文件数# getfattr -d -m ".*" /cephceph.dir.entries="1"ceph.dir.files="1" #文件数统计为1ceph.dir.rbytes="0"ceph.dir.rctime="0.090"ceph.dir.rentries="1"ceph.dir.rfiles="0"ceph.dir.rsubdirs="原创 2017-09-25 16:22:50 · 970 阅读 · 0 评论 -
ceph 文件数统计
getfattr -d -m ‘.*’ /集群目录原创 2017-08-31 17:04:15 · 804 阅读 · 0 评论 -
ceph 内核挂载 客户端fue挂载
1. 内核挂载# mkdir fattr# mount -t ceph 10.0.0.244,10.0.0.246,10.0.0.249:/ /fattr -o vcfs_quota=32. 客户端fuse挂载usage: vcfs-fuse [-m mon-ip-addr:mon-port] <mount point> [OPTIONS] # mkdir fattr_fuse# vcfs-原创 2017-08-30 08:36:45 · 1680 阅读 · 1 评论 -
fio 测试ceph块设备性能
1. 安装fio这里写代码片参考: 1.块设备性能测试原创 2017-09-01 11:32:27 · 1626 阅读 · 0 评论 -
ceph 存储池PG查看和PG存放OSD位置
1. 查看PG# vcfs pg stat# vcfs pg dump2. pg映射OSD位置# vcfs pg map 1.1ffosdmap e99 pg 1.1ff (1.1ff) -> up [8,5] acting [8,5]#【8,5】指osd.8和osd.5 2副本,osd.8为主副本参考: 1.ceph运维常用指令原创 2017-09-22 10:42:55 · 4337 阅读 · 1 评论 -
ceph rados 创建存储池 存储池对象查看
1. rados命令查看存储池# rados lspools# ceph osd pool ls# ceph osd lspools查看存储池使用情况# rados df 存储池使用情况# rados mkpool testpool 新建存储池# rados create testob原创 2017-09-06 19:08:30 · 5231 阅读 · 0 评论 -
ceph 副本数据的写入位置和读出
ceph. 创建一个小于4M的文件/test.txthello world2. 创建存储池# ceph osd pool create test_pool_ceph 1283. 上传对象# rados -p test_pool_ceph put object_1 /test.txt# rados -p test_pool_ceph lsobject_14. 查看对象的pg map# ceph原创 2017-09-22 13:08:28 · 2874 阅读 · 0 评论 -
ceph 清除flashcache
dmsetup remove_all原创 2017-10-10 15:15:18 · 561 阅读 · 0 评论 -
ntpconf
#cat /etc/ntp.confdriftfile /var/lib/ntp/drift#系统时间与BIOS事件的偏差记录 restrict default nomodify #default 指所有的IP#restrict 控制权限#nomodify 客户端不能更改 服务端的时间参数,但是客户端可以通过服务端校队时间restrict 127.0.0.1 logfile /var/log/n原创 2017-07-27 18:01:02 · 468 阅读 · 0 评论 -
ceph dd 测试读写
1. ceph扩展1.1 ceph基准测试集群的读、写、延迟、负载各节点硬件性能测试:磁盘、网络1.2 磁盘性能基准单个磁盘的性能一个OSD节点中所有磁盘的性能单个磁盘写能力#conv=fsync 不是每写一次都要同步一次,在dd命令结束前同步data和metadata(写入数度快) #oflag=dsync 每写一次都要等到这一次写入磁盘,才能进行下一次写(写入速度慢)2. 测试写原创 2017-07-11 00:11:31 · 1688 阅读 · 0 评论 -
Ceph 状态查询
1. Ceph安装状态查询#ceph -s#ceph -status2. 集群健康状态ceph -w3. Ceph monitor 仲裁状态ceph原创 2017-07-29 16:28:18 · 944 阅读 · 0 评论