此内容没有您所选择的语言版本。
Chapter 5. Configure Performance Improvements
Some deployments benefit from additional configuration to achieve optimal performance. This section covers recommended additional configuration for certain deployments.
5.1. Improving volume performance by changing shard size 复制链接链接已复制到粘贴板!
The default value of the shard-block-size
parameter changed from 4MB
to 64MB
between Red Hat Hyperconverged Infrastructure version 1.0 and 1.1. This means that all new volumes are created with a shard-block-size
value of 64MB. However, existing volumes retain the original shard-block-size
value of 4MB.
There is no safe way to modify the shard-block-size
value on volumes that contain data. Because shard block size applies only to writes that occur after the value is set, attempting to change the value on a volume that contains data results in a mixed shard block size, which results in poor performance.
This section shows you how to safely modify the shard block size on an existing volume after upgrading to Red Hat Hyperconverged Infrastructure 1.1, in order to take advantage of the performance benefits of a larger shard size.
5.1.1. Prerequisites 复制链接链接已复制到粘贴板!
- A logical thin pool with sufficient free space to create additional logical volumes that are large enough to contain all existing virtual machines.
- A complete backup of your data. For details on how to achieve this, see Chapter 3, Configure Disaster Recovery using Geo-replication.
A. Create a new storage domain
Create new thin provisioned logical volumes
For an arbitrated replicated volume:
Create an
lv_create_arbitrated.conf
file with the following contents:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command:
gdeploy -c lv_create_arbitrated.conf
# gdeploy -c lv_create_arbitrated.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For a normal replicated volume:
Create an
lv_create_replicated.conf
file with the following contents:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command:
gdeploy -c lv_create_replicated.conf
# gdeploy -c lv_create_replicated.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Create new gluster volumes on the new logical volumes
For an arbitrated replicated volume
Create a
gluster_arb_volume.conf
file with the following contents:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command:
gdeploy -c gluster_arb_volume.conf
# gdeploy -c gluster_arb_volume.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For a normal replicated volume:
Create a gluster_rep_volume.conf file with the following contents:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command:
gdeploy -c gluster_rep_volume.conf
# gdeploy -c gluster_rep_volume.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Create a new storage domain using the new gluster volumes
Browse to the engine and follow the steps in Create the master storage domain to add a new storage domain consisting of the new gluster volume.
B. Migrate any virtual machine templates
If your virtual machines are created from templates, copy each template to the new Storage Domain.
Click the Template
tab. For each template to migrate:
- Select the template to migrate.
-
Click the
Disks
tab. -
Click
Copy
, and select the new storage domain as the target domain.
C. Migrate virtual machine disks to the new storage domain
For each virtual machine:
-
Right-click
VM Data Disks
Move
. - Select the new storage domain as the target domain.
You can monitor progress in the Tasks
tab.
D. Verify that disk images migrated correctly
Click the Disks
tab. For each migrated disk:
- Select the disk to check.
-
Click the
Storage
sub-tab. - Verify that the domain listed is the new storage domain.
Do not skip this step. There is no way to retrieve a disk image after a domain is detached and removed, so be sure that all disk images have correctly migrated before you move on.
E. Remove and reclaim the old storage domain
- Move the old storage domain into maintenance mode.
- Detach the old storage domain from the data center.
- Remove the old storage domain from the data center.
If your main storage devices are not Solid State Disks (SSDs), Red Hat recommends configuring a logical volume cache (lvmcache) to achieve the required performance for Red Hat Hyperconverged Infrastructure deployments.
Create the gdeploy configuration file
Create a gdeploy configuration file named
lvmcache.conf
that contains at least the following information. Note that the ssd value should be the device name, not the device path (for example, use sdb not/dev/sdb
).Example lvmcache.conf file
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantEnsure that disks specified as part of this deployment process do not have any partitions or labels.
ImportantThe default cache mode is
writethrough
, butwriteback
mode is also supported. To avoid the potential for data loss when implementing lvmcache inwriteback
mode, two separate SSD/NVMe devices are highly recommended. By configuring the two devices in a RAID-1 configuration (via software or hardware), the potential of data loss from lost writes is reduced significantly.Run gdeploy
Run the following command to apply the configuration specified in
lvmcache.conf
.gdeploy -c lvmcache.conf
# gdeploy -c lvmcache.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For further information about lvmcache configuration, see Red Hat Enterprise Linux 7 LVM Administration: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Logical_Volume_Manager_Administration/LV.html#lvm_cache_volume_creation.