摘要: 查看inode数量 df -ih 查看磁盘信息 tune2fs -l /dev/sdc1 查看相关目录信息 /data/osd.3/bean_test/7/8/9# debugfs /dev/sdc2 debugfs /dev/sdc2 -R "htree bean_test/7/8/9" 查看mk 阅读全文
posted @ 2019-04-21 11:46 xuchenCN 阅读(319) 评论(0) 推荐(0) 编辑
摘要: ip a 查看结果 flannel.1 i state UNKNOWN 并且五 inet 发现日志 device (flannel.1): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41] 阅读全文
posted @ 2019-03-08 13:34 xuchenCN 阅读(2153) 评论(0) 推荐(0) 编辑
摘要: 创建 2G 内存的 Container 使用tmpfs挂载到 /tmp docker run --rm -it --memory 2g --mount type=tmpfs,destination=/tmp 8615232d1259 /bin/bash 在container中运行 cd /tmp d 阅读全文
posted @ 2019-02-25 15:42 xuchenCN 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 主要参考项目 https://github.com/kubernetes/code-generator 1. git clone https://github.com/kubernetes/code-generator 2. 创建自己的项目例如 k8s-controller-example 3. 复 阅读全文
posted @ 2019-02-18 17:21 xuchenCN 阅读(2216) 评论(0) 推荐(0) 编辑
摘要: 参考文档 docker overlay2的 --storage-opt 需要启动mount 参数中有pquota 参考上边的文档mount中的xfs 含有pquota 将 /etc/fstab 文件中加入pquota /dev/mapper/centos-home /home xfs default 阅读全文
posted @ 2018-08-15 17:14 xuchenCN 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 一. 前期准备 参考文档 https://jimmysong.io/kubernetes-handbook/practice/create-tls-and-secret-key.html 1. 安装golang编译环境, 官网(golang.org)下载安装 2. git clone https:/ 阅读全文
posted @ 2018-08-15 09:58 xuchenCN 阅读(6112) 评论(0) 推荐(0) 编辑
摘要: 1. Build from source 编译整个项目 make all GOLDFLAGS="" GOGCFLAGS="all=-N -l" 编译单个组件 make GOLDFLAGS="" GOGCFLAGS="all=-N -l" WHAT="cmd/kube-apiserver" 如果需要编 阅读全文
posted @ 2018-08-01 11:40 xuchenCN 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: https://linux.cn/article-6046-1.html https://www.tecmint.com/shell-in-a-box-a-web-based-ssh-terminal-to-access-remote-linux-servers/ LOGIN模式需要 root权限 阅读全文
posted @ 2018-04-19 16:04 xuchenCN 阅读(187) 评论(0) 推荐(0) 编辑
摘要: https://unix.stackexchange.com/questions/307046/real-time-file-synchronization https://github.com/axkibe/lsyncd 阅读全文
posted @ 2018-04-19 16:00 xuchenCN 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 进入 docker 目录 删除 volumes 下的所有文件 重新启动docker 运行nvidia-docker run XXX 来生成volume 修改所有 docker目录下containers 里的 config.v2.json 修改之前错误的挂载路径 类似于 xxxx/_data 的目录 阅读全文
posted @ 2018-03-22 18:54 xuchenCN 阅读(1452) 评论(0) 推荐(0) 编辑