- 博客(9)
- 收藏
- 关注
原创 ceph volume删除失败,报错this volume is currently watched, operation not allowed
在这里插入图片描述
2022-01-11 16:56:17
1191
原创 ceph pg inconsistent
pg出现不一致,最简单的方法就是ceph health detail然后根据pgid来ceph pg repair pgid然后ceph -s检查一下,如果没有修复,那么就采用下一步根据ceph pg map pgid,找到主osd,然后停止服务,冲洗日志,重启服务# cd /var/log/ceph/# grep -Hn 'ERR' /var/log/ceph/ceph-osd.63.log(这是查看日志报错的命令)systemctl stop ceph-osd@71.servicece.
2020-12-29 22:09:43
1035
原创 ceph pool_too_many_pg/pool objects per pg is more than times cluster average
N版ceph集群报警health warn状态首先ceph -s或ceph health detail出现这种情况时因为集群觉得pg和当前的数据量不匹配,因此产生告警解决方法就是手动或自动调整pg数量,命令如下调整好以后,再次创建池的时候,依然会报警[root@ceph-node6 ~]# ceph health detailHEALTH_WARN 2 pools have many more objects per pg than averageMANY_OBJECTS_PER_PG
2020-12-29 16:48:35
965
原创 装饰器 TypeError: 'NoneType' object is not callable
def simple_decorator(f): print('in in in') f() print('out out out')@simple_decoratordef test(): print('this just a test')test()会报错,解决方案:最后的test()改为test即可。参考链接:https://www.tuico...
2020-03-23 20:17:44
796
原创 python tsp,遗传算法-顺序交叉
原理:代码如下:import randomdef cross(old_pop, cross_point_1, cross_point_2, cross_probability): new_pop = [] for i in range(len(old_pop)): # old pop 是一个 popsize 个 城市序列的列表 city_list...
2020-03-22 15:56:50
4136
7
原创 python socket tcp本机echo通信
使用了socket模块,分为sever和client两部分。环境:python3.7,pycharmsever主要进程:1.SOCKET.SOCKET2.bind 绑定3.listen4.accept5.send&recv6.closeclient主要进程:1.socket.socket2.connect()连接至sever端3.send&received4...
2020-03-20 18:41:27
654
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人