Red Hat Training

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

C.2. 主​​​​​​​機​​​​​​​標​​​​​​​籤​​​​​​​(Host Tags)

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.
針​​​​​​​對​​​​​​​於​​​​​​​各​​​​​​​個​​​​​​​主​​​​​​​機​​​​​​​標​​​​​​​籤​​​​​​​,會​​​​​​​有​​​​​​​個​​​​​​​額​​​​​​​外​​​​​​​的​​​​​​​配​​​​​​​置​​​​​​​檔​​​​​​​案​​​​​​​被​​​​​​​讀​​​​​​​取​​​​​​​(若​​​​​​​它​​​​​​​存​​​​​​​在​​​​​​​的​​​​​​​話​​​​​​​):lvm_hosttag.conf。​​​​​​​若​​​​​​​該​​​​​​​檔​​​​​​​案​​​​​​​定​​​​​​​義​​​​​​​了​​​​​​​新​​​​​​​的​​​​​​​標​​​​​​​籤​​​​​​​的​​​​​​​話​​​​​​​,那​​​​​​​麼​​​​​​​額​​​​​​​外​​​​​​​的​​​​​​​配​​​​​​​置​​​​​​​檔​​​​​​​案​​​​​​​便​​​​​​​會​​​​​​​被​​​​​​​附​​​​​​​加​​​​​​​至​​​​​​​需​​​​​​​要​​​​​​​被​​​​​​​讀​​​​​​​取​​​​​​​的​​​​​​​檔​​​​​​​案​​​​​​​清​​​​​​​單​​​​​​​中​​​​​​​。​​​​​​​
比​​​​​​​方​​​​​​​說​​​​​​​,每​​​​​​​當​​​​​​​主​​​​​​​機​​​​​​​名​​​​​​​稱​​​​​​​為​​​​​​​ host1 時​​​​​​​,下​​​​​​​列​​​​​​​配​​​​​​​置​​​​​​​檔​​​​​​​案​​​​​​​中​​​​​​​的​​​​​​​項​​​​​​​目​​​​​​​就​​​​​​​會​​​​​​​定​​​​​​​義​​​​​​​ tag1 以​​​​​​​及​​​​​​​ tag2。​​​​​​​
tags { tag1 { }  tag2 { host_list = ["host1"] } }