在混合云灾备一体机中,您可以对各种类型的服务器进行保护。我们支持主流Windows和Linux系统的物理服务器,以及运行在Hyper-V、vSphere和KVM上的虚拟机。在保护一台服务器之前,您需要在虚拟机中运行我们的precheck脚本,若脚本通过,则您的虚拟机可以正确无误的被容灾一体机所保护,若不通过,则您需要根据脚本的提示对虚拟机的配置等进行调整以便通过precheck。

在windows虚拟机中运行precheck

  1. 从web访问 Https://容灾一体机IP/tool ,下载Windows.zip 压缩包到本地后解压,将文件夹windows拷贝到虚拟机的C盘。
  2. 用管理员身份打开cmd命令,进入C:\Windows路径,运行TestAndUpdate.cmd文件。
    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第1张
    说明 运行TestAndUpdate.cmd,可能对您的计算机进行一些更改;若您不希望对计算机进行更改,建议运行Test.cmd。
  3. 查看运行结果。
    以下两项运行结果可以忽略:
    • Checking for File and Printer sharing mode is enabled or not.
    • Checking for perl is installed,This test case is applicable only if Oracle Application database discovery and backup is required.(该项仅在您没有安装Oracle环境时可忽略)
    根据其余项目的运行结果对虚拟机的配置等进行调整,继续运行precheck直到其余检测项全部通过。
    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第2张

在linux虚拟机中运行precheck

  1. 为linux虚拟机新建一个账户aliyunhdr,并加入root权限。
    • adduser aliyunhdr
    • passwd aliyunhdr
    • chgrp -R root /home/aliyunhdr
    • chmod –v u+w /etc/sudoers
    • vi /etc/sudoers
    • 添加 aliyunhdr ALL=(ALL) NOPASSWD:ALL
  2. 从web访问 Https://容灾一体机IP/tool/linux ,下载precheckForLinuxMachine.sh 文件,拷贝到linux虚拟机的 /home/aliyunhdr下,并进入该目录。
    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第3张
  3. 切换到aliyunhdr账号,将precheck所有者改为aliyunhdr, 且确保有可执行权限。
    • sudo chown –R aliyunhdr:aliyunhdr precheckForLinuxMachine.sh
    • sudo chmod 755 precheckForLinuxMachine.sh

    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第4张
  4. 用aliyunhdr账号登录,并运行脚本./precheckForlinuxMachine.sh –username aliyunhdr –u
    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第5张
  5. 查看运行结果。
    以下几项可忽略:
    • 第9项:check for LVM Snapshot support.
    • 第13项:Check for supported disk size,This is application only if server getting recovered/migrated on Alibaba cloud.
    • 第14项:Check for server file system type supported for Alibaba cloud,This is application if server getting recovered/migrated on Alibaba cloud.
    • 第15项:Check for perl installed or not.(该项仅在您没有安装Oracle环境时可忽略)
    • 第16项:Check for supported OS,This is application if server getting recovered/migrated on Alibaba cloud.

    根据其余项目的运行结果对linux虚拟机的配置等进行调整,继续运行precheck直到其余检测项全部通过。


    运行precheck_故障排查_快照型容灾(SDR)_混合云容灾服务 阿里云技术文档 第6张