原创 host pid 和container pid的對應關係

查閱相關資料發現: 主機和容器的 /proc/PID/status 文件會存放其對應關係 #grep -i nspid /proc/447482/status NSpid: 16950 24

原创 locate 反向過濾

轉自:https://www.cnblogs.com/xqzt/p/5426666.html 1、命令簡介 locate(locate) 命令用來查找文件或目錄。 locate命令要比find -name快得多,原因在於它不搜

原创 windows通過iscsi掛載linux硬盤

第一步:以centos7爲例,linux需要安裝targetcli 一、 系統使用的是CentOS7.2 禁用防火牆: 查看狀態:# systemctl status firewalld或者 firewall-cmd–state 停止

原创 Kubrnetes work NotReady ResourceExhausted work節點資源耗盡

rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4196772 vs. 4194304) 現象:kubernetes

原创 k8s nginx-ingress too large

問題:k8s nginx-ingress-controller Failed to upload report - 413: 413 Request Entity Too Large 413 Request Entity Too

原创 ceph-luminous-dashboard

1、$ ceph mgr module enable dashboard 2、添加(也可以不添加,未測試) vim /etc/ceph/ceph.conf [mgr] mgr_modules = dashboard 3、# ceph

原创 ceph luminos最新版安裝

Ceph 安裝 參考文獻: 1、 https://blog.csdn.net/jfengamarsoft/article/details/77683930 2、 https://blog.csdn.net/zcc_heu/articl

原创 shell 多線程實現

轉自:https://blog.csdn.net/dubendi/article/details/78931979 需求:併發檢測1000臺web服務器狀態(或者併發爲1000臺web服務器分發文件等)如何用shell實現? 方案一:

原创 docker devicemapper loop_lvm 轉爲生產環境使用的direcrt_lvm

轉自官網:https://docs.docker.com/storage/storagedriver/device-mapper-driver/#manage-devicemapper 後續的擴容監控官網有詳細的介紹 Configur

原创 Shell中的${}、##和%%使用範例

轉自:https://www.cnblogs.com/Template/p/9079470.html Shell中的${}、##和%%使用範例 假設定義了一個變量爲,代碼如下: file=/dir1/dir2/dir3/my.file

原创 ceph fs status報錯解決

問題描述: [root@k8s-master-2 ~]# ceph fs status Error EINVAL: Traceback (most recent call last): File “/usr/lib64/ceph/mg

原创 find命令的用法

轉自:https://www.oschina.net/translate/15-practical-linux-find-command-examples 1.命令格式: find pathname -options [-print

原创 ssh無法登陸k8s集羣容器

1、ssh登錄容器登錄不上,懷疑是flannel問題 經查發現沒有flannel網卡,sytemctl status flanneld發現是etcd證書問題。 因爲重新生成的etcd證書沒有拷貝到節點180上,所以會出錯。把新生成的證

原创 ssh登錄慢

如果做運維就一定會遇到ssh登陸Linux服務器慢的問題,問題比較好解決,一般Google之後有很多文章都告訴你解決方法,但是很少有文章分析爲什麼會慢,這篇文章簡單分析下ssh登陸慢的原因。 useDNS配置導致登陸慢 如果ssh s

原创 ceph recovery的速度控制

轉自https://ceph.com/planet/ceph-recover的速度控制/ 前言 磁盤損壞對於一個大集羣來說,可以說是必然發生的事情,即使再小的概率,磁盤量上去,總會壞那麼幾塊盤,這個時候就會觸發內部的修復過程,修復就是