摘要: 为何要学习yaml和json呢?这玩意在生产环境尤为重要。 一、编写yaml文件 - hosts: all tasks: - name: Install httpd yum: name=httpd state=present - name: test copy template: src=/root 阅读全文
posted @ 2020-06-29 22:46 云数据中心 阅读(333) 评论(0) 推荐(0) 编辑
摘要: ceph crush 改正默认写入全部硬盘 高德置地 王锦雄 一、ceph crush 策略配置 1 获取crushmap二进制文件 ceph osd getcrushmap -o a.map 2 将二进制文件转成文本文件 crushtool -d a.map -o b 3 修改rules vi b 阅读全文
posted @ 2020-06-27 22:27 云数据中心 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 1 安装epel wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 2 安装pip yum install python-pip -y pip install --upgrade pip 3 安 阅读全文
posted @ 2020-06-27 22:24 云数据中心 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 在脚本内容添加shopt -u nocasematch 阅读全文
posted @ 2020-04-27 15:32 云数据中心 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 本文章ceph版本为luminous,操作系统为centos7.7,ceph安装部署方法可以参考本人其他文章。 [root@ceph1 ceph-install]# ceph -v ceph version 12.2.13 (584a20eb0237c657dc0567da126be145106aa 阅读全文
posted @ 2020-03-15 16:43 云数据中心 阅读(3268) 评论(0) 推荐(0) 编辑
摘要: 一、关闭防火墙及selinux 二、CentOS7默认不加载gre内核模块,加载gre内核模块 # modprobe ip_gre 临时加载gre模块(重启后失效) # lsmod |grep gre 进行确认 三、两端添加gre1网卡 主机一: [root@centos7 ~]# cat /etc 阅读全文
posted @ 2020-02-24 16:32 云数据中心 阅读(1785) 评论(0) 推荐(0) 编辑
摘要: 1 在 /etc/sysconfig/network-scripts/ 目录下添加route-eth3,eth3为实际网卡名称。 [root@compute1 ~]# cat /etc/sysconfig/network-scripts/route-eth3 121.14.46.1/32 via 1 阅读全文
posted @ 2020-02-24 15:57 云数据中心 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 一、 filestore 对象所在的PG以文件方式放在xfs文件中 1 查看所有的osd硬盘,跟其他linux其他硬盘一样,被挂载一个目录中。 [root@hz-storage1 ~]# df -h | grep -i ceph /dev/sda1 3.7T 112G 3.6T 3% /var/li 阅读全文
posted @ 2020-02-22 17:21 云数据中心 阅读(2845) 评论(0) 推荐(0) 编辑
摘要: 对象存储服务概览 OpenStack对象存储是一个多租户的对象存储系统,它支持大规模扩展,可以以低成本来管理大型的非结构化数据,通过RESTful HTTP 应用程序接口。 它包含下列组件: 代理服务器(swift-proxy-server) 接收OpenStack对象存储API和纯粹的HTTP请求 阅读全文
posted @ 2020-02-21 15:26 云数据中心 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: 修改vmware *.vmx文件,添加 vhv.enable = "TRUE" 阅读全文
posted @ 2020-02-20 00:10 云数据中心 阅读(258) 评论(0) 推荐(0) 编辑