Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

6.2. 자체 호스트 엔진 환경 복원

이 섹션에서는 새로 설치된 호스트의 백업에서 셀프 호스트 엔진 환경을 복원하는 방법에 대해 설명합니다. 지원되는 복원 방법은 engine-backup 도구를 사용합니다.
셀프 호스트 엔진 환경을 복원하려면 다음 주요 작업이 필요합니다.
  1. 새로 설치된 Red Hat Enterprise Linux 호스트를 만들고 hosted-engine 배포 스크립트를 실행합니다.
  2. 새 Manager 가상 머신에 Red Hat Virtualization Manager 구성 설정 및 데이터베이스 콘텐츠를 복원합니다.
  3. 비작동 상태에서 자체 호스팅 엔진 노드를 제거하고 복원된 자체 호스팅 엔진 환경에 다시 설치합니다.

사전 요구 사항

  • 셀프 호스트 엔진 환경을 복원하려면 물리적 호스트에 새로 설치된 Red Hat Enterprise Linux 시스템을 준비해야 합니다.
  • 새 호스트 및 Manager의 운영 체제 버전은 원래 호스트와 Manager와 동일해야 합니다.
  • 새 환경에 대한 Red Hat Subscription Manager 인타이틀먼트가 있어야 합니다. 필요한 리포지토리 목록은 설치 가이드 의 필수 인타이틀먼트 서브스크립션을 참조하십시오.
  • 새 Manager의 정규화된 도메인 이름은 원래 관리자의 정규화된 도메인 이름과 동일해야 합니다. 정방향 및 역방향 조회 레코드를 모두 DNS에서 설정해야 합니다.
  • Manager 가상 시스템의 공유 스토리지 도메인으로 사용할 새로운 셀프 호스트 엔진 환경에 스토리지를 준비해야 합니다. 이 도메인은 60GB 이상이어야 합니다. 배포용 스토리지 준비에 대한 자세한 내용은 관리 가이드의 스토리지 장을 참조하십시오.

6.2.1. 복원된 환경으로 사용할 새 자체 호스팅 엔진 환경 생성

백업 환경에서 사용된 하드웨어에서 셀프 호스트 엔진을 복원할 수 있습니다. 그러나 복원된 배포에 장애 조치 호스트를 사용해야 합니다. 6.1절. “자체 호스팅 엔진 관리자 가상 머신 백업” 에서 사용되는 장애 조치 호스트인 호스트 1 은 이 프로세스에서도 사용되는 hosted_engine_1 의 기본 호스트 이름을 사용합니다. 자체 호스팅 엔진에 대한 복원 프로세스의 특성으로 인해 복원 엔진의 최종 동기화를 수행하기 전에 이 장애 조치 호스트를 제거해야 하며, 백업 시 호스트에 가상 로드가 없는 경우에만 수행할 수 있습니다. 백업된 환경에서 사용되지 않은 별도의 하드웨어에서 백업을 복원할 수도 있으며 이는 문제가 되지 않습니다.
중요
이 절차에서는 물리적 호스트에 새로 설치된 Red Hat Enterprise Linux 시스템이 있고, 호스트를 필수 자격에 등록하고, ovirt-hosted-engine-setup 패키지를 설치했다고 가정합니다. 자세한 내용은 설치 가이드 2.1.1절. “자체 호스트 엔진 패키지 설치” 의 필수 인타이틀먼트 서브스크립션을 참조하십시오.

절차 6.4. 복원된 환경으로 사용할 새 자체 호스팅 환경 생성

  1. DNS 업데이트

    Red Hat Virtualization 환경의 정규화된 도메인 이름이 새 Manager의 IP 주소와 관련이 있도록 DNS를 업데이트합니다. 이 절차에서는 정규화된 도메인 이름이 Manager.example.com 으로 설정되었습니다. 엔진에 제공된 정규화된 도메인 이름은 백업된 원래 엔진의 엔진 설정에 지정된 것과 동일해야 합니다.
  2. 호스팅 엔진 배포 시작

    새로 설치된 Red Hat Enterprise Linux 호스트에서 hosted-engine 배포 스크립트를 실행합니다. 언제든지 스크립트를 이스케이프하려면 CTRL+D 키보드 조합을 사용하여 배포를 중단합니다. 네트워크를 통해 hosted-engine 배포 스크립트를 실행하는 경우 네트워크 또는 터미널 중단 시 세션이 손실되지 않도록 화면 창 관리자를 사용하는 것이 좋습니다. 설치되지 않은 경우 screen 패키지를 먼저 설치합니다.
    # screen
    # hosted-engine --deploy
  3. Initialization 준비

    이 스크립트는 자체 호스팅 엔진 환경에서 사용할 하이퍼바이저로 호스트를 사용하도록 확인을 요청하는 것으로 시작됩니다.
    Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards. 
    Are you sure you want to continue? (Yes, No)[Yes]:
  4. 스토리지 구성

    사용할 스토리지 유형을 선택합니다.
    During customization use CTRL-D to abort.
    Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
    • NFS 스토리지 유형의 경우 FQDN 또는 IP 주소 및 공유 스토리지 도메인의 경로 이름을 사용하여 전체 주소를 지정합니다.
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
    • iSCSI의 경우 iSCSI 포털 IP 주소, 포트, 사용자 이름 및 암호를 지정하고 자동 감지된 목록에서 대상 이름을 선택합니다. 배포 중에 iSCSI 대상 하나만 선택할 수 있습니다.
      Please specify the iSCSI portal IP address:           
      Please specify the iSCSI portal port [3260]:           
      Please specify the iSCSI portal user:           
      Please specify the iSCSI portal password:
      Please specify the target name (auto-detected values) [default]:
    • Gluster 스토리지의 경우 FQDN 또는 IP 주소 및 공유 스토리지 도메인의 경로 이름을 사용하여 전체 주소를 지정합니다.
      중요
      복제본 3 Gluster 스토리지만 지원됩니다. 다음 구성이 수행되었는지 확인합니다.
      • 세 개의 Gluster 서버의 /etc/glusterfs/glusterd.vol 파일에서 rpc-auth-allow-insecureon 으로 설정합니다.
        option rpc-auth-allow-insecure on
      • 다음과 같이 볼륨을 구성합니다.
        gluster volume set volume cluster.quorum-type auto
        gluster volume set volume network.ping-timeout 10
        gluster volume set volume auth.allow \*
        gluster volume set volume group virt
        gluster volume set volume storage.owner-uid 36
        gluster volume set volume storage.owner-gid 36
        gluster volume set volume server.allow-insecure on
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/gluster_volume
    • 파이버 채널의 경우 호스트 버스 어댑터를 구성하고 연결해야 하며 hosted-engine 스크립트는 사용 가능한 LUN을 자동으로 탐지합니다. LUN에는 기존 데이터가 포함되어 있지 않아야 합니다.
      The following luns have been found on the requested target:
      [1]     3514f0c5447600351       30GiB   XtremIO XtremApp
                              status: used, paths: 2 active
                
      [2]     3514f0c5447600352       30GiB   XtremIO XtremApp
                              status: used, paths: 2 active
      
      Please select the destination LUN (1, 2) [1]:
  5. 네트워크 구성

    이 스크립트는 환경에 대한 관리 브리지로 사용할 수 있는 NIC(네트워크 인터페이스 컨트롤러)를 탐지합니다. 그런 다음 방화벽 구성을 확인하고 콘솔(SPICE 또는 VNC)이 Manager 가상 머신에 액세스할 수 있도록 수정하도록 제공합니다. Manager 가상 시스템 실행에 대한 호스트의 적합성을 결정하는 데 도움이 되도록 ovirt-ha-agent 에서 사용할 ping 가능한 게이트웨이 IP 주소를 제공합니다.
    Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
    iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]: 
    Please indicate a pingable gateway IP address [X.X.X.X]:
    
  6. 새 관리자 가상 머신 구성

    이 스크립트는 새 Manager 가상 시스템으로 구성할 가상 머신을 생성합니다. 부팅 장치를 지정하고 해당하는 경우 설치 미디어의 경로 이름, 이미지 별칭, CPU 유형, 가상 CPU 수 및 디스크 크기를 지정합니다. Manager 가상 머신의 MAC 주소를 지정하거나 임의로 생성된 주소를 수락합니다. MAC 주소는 Manager 가상 머신에 운영 체제를 설치하기 전에 DHCP 서버를 업데이트하는 데 사용할 수 있습니다. Manager 가상 머신 생성을 위해 메모리 크기 및 콘솔 연결 유형을 지정합니다.
    Please specify the device to boot the VM from (cdrom, disk, pxe) [cdrom]: 
    Please specify an alias for the Hosted Engine image [hosted_engine]:  
    The following CPU types are supported by this host:
              - model_Penryn: Intel Penryn Family
              - model_Conroe: Intel Conroe Family
    Please specify the CPU type to be used by the VM [model_Penryn]: 
    Please specify the number of virtual CPUs for the VM [Defaults to minimum requirement: 2]: 
    Please specify the disk size of the VM in GB [Defaults to minimum requirement: 25]: 
    You may specify a MAC address for the VM or accept a randomly generated default [00:16:3e:77:b2:a4]: 
    Please specify the memory size of the VM in MB [Defaults to minimum requirement: 4096]: 
    Please specify the console type you want to use to connect to the VM (vnc, spice) [vnc]:
    
  7. 호스트 이름 확인

    관리 포털에 액세스할 admin@internal 사용자의 암호를 지정합니다.
    백업에서 엔진을 복원할 때 존재하는 다른 리소스와 충돌하지 않도록 호스트 이름에 대해 고유한 이름을 제공해야 합니다. 이 호스트는 환경을 백업하기 전에 유지 관리 모드로 배치되었으므로 이 프로세스에서 이름이 hosted_engine_1 을 사용할 수 있으므로 엔진 및 호스트 및 엔진의 최종 동기화 간에 이 호스트를 제거할 수 있습니다.
    Enter engine admin password: 
    Confirm engine admin password:
    Enter the name which will be used to identify this host inside the Administration Portal [hosted_engine_1]:
  8. 호스팅 엔진 구성

    새 Manager 가상 머신의 정규화된 도메인 이름을 제공합니다. 이 절차에서는 정규화된 도메인 이름 Manager.example.com 을 사용합니다. SMTP 서버의 이름 및 TCP 포트 번호, 이메일 알림을 보내는 데 사용되는 이메일 주소, 이러한 알림을 수신할 쉼표로 구분된 이메일 주소 목록을 제공합니다.
    중요
    엔진에 제공된 정규화된 도메인 이름(Manager.example.com)은 원래 Manager가 처음 설정된 경우 제공되는 정규화된 도메인 이름과 동일해야 합니다.
    Please provide the FQDN for the engine you would like to use.
    This needs to match the FQDN that you will use for the engine installation within the VM.
     Note: This will be the FQDN of the VM you are now going to create,
     it should not point to the base host or to any other existing machine.
     Engine FQDN: Manager.example.com
    Please provide the name of the SMTP server through which we will send notifications [localhost]: 
    Please provide the TCP port number of the SMTP server [25]: 
    Please provide the email address from which notifications will be sent [root@localhost]: 
    Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
  9. 구성 프리뷰

    진행하기 전에 hosted-engine 배포 스크립트에서 입력한 구성 값을 표시하고 이러한 값을 계속 진행하도록 확인 메시지를 표시합니다.
    Bridge interface                   : eth1
    Engine FQDN                        : Manager.example.com
    Bridge name                        : ovirtmgmt
    SSH daemon port                    : 22
    Firewall manager                   : iptables
    Gateway address                    : X.X.X.X
    Host name for web application      : hosted_engine_1
    Host ID                            : 1
    Image alias                        : hosted_engine
    Image size GB                      : 25
    Storage connection                 : storage.example.com:/hosted_engine/nfs
    Console type                       : vnc
    Memory size MB                     : 4096
    MAC address                        : 00:16:3e:77:b2:a4
    Boot type                          : pxe
    Number of CPUs                     : 2
    CPU Type                           : model_Penryn
    
    Please confirm installation settings (Yes, No)[Yes]:
    
  10. 새 관리자 가상 머신 생성

    이 스크립트는 Manager 가상 시스템으로 구성할 가상 머신을 생성하고 연결 세부 정보를 제공합니다. hosted-engine 배포 스크립트가 호스팅 엔진 구성에서 진행하기 전에 운영 체제를 설치해야 합니다.
    [ INFO  ] Stage: Transaction setup
    [ INFO  ] Stage: Misc configuration
    [ INFO  ] Stage: Package installation
    [ INFO  ] Stage: Misc configuration
    [ INFO  ] Configuring libvirt
    [ INFO  ] Configuring VDSM
    [ INFO  ] Starting vdsmd
    [ INFO  ] Waiting for VDSM hardware info
    [ INFO  ] Waiting for VDSM hardware info
    [ INFO  ] Configuring the management bridge
    [ INFO  ] Creating Storage Domain
    [ INFO  ] Creating Storage Pool
    [ INFO  ] Connecting Storage Pool
    [ INFO  ] Verifying sanlock lockspace initialization
    [ INFO  ] Creating VM Image
    [ INFO  ] Disconnecting Storage Pool
    [ INFO  ] Start monitoring domain
    [ INFO  ] Configuring VM
    [ INFO  ] Updating hosted-engine configuration
    [ INFO  ] Stage: Transaction commit
    [ INFO  ] Stage: Closing up
    [ INFO  ] Creating VM
    You can now connect to the VM with the following command:
          /usr/bin/remote-viewer vnc://localhost:5900
    Use temporary password "3477XXAM" to connect to vnc console.
    Please note that in order to use remote-viewer you need to be able to run graphical applications.
    This means that if you are using ssh you have to supply the -Y flag (enables trusted X11 forwarding).
    Otherwise you can run the command from a terminal in your preferred desktop environment.
    If you cannot run graphical applications you can connect to the graphic console from another host or connect to the console using the following command:
    virsh -c qemu+tls://Test/system console HostedEngine
    If you need to reboot the VM you will need to start it manually using the command:
    hosted-engine --vm-start
    You can then set a temporary password using the command:
    hosted-engine --add-console-password
    The VM has been started.  Install the OS and shut down or reboot it.  To continue please make a selection:
             
      (1) Continue setup - VM installation is complete
      (2) Reboot the VM and restart installation
      (3) Abort setup
      (4) Destroy VM and abort setup
             
      (1, 2, 3, 4)[1]:
    이 절차의 이름 지정 규칙을 사용하여 VNC를 사용하여 가상 머신에 다음 명령을 사용합니다.
    /usr/bin/remote-viewer vnc://hosted_engine_1.example.com:5900
  11. 가상 머신 운영 체제 설치

    Manager 가상 머신에 연결하고 Red Hat Enterprise Linux 7 운영 체제를 설치합니다.
  12. 호스트 및 관리자 동기화

    호스트로 돌아가서 옵션 1: hosted-engine 배포 스크립트를 계속합니다.
    (1) Continue setup - VM installation is complete
    Waiting for VM to shut down...
    [ INFO  ] Creating VM
    You can now connect to the VM with the following command:
          /usr/bin/remote-viewer vnc://localhost:5900
    Use temporary password "3477XXAM" to connect to vnc console.
    Please note that in order to use remote-viewer you need to be able to run graphical applications.
    This means that if you are using ssh you have to supply the -Y flag (enables trusted X11 forwarding).
    Otherwise you can run the command from a terminal in your preferred desktop environment.
    If you cannot run graphical applications you can connect to the graphic console from another host or connect to the console using the following command:
    virsh -c qemu+tls://Test/system console HostedEngine
    If you need to reboot the VM you will need to start it manually using the command:
    hosted-engine --vm-start
    You can then set a temporary password using the command:
    hosted-engine --add-console-password
    Please install and setup the engine in the VM.
    You may also be interested in subscribing to "agent" RHN/Satellite channel and installing rhevm-guest-agent-common package in the VM.
    To continue make a selection from the options below:
      (1) Continue setup - engine installation is complete
      (2) Power off and restart the VM
      (3) Abort setup
      (4) Destroy VM and abort setup
             
      (1, 2, 3, 4)[1]:
  13. 관리자 설치

    새 Manager 가상 머신에 연결하고 Red Hat 서브스크립션 관리에 등록한 다음 필요한 리포지토리를 활성화합니다. 설치 가이드 의 필수 인타이틀먼트 서브스크립션을 참조하십시오.
    설치된 모든 패키지의 최신 버전이 사용 중인지 확인하고ECDHE 패키지를 설치합니다.
    # yum update
    참고
    커널 관련 패키지가 업데이트된 경우 시스템을 재부팅합니다.
    # yum install rhevm
패키지가 설치를 완료한 후에도 셀프 호스트 엔진 관리자의 복원을 계속할 수 있습니다.