H3C CAS 虚拟机转换 Vmware
qemu-img info image.vmdk **Vmware转到CAS** kvm-img convert -O qcow2 images.vmdk imgges **CAS转到Vmware** 卸载Castool kvm-img convert -O vmdk images images.vmdk 上传images到Vmware,新建虚拟机挂载硬盘
网事随记
qemu-img info image.vmdk **Vmware转到CAS** kvm-img convert -O qcow2 images.vmdk imgges **CAS转到Vmware** 卸载Castool kvm-img convert -O vmdk images images.vmdk 上传images到Vmware,新建虚拟机挂载硬盘
mkdir /backup mv /home/* /backup/ umount /home lvremove /dev/centos/home lvcreate -L 50G -n home cents mkfs -t xfs /dev/centos/home mv /backup/* /home/ lvextend -L +xxxG /dev/centos/root xfs_growfs root
实现交换机配置定时自动备份,支持新华三,华为,锐捷,思科交换机
编写sh文件 : /home/bkDatabase.sh: #!/bin/bash mysqldump -uusername -ppassword DatabaseName | gzip > /home/backup/DatabaseName_$(date +%Y%m%d_%H%M%S).sql.gz 添加权限: chmod u+x bkDatabase.sh 测试执行一下是否成功 ./bkDatabase.sh 系统添加定时任务
#!/bin/bash ########################### red='\e[0;31m' RED='\e[1;31m' green='\e[0;32m' GREEN='\e[1;32m' blue='\e[0;34m' BLUE='\e[1;34m' purple='\e[0;35m' PURPLE='\e[1;35m' NC='\e[0m' ########################### source /etc/bashrc source /etc/profile MySQL_USER=zabbix MySQL_PASSWORD=zabbix #修改对应的密码 MySQL_HOST=localhost MySQL_PORT=3306 MySQL_DUMP_PATH=/home/zabbix-datafile-backup MYSQL_BIN_PATH=/usr/bin/mysql MYSQL_DUMP_BIN_PATH=/usr/bin/mysqldump
V