此内容没有您所选择的语言版本。
Chapter 7. Basic Operations
Some basic operations are required for many administrative and troubleshooting tasks. This section covers how to safely perform basic tasks like shutting down and starting up the hyperconverged cluster.
7.1. Creating a shutdown playbook 复制链接链接已复制到粘贴板!
A hyperconverged environment must be shut down in a particular order. The simplest way to do this is to create a shutdown playbook that can be run from the Hosted Engine virtual machine.
The ovirt.shutdown_env role enables Global Maintenance Mode, and initiates shutdown for all virtual machines and hosts in the cluster. Host shutdown is asynchronous. The playbook terminates before hyperconverged hosts are actually shut down.
Prerequisites
Ensure that the
ovirt.shutdown_envansible role is available on the Hosted Engine virtual machine.yum install ovirt-ansible-shutdown-env -y
# yum install ovirt-ansible-shutdown-env -yCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
- Log in to the Hosted Engine virtual machine.
Create a shutdown playbook for your environment.
Use the following template to create the playbook file.
-
Replace
ovirt-engine.example.comwith the FQDN of your Hosted Engine virtual machine. -
Replace
123456with the password for theadmin@internalaccount.
Example playbook file: shutdown_rhhi-v.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
7.2. Shutting down RHHI for Virtualization 复制链接链接已复制到粘贴板!
A hyperconverged environment must be shut down in a particular order. Use an Ansible playbook to automate this process and ensure that your environment is shut down safely.
Prerequisites
- Create a shutdown playbook as described in Creating a shutdown playbook
Ensure that the
ovirt.shutdown_envansible role is available on the Hosted Engine virtual machine.yum install ovirt-ansible-shutdown-env -y
# yum install ovirt-ansible-shutdown-env -yCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
Run the shutdown playbook against the Hosted Engine virtual machine.
ansible-playbook -i localhost <shutdown_rhhi-v.yml>
# ansible-playbook -i localhost <shutdown_rhhi-v.yml>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.3. Starting up a hyperconverged cluster 复制链接链接已复制到粘贴板!
Starting up a hyperconverged cluster is more complex than starting up a traditional compute or storage cluster. Follow these instructions to start up your hyperconverged cluster safely.
- Power on all hosts in the cluster.
Ensure that the required services are available.
Verify that the
glusterdservice started correctly on all hosts.Copy to Clipboard Copied! Toggle word wrap Toggle overflow If glusterd is not started, start it.
systemctl start glusterd
# systemctl start glusterdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that host networks are available and hosts have IP addresses assigned to the required interfaces.
ip addr show
# ip addr showCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that all hosts are part of the storage cluster (listed as Peer in Cluster (Connected)).
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that all bricks are shown as online.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Start the hosted engine virtual machine.
Run the following command on the host that you want to be the hosted engine node.
hosted-engine --vm-start
# hosted-engine --vm-startCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the hosted engine virtual machine has started correctly.
hosted-engine --vm-status
# hosted-engine --vm-statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Take the hosted engine virtual machine out of Global Maintenance mode.
- Log in to the Administration Portal.
-
Click Compute
Hosts and select the hosted engine node. -
Click ⋮
Disable Global HA Maintenance.
Start any other virtual machines using Cockpit.
-
Click Compute
Virtualization. - Select any virtual machines you want to start and click Run.
-
Click Compute