做新旧命令兼容的一种方式
将无法解析的命令 1. catch parse异常. 2. 错误输出直接重定向/dev/null.避免干扰output #!/usr/bin/env python import sys import os import subprocess from optparse import OptionParser class redirect_stdout_stderr(object):…
If you find that you're not, I hope you have the strength to start all over again.
将无法解析的命令 1. catch parse异常. 2. 错误输出直接重定向/dev/null.避免干扰output #!/usr/bin/env python import sys import os import subprocess from optparse import OptionParser class redirect_stdout_stderr(object):…
virsh dumpxml domain 虚拟机dumpxml例,可以参考格式 xml <domain type=’kvm’ id=’12’> <name>ceph-node3</name> <uuid>4f52f828-f538-45cb-9f02-eeb555e96020</uuid> <memory unit=’KiB’>8388608</memory> <currentMemory unit=’KiB’>8388608</currentMemory> <vcpu placement=’static’>2</vcpu> <resource> <partition>/machine</partition> </resource> <os>…
使用docker安装ceph #划分子网 docker network create –driver bridge –subnet 172.20.0.0/16 ceph-network docker network ls docker network inspect ceph-network #用于存放ceph配置 mkdir -p…
定义 SNIA对快照的描述: A point in time copy of a defined collection of data. 快照有全量快照和增量快照.我们常用的基本是增量快照(delta snapshot) A type of point in…
man vmstat FIELD DESCRIPTION FOR VM MODE Procs r: The number of processes waiting for run time. r 表示运行队列 (就是说多少个进程真的分配到CPU).…