Ce contenu n'est pas disponible dans la langue sélectionnée.
Appendix A. Understanding the node_prep_inventory.yml file
The node_prep_inventory.yml
file is an example Ansible inventory file that you can use to prepare a replacement host for your Red Hat Hyperconverged Infrastructure for Virtualization cluster.
You can find this file at /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/node_prep_inventory.yml
on any hyperconverged host.
A.1. Configuration parameters for preparing a replacement node Copier lienLien copié sur presse-papiers!
A.1.1. Hosts to configure Copier lienLien copié sur presse-papiers!
- hc_nodes
A list of hyperconverged hosts that uses the back-end FQDN of the host, and the configuration details of those hosts. Configuration that is specific to a host is defined under that host’s back-end FQDN. Configuration that is common to all hosts is defined in the
vars:
section.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
A.1.2. Multipath devices Copier lienLien copié sur presse-papiers!
blacklist_mpath_devices
(optional)By default, Red Hat Virtualization Host enables multipath configuration, which provides unique multipath names and worldwide identifiers for all disks, even when disks do not have underlying multipath configuration. Include this section if you do not have multipath configuration so that the multipath device names are not used for listed devices. Disks that are not listed here are assumed to have multipath configuration available, and require the path format
/dev/mapper/<WWID>
instead of/dev/sdx
when defined in subsequent sections of the inventory file.On a server with four devices (
sda
,sdb
,sdc
andsdd
), the following configuration blacklists only two devices. The path format/dev/mapper/<WWID>
is expected for devices not in this list.Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantDo not list encrypted devices (
luks_*
devices) inblacklist_mpath_devices
, as they require multipath configuration to work.
A.1.3. Deduplication and compression Copier lienLien copié sur presse-papiers!
gluster_infra_vdo
(optional)Include this section to define a list of devices to use deduplication and compression. These devices require the
/dev/mapper/<name>
path format when you define them as volume groups ingluster_infra_volume_groups
. Each device listed must have the following information:name
-
A short name for the VDO device, for example
vdo_sdc
. device
-
The device to use, for example,
/dev/sdc
. logicalsize
-
The logical size of the VDO volume. Set this to ten times the size of the physical disk, for example, if you have a 500 GB disk, set
logicalsize: '5000G'
. emulate512
-
If you use devices with a 4 KB block size, set this to
on
. slabsize
-
If the logical size of the volume is 1000 GB or larger, set this to
32G
. If the logical size is smaller than 1000 GB, set this to2G
. blockmapcachesize
-
Set this to
128M
. writepolicy
-
Set this to
auto
.
For example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
A.1.4. Storage infrastructure Copier lienLien copié sur presse-papiers!
gluster_infra_volume_groups
(required)This section creates the volume groups that contain the logical volumes.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_mount_devices
(required)This section creates the logical volumes that form Gluster bricks.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_thinpools
(optional)This section defines logical thin pools for use by thinly provisioned volumes. Thin pools are not suitable for the
engine
volume, but can be used for thevmstore
anddata
volume bricks.vgname
- The name of the volume group that contains this thin pool.
thinpoolname
-
A name for the thin pool, for example,
gluster_thinpool_sdc
. thinpoolsize
- The sum of the sizes of all logical volumes to be created in this volume group.
poolmetadatasize
-
Set to
16G
; this is the recommended size for supported deployments.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_cache_vars
(optional)This section defines cache logical volumes to improve performance for slow devices. A fast cache device is attached to a thin pool, and requires
gluster_infra_thinpool
to be defined.vgname
- The name of a volume group with a slow device that requires a fast external cache.
cachedisk
-
The paths of the slow and fast devices, separated with a comma, for example, to use a cache device
sde
with the slow devicesdb
, specify/dev/sdb,/dev/sde
. cachelvname
- A name for this cache logical volume.
cachethinpoolname
- The thin pool to which the fast cache volume is attached.
cachelvsize
- The size of the cache logical volume. Around 0.01% of this size is used for cache metadata.
cachemode
-
The cache mode. Valid values are
writethrough
andwriteback
.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_thick_lvs
(required)The thickly provisioned logical volumes that are used to create bricks. Bricks for the
engine
volume must be thickly provisioned.vgname
- The name of the volume group that contains the logical volume.
lvname
- The name of the logical volume.
size
-
The size of the logical volume. The
engine
logical volume requires100G
.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_lv_logicalvols
(required)The thinly provisioned logical volumes that are used to create bricks.
vgname
- The name of the volume group that contains the logical volume.
thinpool
- The thin pool that contains the logical volume, if this volume is thinly provisioned.
lvname
- The name of the logical volume.
size
-
The size of the logical volume. The
engine
logical volume requires100G
.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_disktype
(required)Specifies the underlying hardware configuration of the disks. Set this to the value that matches your hardware:
RAID6
,RAID5
, orJBOD
.hc_nodes: vars: gluster_infra_disktype: RAID6
hc_nodes: vars: gluster_infra_disktype: RAID6
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_diskcount
(required)Specifies the number of data disks in the RAID set. For a
JBOD
disk type, set this to1
.hc_nodes: vars: gluster_infra_diskcount: 10
hc_nodes: vars: gluster_infra_diskcount: 10
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_stripe_unit_size
(required)The stripe size of the RAID set in megabytes.
hc_nodes: vars: gluster_infra_stripe_unit_size: 256
hc_nodes: vars: gluster_infra_stripe_unit_size: 256
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_features_force_varlogsizecheck
(required)Set this to
true
if you want to verify that your/var/log
partition has sufficient free space during the deployment process. It is important to have sufficient space for logs, but it is not required to verify space requirements at deployment time if you plan to monitor space requirements carefully.hc_nodes: vars: gluster_features_force_varlogsizecheck: false
hc_nodes: vars: gluster_features_force_varlogsizecheck: false
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_set_selinux_labels
(required)Ensures that volumes can be accessed when SELinux is enabled. Set this to
true
if SELinux is enabled on this host.hc_nodes: vars: gluster_set_selinux_labels: true
hc_nodes: vars: gluster_set_selinux_labels: true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
A.1.5. Firewall and network infrastructure Copier lienLien copié sur presse-papiers!
gluster_infra_fw_ports
(required)A list of ports to open between all nodes, in the format
<port>/<protocol>
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_fw_permanent
(required)Ensures the ports listed in
gluster_infra_fw_ports
are open after nodes are rebooted. Set this totrue
for production use cases.hc_nodes: vars: gluster_infra_fw_permanent: true
hc_nodes: vars: gluster_infra_fw_permanent: true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_fw_state
(required)Enables the firewall. Set this to
enabled
for production use cases.hc_nodes: vars: gluster_infra_fw_state: enabled
hc_nodes: vars: gluster_infra_fw_state: enabled
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_fw_zone
(required)Specifies the firewall zone to which these
gluster_infra_fw_\*
parameters are applied.hc_nodes: vars: gluster_infra_fw_zone: public
hc_nodes: vars: gluster_infra_fw_zone: public
Copy to Clipboard Copied! Toggle word wrap Toggle overflow gluster_infra_fw_services
(required)A list of services to allow through the firewall. Ensure
glusterfs
is defined here.hc_nodes: vars: gluster_infra_fw_services: - glusterfs
hc_nodes: vars: gluster_infra_fw_services: - glusterfs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow