Show Table of Contents
C.2. 主機標籤(Host Tags)
在叢集配置中,您可在配置檔案中定義主機標籤。若您在
tags 的部份中設置了 hosttags = 1 的話,主機標籤就會被透過使用機器的主機名稱來自動地定義。這能讓您使用通用的配置檔案並在您所有的機器上複製,如此一來它們便會持有相同的檔案副本,不過機器之間的特性可能會根據主機名稱而有所不同。
如欲取得更多有關於配置檔案的相關資訊,請參閱〈附錄 B, LVM 配置檔案〉。
針對於各個主機標籤,會有個額外的配置檔案被讀取(若它存在的話):lvm_hosttag.conf。若該檔案定義了新的標籤的話,那麼額外的配置檔案便會被附加至需要被讀取的檔案清單中。
比方說,每當主機名稱為
host1 時,下列配置檔案中的項目就會定義 tag1 以及 tag2。
tags { tag1 { } tag2 { host_list = ["host1"] } }

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.