crm_attribute - 允許查詢、修改和刪除節點屬性和叢集選項
crm_attribute [options]
crm_attribute 指令可查詢和操作在 CIB 中使用的節點屬性和叢集組態選項。
列印說明訊息。
開啟除錯資訊。
附註: 透過提供其他例項來增加詳細層級。
使用 -G 執行屬性查詢時,僅會將值列印至 stdout。請將此選項與 -G 搭配使用。
取回而非設定優先設定。
刪除而非設定屬性。
僅供進階使用者使用。識別 ID 屬性。
要設定的值。與 -G 搭配使用時,將忽略此選項。
要變更的節點 uname
指定屬性集合,即讀取或寫入屬性的所在。
指定要設定或查詢的屬性。
決定應將屬性設定到 CIB 的哪個區段,或者所查詢的屬性屬於 CIB 的哪個區段。可能值有 nodes、status 或 crm_config。
crm_attribute -G -t nodes -U myhost -n location
crm_attribute -G -t crm_config -n cluster-delay
crm_attribute -G -Q -t crm_config -n cluster-delay
crm_attribute -D -t nodes -U myhost -n location
crm_attribute -t nodes -U myhost -s set -n location -v office
crm_attribute -t nodes -U myhost -n location -v backoffice
/var/lib/heartbeat/crm/cib.xml — 磁碟上的 CIB (不含 status 區段)。強烈建議不要直接編輯此檔案。
crm_attribute 由 Andrew Beekhof 撰寫。