上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: git config --global user.name "wanghongwei-dev" git config --global user.email "wanghongwei-dev@example.com" git config --global credential.helper sto 阅读全文
posted @ 2023-01-04 13:38 wanghongwei-dev 阅读(482) 评论(0) 推荐(0)
摘要: 1、查看证书到期时间 kubeadm certs check-expiration 2、备份数据 cp -rp /etc/kubernetes /etc/kubernetes.bak cp -rp /var/lib/etcd /var/lib/etcd.bak 3、手动续订证书 # 命令需要在所有控 阅读全文
posted @ 2022-12-05 16:50 wanghongwei-dev 阅读(204) 评论(0) 推荐(0)
摘要: 1、Rsyslog客户端配置 vim /etc/rsyslog.conf # 客户端将所有消息日志发送到远端日志服务器 *.* @@remote-log-server:514 # 重启日志服务 systemctl restart rsyslog 2、Rsyslog服务端配置 vim /etc/rsy 阅读全文
posted @ 2022-12-01 16:39 wanghongwei-dev 阅读(296) 评论(0) 推荐(0)
摘要: Ceph是一个开源的分布式存储平台,分布式块存储RBD(RADOS Block Device)在云计算中广泛使用。基于Ceph RBD的快照技术,通过差量文件的方式定期将数据备份到灾备中心,当主数据中心发生故障时,从灾备中心恢复最近的备份数据并重启相应的虚拟机,最大程度降低灾难时的数据恢复时间。 * 阅读全文
posted @ 2022-11-22 12:16 wanghongwei-dev 阅读(449) 评论(0) 推荐(0)
摘要: ``` #!/bin/bash # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pub 阅读全文
posted @ 2022-07-25 19:40 wanghongwei-dev 阅读(29) 评论(0) 推荐(0)
摘要: #### 背景 IaaS平台某一实例resize错误,初步判定为数据库中数据不一致导致resize时检查卷attach状态错误,现将解决方法总结如下: #### 1.根据实例名查找实例ID与卷ID ``` source admin-openstack.sh openstack server list 阅读全文
posted @ 2022-06-24 14:22 wanghongwei-dev 阅读(90) 评论(0) 推荐(0)
摘要: #!/bin/bash Date=$(date +%Y%m%d) Log_File="user-${Date}.log" Log_CMD="tee -a $Log_File" UserLDIF="user-${Date}.ldif" UserWithPW="user-pw-${Date}.txt" 阅读全文
posted @ 2022-06-24 12:59 wanghongwei-dev 阅读(870) 评论(0) 推荐(0)
摘要: 1.背景 今天遇到一个在云平台上罕见的逻辑卷嵌套问题。环境如下: 物理机:宿主机操作系统CentOS 7,系统使用LVM逻辑卷管理器,本地磁盘为iSCSI提供块存储。 虚拟机:虚拟机操作系统CentOS 7,使用物理机提供的块存储作为虚拟机Ceph存储的OSD,OSD使用BuleStore存储引擎。 阅读全文
posted @ 2022-06-15 10:52 wanghongwei-dev 阅读(122) 评论(0) 推荐(0)
摘要: ``` #!/bin/bash #OpenLDAP数据备份脚本 set -e cd $(dirname $0) echo dir=$(pwd) mkdir /data/openldap-$(date "+%Y%m%d") mkdir /data/openldap-$(date "+%Y%m%d")/ 阅读全文
posted @ 2022-06-09 21:43 wanghongwei-dev 阅读(179) 评论(0) 推荐(0)
摘要: 汇总OpenStack运维中遇到的问题 1.冷迁移和升降配 # 1.配置各计算节点nova用户免密互信 usermod -s /bin/bash nova echo "NOVA_PASS"|passwd --stdin nova su - nova ssh-keygen -t rsa -N '' - 阅读全文
posted @ 2022-06-07 19:38 wanghongwei-dev 阅读(1053) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页