이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 4. Execute the Back Up Procedure


Before performing a fast forward upgrade, back up the undercloud and the overcloud Control Plane nodes so that they can be restored to their previous state should an error occur.

4.1. Back Up the Undercloud

To back up the undercloud node, execute the following as root in the command line interface of the undercloud node:

# rear -d -v mkbackup

The procedure creates an ISO image on the backup node under the /ctl_plane_backups directory.

4.2. Back up the control plane

To back up the control plane, you must first stop the pacemaker cluster. This can result in service interruption. You must back up the database as a precaution to ensure that you can restore it after you restore the control plane. Back up the control plane nodes simultaneously and avoid operating the stack to ensure state consistency. After you complete the backup procedure, start the pacemaker cluster.

  1. Locate the database password:

    # /bin/hiera -c /etc/puppet/hiera.yaml mysql::server::root_password
  2. Back up the databases:

    [heat-admin@overcloud-controller-x ~]$ mysql -uroot -p{{ mysql_root_password }} -s -N -e "select distinct table_schema from information_schema.tables where engine='innodb' and table_schema != 'mysql';" | xargs mysqldump -uroot -p{{ mysql_root_password }} --single-transaction --databases > openstack-backup-mysql.sql
    [heat-admin@overcloud-controller-x ~]$ mysql -uroot -p{{ mysql_root_password }} -s -N -e "SELECT CONCAT('\"SHOW GRANTS FOR ''',user,'''@''',host,''';\"') FROM mysql.user where (length(user) > 0 and user NOT LIKE 'root')" | xargs -n1 mysql -uroot -p{{ mysql_root_password }} -s -N -e | sed 's/$/;/' > openstack-backup-mysql-grants.sql
  3. Stop the pacemaker cluster and the OpenStack services:

    Important

    This procedure results in the temporary interruption of control plane services to Compute nodes. You will not be able to spin up new instances, migrate instances, authenticate requests or monitor the health of the cluster until you restore the pacemaker cluster and OpenStack services in the final step of this procedure.

    On one of the control plane nodes, enter the following command:

    # pcs cluster stop --all

    On each control plane node, stop the OpenStack services:

    # systemctl stop openstack-*
    # systemctl stop neutron-*
    # systemctl stop haproxy
    # systemctl stop httpd
  4. To back up the control plane, execute the following as root in the command line interface of each control plane node:

    # rear -d -v mkbackup

    The procedure creates an ISO image on the backup node under the /ctl_plane_backups directory.

  5. When the backup procedure generates ISO images for each of the control plane nodes, restart the control plane nodes:

    # reboot

    After you restart the control plane nodes, check the status of pacemaker to ensure that the services are running correctly:

    # pcs status
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.