1. 宿主机重启自动恢复虚拟机运行状态 1.1 参数描述与默认值 # Whether to start guests that were running before the host rebooted (boolean # value) #resume_guests_state_on_host_boot=false 1.2 修改配置为状态恢复 resume_guests_state_on_host_boot=true
必须是MM架构,而且一台主库M1是完好无损的,一台主库M2可以根据M1主库来进行重建:如果MS架构,自己可以稍微做一下脚本修改动作,也能使用,架构如下图所示: 3 总体思路,建立主脚本a_build_rep.sh 思路分为13个步骤,如a_build_rep.sh脚本中的备注 #!/bin/bash set -x set -e set -u #(1)准备好目录以及全局变量 BACKUP_FOLDER=/mysqldata/shared/backup2 TEMP_SETUP_FOLDER=/tm