Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

C.2. Tag dell'host

In a cluster configuration, you can define host tags in the configuration files. If you set hosttags = 1 in the tags section, a host tag is automatically defined using the machine's hostname. This allow you to use a common configuration file which can be replicated on all your machines so they hold identical copies of the file, but the behavior can differ between machines according to the hostname.
For information on the configuration files, see Appendice B, File di configurazione di LVM.
Per ogni tag verrà letto un file di configurazione aggiuntivo se esistente: lvm_hosttag.conf. Se il file in questione definisce nuovi tag, allora verranno aggiunti all'elenco nuovi file di configurazione da leggere.
Per esempio, la seguente voce presente nel file di configurazione definisce sempre tag1, e definisce tag2 se l'hostname è host1.
tags { tag1 { }  tag2 { host_list = ["host1"] } }