摘要: cow技术 copy on write 实现快照 [root@xiaochen ~]# lvscan ACTIVE '/dev/vg1/lv1' [12.00 GiB] inherit [root@xiaochen ~]# lvs LV VG Attr LSize Pool Origin Data% 阅读全文
posted @ 2020-12-20 21:13 tigergaonotes 阅读(84) 评论(0) 推荐(0) 编辑
摘要: pipeline { agent any tools { //工具必须预先在jenkins中预配置 maven 'mvn' jdk 'jdk' } stages { stage('Env') { steps { sh 'printenv' } } stage('git') { steps{ chec 阅读全文
posted @ 2020-12-20 21:09 tigergaonotes 阅读(240) 评论(0) 推荐(0) 编辑
摘要: mongo@rayos:/opt/mongodb$ mongo --port 28017 MongoDB shell version v4.0.13 connecting to: mongodb://127.0.0.1:28017/?gssapiServiceName=mongodb Implici 阅读全文
posted @ 2020-12-20 21:07 tigergaonotes 阅读(544) 评论(0) 推荐(0) 编辑
摘要: find ./ -type f -newermt '2000-01-04 10:30:00' ! -newermt '2019-10-28 10:57:00' -exec cp -a {} /var/log/webraydb/DataPullService/Data_Pull_Service_Fac 阅读全文
posted @ 2020-12-20 21:06 tigergaonotes 阅读(169) 评论(0) 推荐(0) 编辑
摘要: //静态设置:只能在索引创建时或者在状态为 closed index(闭合的索引)上设置 index.number_of_shards //主分片数,默认为5.只能在创建索引时设置,不能修改 index.shard.check_on_startup //是否应在索引打开前检查分片是否损坏,当检查到分 阅读全文
posted @ 2020-12-20 21:03 tigergaonotes 阅读(3609) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding=utf-8 #@rename file #@2019/11/27 import os ls = os.rename('/root/tigergao.py','/root/test.py') print("重命名成功") files = os.lis 阅读全文
posted @ 2020-12-20 21:02 tigergaonotes 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 当发现某个分区下的inode使用率过大时,需要找到该分区下的某些目录里有哪些文件可以清理。 查找某个目录下一个月或两个月之前的文件,然后删除# find . -type f -mtime +30 |wc -l# find . -type f -mtime +60 |wc -l# find . -ty 阅读全文
posted @ 2020-12-20 20:49 tigergaonotes 阅读(401) 评论(0) 推荐(0) 编辑