ceph-deploy方式部署ceph-n版
4d04042c6ca46bd44e1433b27a81c2cf1d7ebe395378e6b7d366280b19cd34464dbaf1b441366bd6ad20f97f778b89aeeeaf429e24c71e03e0a8cad736649e91abcfee610148ffd49863b8dcf69717f77113147a0c9a4344240550d0c751cfa6d43cfe5b4a840e4ecffab93568236480425f32df2377c162804f5ddb9a9f5d0161da849a34989a44ff16ec31d6f15f2c243bac70d87c65e198322cfa61d504b0b4dcbb2a1c05dc766339f8b8a4eb5ccad749a22b8458e2f581b0035c955b2f8aff8efae838b2f5c1606849a823812a25c69da933403291f256411ac1076eaa851c73b590355a864fe551af2c6048eb41085961307e9e73837 ...
openstack九州云开源前端skyline自动部署脚本
b3108e141a93b2a9402f45b0b652fee4098bffcba82e731a3d52f051e700c50f521f872cccc8a9bb1eb0fe4301b59003538e5f466c7d5e7e2b6fb0e396dc993e905179bf8a76c117a1ed4aed21777604cdcd7531012d9a5da9b60dac69a22d6bed03dd672f19ae9233fade6d4438ce00819b5ca8344d7538a424662d808493536cfab5bfe0828af8cb4b1b62129c9c2c8ed710a8beced2a55386ec1168a65bbacc2393697557d2cdbc4201212f281609124aa38f4448169004eae3057de0bd98c2cd0ef15e001fe478f045fad8fae4e9aaf4630593676eae7b21270bd2fb921e5f026f35d485d9007c0adb5d82a1419945ed4ffce47d2149a ...
配置snat使无法访问internet的内网机器通过其他机器出外网
729e698e3453280de24556b4e376a8111cd39f8b0c39816b6028c181dff2ce240871853004f99f0b66bd7ab391493090efd6a8a064ee787d414f01a517f963bf1fb958ff4fe6c45a0a249f602c506a1903bd453dc4e1025c187cbfaef18ca29aedd5bfa0ce6972dafc0428a17a9ec899da30535227c9f98128f8cb83977cb52aa0ef580f56840627bfff98dc4cfe1384cb922175bf052acfe270a106a0b51f8e8abe30f0a52f5aaafdb17088f6f1d8abd4149f5a7fb7145e6b8c632fb66801283d20be0fe6500f1843e8710c55034faa5c2605155cab01a16df7075b902e70049b094f3c79047d915d4cf7a63776398b5c11be92ca2563e3e ...
ubuntu工具箱busybox
ubuntu工具箱busyboxbusybox介绍
busybox使用123# 使用(busybox + cmd)busybox telnet 10.0.0.10 80busybox route add default gw 10.0.0.220
结语祝好!
nmap telnet实现批量扫描端口
4d04042c6ca46bd44e1433b27a81c2cf1d7ebe395378e6b7d366280b19cd34464dbaf1b441366bd6ad20f97f778b89aeeeaf429e24c71e03e0a8cad736649e91abcfee610148ffd49863b8dcf69717f77113147a0c9a4344240550d0c751cfa6d43cfe5b4a840e4ecffab93568236480425f32df2377c162804f5ddb9a9f5d0161da849a34989a44ff16ec31d6f15f2c243bac70d87c65e198322cfa61d504b0b4dcbb2a1c05dc766339f8b8a4eb5ccad749a22b8458e2f581b0035c955b2f8aff8efae838b2f5c1606849a823812a254774b1c0a085cd184ca857663588d09567899cbc98f48c813a163151fe0f24140655c4b503e37e393 ...
shell Scripts同一局域网主机是否在线
shell Scripts同一局域网主机是否在线ping.sh脚本123456789101112131415161718#!/bin/bash# check hosts is on/Off# by rivers on 20219-23Network=$1for Host in $(seq 1 254)doping -c 1 $Network.$Host > /dev/null && result=0 || result=1if [ "$result" == 0 ];then echo -e "\033[32;1m$Network.$Host is up \033[0m" echo "$Network.$Host" >> /tmp/up.txtelse echo -e "\033[;31m$Network.$Host is down \033[0m" echo "$Network.$Host" >> /tmp/down.txtfidon ...
shell Scripts颜色与逻辑判断运算符
shell Scripts颜色与逻辑判断运算符常见逻辑判断运算符1234567891011121314-f 判断文件是否存在 eg: if [ -f filename ];-d 判断目录是否存在 eg: if [ -d dir ];-eq 等于,应用于整型比较 equal;-ne 不等于,应用于整型比较 not equal;-lt 小于,应用于整型比较 letter;-gt 大于,应用于整型比较 greater;-le 小于或等于,应用于整型比较;-ge 大于或等于,应用于整型比较;-a 双方都成立(and) 逻辑表达式 –a 逻辑表达式;-o 单方成立(or) 逻辑表达式 –o 逻辑表达式;-z 空字符串;-x 是否具有可执行权限|| 单方成立;&& 双方都成立表达式。
shell Scripts颜色红色 绿色 所有颜色
1234567891011121314# 红色echo -e "\033[31m IP: $ip 在ss -ant中次数是: $count \033[0m" # 绿 ...
qemu-img virt-v2v镜像格式转换
4d04042c6ca46bd44e1433b27a81c2cf1d7ebe395378e6b7d366280b19cd34464dbaf1b441366bd6ad20f97f778b89aeeeaf429e24c71e03e0a8cad736649e91abcfee610148ffd49863b8dcf69717f77113147a0c9a4344240550d0c751cfa6d43cfe5b4a840e4ecffab93568236480425f32df2377c162804f5ddb9a9f5d0161da849a34989a44ff16ec31d6f15f2c243bac70d87c65e198322cfa61d504b0b4dcbb2a1c05dc766339f8b8a4eb5ccad749a22b8458e2f581b0035c955b2f8aff8efae838b2f5c1606849a823812a25cf9f3e316dd1811a518f01db919e4a347306a20f0d148ef8b87bee728e6fd3cec45e0b8d08e3918b1 ...
配置其他机器能使用ceph命令
配置其他机器能使用ceph命令只需要两部12345# 在节点安装ceph-common,ceph-common包会提供ceph命令并在etc下创建ceph目录apt install ceph-common -y # 拷贝密钥交互文件到对应节点scp /etc/ceph/ceph.conf ceph-2:/etc/ceph/ # 将ceph.conf文件传输至对应节点scp /etc/ceph/ceph.client.admin.keyring ceph-2:/etc/ceph/ # 将密钥文件传输至对应节点
验证1234567891011121314151617[root@test ~]# ceph -s2023-06-01 11:15:02.900897 7f8d883e2700 0 -- :/42479157 >> 10.0.0.200:6789/0 pipe(0x7f8d8405d730 sd=3 :0 s=1 pgs=0 cs=0 l=1 c=0x7f8d8405d500).fault2023- ...
钉钉ceph告警脚本
4d04042c6ca46bd44e1433b27a81c2cf1d7ebe395378e6b7d366280b19cd34464dbaf1b441366bd6ad20f97f778b89aeeeaf429e24c71e03e0a8cad736649e91abcfee610148ffd49863b8dcf69717f77113147a0c9a4344240550d0c751cfa6d43cfe5b4a840e4ecffab93568236480425f32df2377c162804f5ddb9a9f5d0161da849a34989a44ff16ec31d6f15f2c243bac70d87c65e198322cfa61d504b0b4dcbb2a1c05dc766339f8b8a4eb5ccad749a22b8458e2f581b0035c955b2f8aff8efae838b2f5c1606849a823812a25475281f4f0878906d13aa9fc46a8853479a51971435085a8be0443a5fd1b9f0e0525e83eb5c4a5d4c ...